smplx icon indicating copy to clipboard operation
smplx copied to clipboard

cannot import name 'ModelOutput' from 'smplx.body_models'

Open mahui97 opened this issue 2 years ago • 2 comments

I use pip install smplx[all] to install smplx,and try to use it in SPIN(https://github.com/nkolot/SPIN), but there is an error.

(base) ubuntu@ubuntu-C246-WU4:~/mahui/SPIN$ python3 demo.py --checkpoint=data/model_checkpoint.pt --img=examples/im1010.jpg --openpose=examples/im1010_openpose.json Traceback (most recent call last): File "demo.py", line 34, in from models import hmr, SMPL File "/home/ubuntu/mahui/SPIN/models/init.py", line 2, in from .smpl import SMPL File "/home/ubuntu/mahui/SPIN/models/smpl.py", line 5, in from smplx.body_models import ModelOutput ImportError: cannot import name 'ModelOutput' from 'smplx.body_models' (/home/ubuntu/anaconda3/lib/python3.7/site-packages/smplx/body_models.py)

mahui97 avatar Oct 27 '21 10:10 mahui97

I am facing the same error. Any solution ?

mayank64ce avatar Oct 26 '23 17:10 mayank64ce

I encountered a problem similar to this one. Could you please advise on how you resolved it?

qaz8788817 avatar Feb 29 '24 09:02 qaz8788817