-
Notifications
You must be signed in to change notification settings - Fork 335
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
ImportError: cannot import name 'load_vposer' from 'human_body_prior.tools.model_loader' #144
Comments
human body prior had a major update recently. You could either use the old version tagged as cvpr19 or make these modifications in your code: I will try to add these in a PR. |
Can you please provide a link for "old version tagged as cvpr19"? Thanks in advance |
I think it's the other branch 'cpvr19' : https://github.com/nghorbani/human_body_prior/tree/cvpr19 |
Thanks.. it worked |
I have followed updated the code as explained by @nghorbani but I keep getting the following error: Any suggestions about what I am missing? |
Hello @Elsaam2y. Did you place V02_05.log and V02_05.yaml files included in the download file on your working |
@klab-shirakawa thanks for your response. I actually made a mistake while installing the cvpr19 version of vposer and fixed it. Now I am using the old version without modifying the code. Before that, I haven't replaced this files and your solution should be absolutely right. Thanks again. |
@Elsaam2y Can you explain how you solve the problem, I met exactly the same problem as you did. What mistake did you make while installing the cvpr19 version of vposer. By the way, there are 2 V02_05 folders, one is the folder downloaded in SMPL-X download page, another is inside human_body_prior\src\human_body_prior\train. What should I do with each of them? |
@ericyu0510 you need to switch to this branch , install dependancies and run |
@Elsaam2y Thank you for your help. But I found out that VPoser v1.0 requires pytorch1.1 which my RTX 3080 does not support. It seems to be a deadlock...... |
for vposer users: `torchgeometry` package is not compatible with modern `torch`. kornia, `torchgeometry` descendant has a bug that affects `human_body_prior`. see nghorbani/human_body_prior#16, bert-nmt/bert-nmt#3, kornia/kornia#317 resolution: install patched kornia https://github.com/nghorbani/kornia/tree/BugFix%23317 and use it instead of `torchgeometry` (also requires small vposer code fix) see vchoutas#144
I have written a blog including some solutions of those problems mentioned above. I just use the latest version of vposer, pytorch 1.8.0 and run the smplifyx code on Windows successfully. Blog Link: https://blog.csdn.net/weixin_44034102/article/details/123523443 |
Hi,
In the file fit_single_frame.py the code wants to import load_vposer from human_body_prior.tools.model_loader
However, there does not seem to be a load_vposer() function in human_body_prior/tools/model_loader.py. What am I missing here?
The text was updated successfully, but these errors were encountered: