vchoutas / smplify-x

Expressive Body Capture: 3D Hands, Face, and Body from a Single Image
https://smpl-x.is.tue.mpg.de/
Other
1.73k stars 335 forks source link

from human_body_prior.tools.model_loader import load_vposer ImportError: cannot import name 'load_vposer' from 'human_body_prior.tools.model_loader' #166

Closed lucasjinreal closed 2 years ago

lucasjinreal commented 2 years ago

from human_body_prior.tools.model_loader import load_vposer ImportError: cannot import name 'load_vposer' from 'human_body_prior.tools.model_loader'

lucasjinreal commented 2 years ago

I have already installed human_body_prior from git

sparshgarg23 commented 2 years ago

try looking at issue 144,and see if it helps

wang-zm18 commented 2 years ago

@sparshgarg23, I also met this problem. But I did not find issue 144, could you please help me? Thank you in advance!

wang-zm18 commented 2 years ago

I have found the answer, it helps https://pythonissues.com/issues/1970496

lucasjinreal commented 2 years ago

@wang-zm18 If you try load pose v1.0 model you will fail even though you fixed these imports.

v1.0 no longer compatible with current code. you can only using v2.5 model. if you want using both v1.0 and v2.5, you'd better copy old code standalone, and try some if logic to load them all, since the finding ckpt logic also changed.

sparshgarg23 commented 2 years ago

i was able to run v1.0 model on colab as shown here https://colab.research.google.com/github/sergeyprokudin/smplpix/blob/main/colab_notebooks/Convert_Video_to_SMPLpix_Dataset.ipynb#scrollTo=ODeGAyGrrIov but if what you are saying is correct then it's better to hear from @vchoutas or @nghorbani ,as they will be able to tell us what steps can be taken to resolve the issue