vchoutas / smplx

SMPL-X

Home Page:https://smpl-x.is.tue.mpg.de/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot import name 'Body' from 'smplx.joint_names'

qaz8788817 opened this issue · comments

I encountered this problem when I tried to execute this command
python transfer_model/write_obj.py --model-folder ./models/ --motion-file transfer_data/support_data/github_data/amass_sample.npz --output-folder transfer_data/meshes/amass_sample/
And here is the output:
image

But this problem wouldn't appear in Python Interpreter.
image

Can someone help me? Thanks.

Did you install smplx using pip? The last version in PyPI is from 2021, while the version of smplx.joint_names that defines Body is from 2022. You can try uninstalling the pip version and installing from source using the following commands.

git clone https://github.com/vchoutas/smplx
cd smplx
pip install .