Skip to content
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 'init_with_spin' #9

Open
QiFuChina opened this issue May 28, 2022 · 1 comment
Open

ImportError: cannot import name 'init_with_spin' #9

QiFuChina opened this issue May 28, 2022 · 1 comment

Comments

@QiFuChina
Copy link

I got same error below
(easymocap) C:\ResourceCode\EasyMocap>python apps/demo/1v1p_mirror.py data/zju-m-demo --out data/zju-m-demo-output --vis_smpl --video
Traceback (most recent call last):
File "apps/demo/1v1p_mirror.py", line 8, in
from easymocap.estimator import SPIN, init_with_spin
ImportError: cannot import name 'init_with_spin'
I try to traceback file lvlp_mirror.py but I didn't know where is the model init_with_spin

@odu-beyond
Copy link

odu-beyond commented Aug 4, 2022

apps/demo/1v1p_mirror.py
line 8
from easymocap.estimator import SPIN, init_with_spin

from easymocap.estimator.SPIN import SPIN, init_with_spin

easymocap\estimator\SPIN\spin_api.py
line 179
checkpoint = torch.load(checkpoint)

checkpoint = torch.load(checkpoint, torch.device('cpu'))

ownload pretrained SPIN model here and place it to data/models/spin_checkpoints.pt.
Fetch the extra data here and place the smpl_mean_params.npz to data/models/smpl_mean_params.npz.
data
└── models
 ├── smpl_mean_params.npz
 └── spin_checkpoint.pt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants