vchoutas / smplx

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

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

Open mahui97 opened 2 years ago

mahui97 commented 2 years ago

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)

mayank64ce commented 8 months ago

I am facing the same error. Any solution ?

qaz8788817 commented 4 months ago

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