Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker image for Evaluation #4

Closed
budui opened this issue May 6, 2019 · 5 comments
Closed

docker image for Evaluation #4

budui opened this issue May 6, 2019 · 5 comments

Comments

@budui
Copy link

budui commented May 6, 2019

I have tried&failed 3000 times to do evaluation.
Finally I came to a conclusion: docker, docker, we need docker!

Share my solution below:

docker run -v <Pose-Transfer path>:/tmp -w /tmp --runtime=nvidia -it --rm tensorflow/tensorflow:1.4.1-gpu-py3 bash
# now in docker:
$ pip install scikit-image tqdm 
$ python tool/getMetrics_market.py
@tengteng95
Copy link
Owner

Great thanks to you! This can be helpful for others who meet the same problem. I will update the README file to include this great solution.

@2110317008
Copy link

Great thanks to you! This can be helpful for others who meet the same problem. I will update the README file to include this great solution.

root@833c2b940c92:/home/Pose-Transfer-master/Pose-Transfer# CUDA_VISIBLE_DEVICES=0 python tool/getMetrics_market.py
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
Traceback (most recent call last):
File "tool/getMetrics_market.py", line 2, in
from inception_score import get_inception_score
File "/home/Pose-Transfer-master/Pose-Transfer/tool/inception_score.py", line 12, in
import tensorflow as tf
File "/usr/local/lib/python3.6/dist-packages/tensorflow/init.py", line 28, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/init.py", line 63, in
from tensorflow.python.framework.framework_lib import * # pylint: disable=redefined-builtin
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/framework_lib.py", line 25, in
from tensorflow.python.framework.ops import Graph
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/ops.py", line 54, in
from tensorflow.python.platform import app
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/platform/app.py", line 23, in
from absl.app import run as _run
File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 35, in
import pdb
File "/usr/lib/python3.6/pdb.py", line 136, in
class Pdb(bdb.Bdb, cmd.Cmd):
AttributeError: module 'cmd' has no attribute 'Cmd'
root@833c2b940c92:/home/Pose-Transfer-master/Pose-Transfer#

When I evaluate, this error occurred. What should I do?
Thank you!

@BJTUJia
Copy link

BJTUJia commented Sep 25, 2019

I encounter the same error. Have you found a solution yet?

@busekuz
Copy link

busekuz commented Oct 15, 2019

At first, I have also encountered AttributeError: module 'cmd' has no attribute 'Cmd' error.

I solved this problem by,

  • changing tool/cmd.py file's name to something different than cmd such as cmd_1.py

  • also changing the import statement in compute_cordinates.py accordingly (ex.: from cmd_1 import args)

You can check this answer if you want to.

@Ha0Tang
Copy link

Ha0Tang commented Feb 2, 2020

Install pip install tensorflow==1.4.0 works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants