Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
qaz8788817 opened this issue Feb 29, 2024 · 1 comment
Open

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

qaz8788817 opened this issue Feb 29, 2024 · 1 comment

Comments

@qaz8788817
Copy link

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.

@jaraujo98
Copy link

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants