NVlabs / handover-sim

A simulation environment and benchmark for human-to-robot object handovers
https://handover-sim.github.io
BSD 3-Clause "New" or "Revised" License
87 stars 14 forks source link

Some errors when compile assests #7

Closed Lingzhi3 closed 1 year ago

Lingzhi3 commented 1 year ago

Hi, I hope you are doing good.

In step 4 of the Installation, I used option 1 successfully download cased dataset. But in step 5, I am trying to compile assets and when executing "./handover/data/compile_assets. sh" in terminal, the first error is reported: """Compiling MANO assets Traceback (most recent call last): File "compile_mano_assets.py", line 390, in main() File "compile_mano_assets.py", line 156, in main model = HandModel45( TypeError: init() got an unexpected keyword argument 'betas'"""

To solve this problem,I directly delete the third parameter of """model = HandModel45(left_hand=mano_side == "left", models_dir=models_dir, betas=mano_betas)""", which is on line 156 in file "compile_mano_assets.py. "

But I am not sure if this is correct ,or it may trigger other errors when running project afterwards.

After solving this problem temporarily and execute “./handover/data/compile_assets.sh” again,another error occurs: File "/home/handover-sim/mano_pybullet/mano_pybullet/hand_model.py", line 29, in init super().init(left_hand=left_hand, models_dir=models_dir) File "/home/lhandover-sim/mano_pybullet/mano_pybullet/mano_model.py", line 29, in init self._model = self._load(os.path.join(models_dir, fname)) File "/home/handover-sim/mano_pybullet/mano_pybullet/mano_model.py", line 46, in _load return pickle.load(pick_file, encoding='latin1') File "/home/anaconda3/envs/handover-sim/lib/python3.8/site-packages/chumpy/init.py", line 11, in from numpy import bool, int, float, complex, object, unicode, str, nan, inf ImportError: cannot import name 'bool' from 'numpy'

Could you please fix these problems as soon as possible?