vchoutas / smplify-x

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

cannot import name 'load_vposer' from 'human_body_prior.tools.model_loader' #219

Open piorecki-simon opened 1 month ago

piorecki-simon commented 1 month ago

Executing...

python3 smplifyx/main.py --config cfg_files/fit_smpl.yaml --data_folder ~/dev/smpl_test_data --output_folder ~/dev/smpl_test_data --visualize="False" --model_folder ~/dev/models/SMPL_python_v.1.1.0/smpl/models --vposer_ckpt ~/dev/models/vposer_v1_0

...results in: cannot import name 'load_vposer' from 'human_body_prior.tools.model_loader' error.

Function 'load_vposer' from 'human_body_prior.tools.model_loader' does not seem to exist anymore? Is there now another way of getting 3d joints coordinates from a given image?

tengshaofeng commented 1 month ago

download zip from https://github.com/nghorbani/human_body_prior/tree/cvpr19?tab=readme-ov-file , then put the folder human_body_prior in venv. It is good for me. BTW, where can I get ~/dev/models/SMPL_python_v.1.1.0/smpl/models and ~/dev/models/vposer_v1_0

piorecki-simon commented 1 month ago

Thank you, I just didnt realize that I had to use a different branch. You can get the models from their website: SMPL-X and VPoser: https://smpl-x.is.tue.mpg.de/download.php SMPL: https://smpl.is.tue.mpg.de/download.php

shawnFuu commented 1 month ago

Thank you, I just didnt realize that I had to use a different branch. You can get the models from their website: SMPL-X and VPoser: https://smpl-x.is.tue.mpg.de/download.php SMPL: https://smpl.is.tue.mpg.de/download.php

Hi. After I try to download the branch of vposer, I find that load_vposer isn't existing. Also, the argument 'model_code' is quite confusing while it is neccesary for this project. Have you solved that? I am looking forward to your reply!

piorecki-simon commented 1 month ago

Thank you, I just didnt realize that I had to use a different branch. You can get the models from their website: SMPL-X and VPoser: https://smpl-x.is.tue.mpg.de/download.php SMPL: https://smpl.is.tue.mpg.de/download.php

Hi. After I try to download the branch of vposer, I find that load_vposer isn't existing. Also, the argument 'model_code' is quite confusing while it is neccesary for this project. Have you solved that? I am looking forward to your reply!

You will probably just cloned the git repo and will be in master branch currently. Just checkout the cvpr19 branch. What do you mean with the model_code argument?