vchoutas / smplx

SMPL-X
https://smpl-x.is.tue.mpg.de/
Other
1.73k stars 301 forks source link

How to generate the right NPZ file for the transfer script #165

Open ashwath98 opened 1 year ago

ashwath98 commented 1 year ago

Hi, I need to convert SMPL Meshes to SMPLX for a comparison I am trying to setup the script in (https://github.com/vchoutas/smplx/blob/main/tools/README.md) but am facing some issues

When I run (python write_obj.py --model-folder ../models/ --motion-file ../transfer_data/support_data/github_data/amass_sample.npz --output-folder ../transfer_data/meshes/amass_sample/)

" AttributeError: 'Struct' object has no attribute 'hands_componentsl'"

Which I know is due to some merging that needs to be done as mentioned here (https://github.com/vchoutas/smplx/blob/main/tools/README.md)

howevever those scripts generate only pkl files and and write obj script needs an npz file

how do I get the right NPZ file?

Dipankar1997161 commented 8 months ago

i think you can change the extension using the --ext argument