akanazawa / hmr

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

Demo is not working because of load error - keyword 'encoding' #106

Closed alon1samuel closed 5 years ago

alon1samuel commented 5 years ago

Hi,

I've tried to make demo.py work, and had this error:

Traceback (most recent call last): 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 "/media/alon/hdd/Guardian/od/hmr/demo.py", line 147, in main(config.img_path, config.json_path) File "/media/alon/hdd/Guardian/od/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'

I've temporarily solved the issue with commenting out the encoding in load.

There's another solution?

Regards, Alon

akanazawa commented 5 years ago

This looks like python 2 vs 3 issue, please use the required packages as described in Readme.