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

Index out of error on colab #22

Closed
kartikJ-9 opened this issue Apr 20, 2020 · 1 comment
Closed

Index out of error on colab #22

kartikJ-9 opened this issue Apr 20, 2020 · 1 comment

Comments

@kartikJ-9
Copy link

I am trying to implement this on colab. I am getting this error when I am trying it on my own image. I already created the folder for images and keypoints. And I manually provided the image and the son file for that image in the directory as suggested.

File "/content/smplify-x/smplifyx/fit_single_frame.py", line 188, in fit_single_frame
vposer, _ = load_vposer(vposer_ckpt, vp_model='snapshot')
File "/usr/local/lib/python3.6/dist-packages/human_body_prior/tools/model_loader.py", line 56, in load_vposer
ps, trained_model_fname = expid2model(expr_dir)
File "/usr/local/lib/python3.6/dist-packages/human_body_prior/tools/model_loader.py", line 31, in expid2model
best_model_fname = sorted(glob.glob(os.path.join(expr_dir, 'snapshots', '*.pt')), key=os.path.getmtime)[-1]
IndexError: list index out of range

@dimtzionas
Copy link
Collaborator

The error happens when it tries to load the .pt snapshot. This points to wrong setup (potentially deviating accidentally from the read_me file) or running the call function from the wrong path. In case you carefully followed the read_me, the latter one seems to be the most probably cause.

Based on the other questions in the SMPLify-X repo it could be that this issue is already resolved? If yes, could you please close the issue? :)

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

3 participants