athn-nik / teach

Official PyTorch implementation of the paper "TEACH: Temporal Action Compositions for 3D Humans"
https://teach.is.tue.mpg.de
Other
383 stars 40 forks source link

'Struct' object has no attribute 'hands_componentsl' #24

Closed arwooy closed 1 year ago

arwooy commented 1 year ago

After download the data from https://mano.is.tue.mpg.de/download.php, get the SMPLH_MALE.pkl from mano_v1_2.zip, and put it to smpl_models dir. When I run the demo interact_teach.py, got the following error:

Traceback (most recent call last): File "/root/miniconda3/envs/teach-env/lib/python3.9/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 62, in _call_target return target(*args, **kwargs) File "/root/autodl-tmp/github/teach/teach/transforms/rots2joints/smplh.py", line 58, in init self.smplh = SMPLHLayer(path, ext="pkl", gender=gender).eval() File "/root/miniconda3/envs/teach-env/lib/python3.9/site-packages/smplx/body_models.py", line 761, in init super(SMPLHLayer, self).init( File "/root/miniconda3/envs/teach-env/lib/python3.9/site-packages/smplx/body_models.py", line 601, in init left_hand_components = data_struct.hands_componentsl[:num_pca_comps] AttributeError: 'Struct' object has no attribute 'hands_componentsl'

athn-nik commented 1 year ago

Hey, Can you please follow the steps described here? To have the correct smplh model? https://github.com/athn-nik/teach/issues/2 I.e. the one for amass which is merged smpl with Mano?

arwooy commented 1 year ago

Thanks a lot. it can execute completed without error report and looks like success. But when I check the output dir, It's empty

Global seed set to 1234 [27/11/22 07:02:21][main][INFO] - Loading model [27/11/22 07:02:21][torch.distributed.nn.jit.instantiator][INFO] - Created a temporary directory at /tmp/tmpd2r8cg3s [27/11/22 07:02:21][torch.distributed.nn.jit.instantiator][INFO] - Writing /tmp/tmpd2r8cg3s/_remote_module_non_sriptable.py [27/11/22 07:02:22][main][INFO] - Model 'teach' loaded [27/11/22 07:02:25][main][INFO] - Model weights restored Global seed set to 0

athn-nik commented 1 year ago

Can you give me the exact command you are running? In my computer, the output seems to be created fine.

arwooy commented 1 year ago

I tested two cases.
python interact_teach.py folder=./teach output=./output texts='[A person walks to the lake, picks up stones on the ground, and fetches them into the water]' durs='[10, 10, 10]' python interact_teach.py folder=./teach output=./output texts='[walk, sit down, wave hands, drink water, stand up]' durs='[5,5,5,5,5]'

athn-nik commented 1 year ago

Can you check the current directory? Or provide with an extra / the output directory?

arwooy commented 1 year ago

Thanks, I found it in current dir, filename is output_sample-0.mp4