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

Got error in videopose.py. size mismatch for conv_out.bias #40

Open
kathanvyas opened this issue Oct 28, 2020 · 1 comment
Open

Got error in videopose.py. size mismatch for conv_out.bias #40

kathanvyas opened this issue Oct 28, 2020 · 1 comment

Comments

@kathanvyas
Copy link

running in vscode with a conda enviornment that is setup with all dependencies. I have followed instructions as mentioned in readme.md. Downloaded all weights and requirements. I changed the directory for video file and have changed nothing else. can someone help me with this? I am not training anything. just planning to get 3D pose out of a video (so testing)

So this is the error i am getting:

self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for FastPose:
size mismatch for conv_out.weight: copying a param with shape torch.Size([33, 128, 3, 3]) from checkpoint, the shape in current model is torch.Size([17, 128, 3, 3]).
size mismatch for conv_out.bias: copying a param with shape torch.Size([33]) from checkpoint, the shape in current model
is torch.Size([17]).

@zh-plus
Copy link
Owner

zh-plus commented Jul 27, 2021

Please show the complete Runtime Error stack.

From the message you provided, the bug is the mismatch between the needed weight shape and the actual weight shape from the downloaded checkpoint. It may be caused by the PyTorch version. Updating/downgrading the version to 1.0 may help.

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