akanazawa / hmr

Project page for End-to-end Recovery of Human Shape and Pose
Other
1.54k stars 395 forks source link

Tensorflow 1.3.0 no longer available #97

Open muenchmark opened 5 years ago

muenchmark commented 5 years ago

Thanks for posting your code, I can't wait to start looking at it more. I'm having trouble with the install. When I do "pip install tensorflow==1.3.0", it comes back with an error saying the oldest version available is 1.13.1. When I install this version I get errors running the demo when it is trying to draw the skeleton stating "name 'xrange' is undefined". Do you know where I can get tf 1.3.0 or is there a way to run with a newer version? Thanks!

sandhyalaxmiK commented 5 years ago

Fir install opendr and then tensorflow pip install opendr==0.77 pip install tensorflow==1.3.0

chqiwang commented 5 years ago

what is your python version? tf1.3.0 is not available on python 3.7

salmedina commented 4 years ago

The main README file says it requires Python 2.7

2lcm commented 4 years ago

It requires python2.7 but pickle needs python3!!! This does work dd = pickle.load(f, encoding="latin-1") => dd = pickle.load(f)

File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main "main", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/app/hmr/demo.py", line 147, in main(config.img_path, config.json_path) File "/app/hmr/demo.py", line 121, in main model = RunModel(config, sess=sess) File "src/RunModel.py", line 56, in init self.smpl = SMPL(self.smpl_model_path, joint_type=self.joint_type) File "src/tf_smpl/batch_smpl.py", line 32, in init dd = pickle.load(f, encoding="latin-1") TypeError: load() got an unexpected keyword argument 'encoding'

and docker is useful for tensorflow 1.3 docker pull tensorflow/tensorflow:1.3.0-gpu

chaowentao commented 4 years ago

It requires python2.7 but pickle needs python3!!! This does work dd = pickle.load(f, encoding="latin-1") => dd = pickle.load(f)

File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main "main", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/app/hmr/demo.py", line 147, in main(config.img_path, config.json_path) File "/app/hmr/demo.py", line 121, in main model = RunModel(config, sess=sess) File "src/RunModel.py", line 56, in init self.smpl = SMPL(self.smpl_model_path, joint_type=self.joint_type) File "src/tf_smpl/batch_smpl.py", line 32, in init dd = pickle.load(f, encoding="latin-1") TypeError: load() got an unexpected keyword argument 'encoding'

and docker is useful for tensorflow 1.3 docker pull tensorflow/tensorflow:1.3.0-gpu

may you can delete "encoding", I try it and succeed

mohammedhelal388 commented 3 years ago

guys i am having the same problem but the soltions above didnt work i run these commands but still not working pip install opendr==0.77 pip install tensorflow==1.3.0

when i installed the opender an error appeard like this

ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-kmu9k326/opendr/setup.py'"'"'; file='"'"'/tmp/pip-install-kmu9k326/opendr/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-w2fz7__8 cwd: /tmp/pip-install-kmu9k326/opendr/ Complete output (6 lines): Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-kmu9k326/opendr/setup.py", line 40 print "Downloading %s" % osmesa_fname ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Downloading %s" % osmesa_fname)?

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

what i am suppose to do because i need tensorflow 1.3.0

Ironbrotherstyle commented 2 years ago

Hello, Did you solve the problem? I followed the instruction to use python2.7, but encountered many problems when installing opendr and deepdish.