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

RuntimeError: Error(s) in loading state_dict for Generator: size mismatch for pixelwise_flow_predictor.hourglass.encoder.down_blocks.0.conv.weight: copying a param with shape torch.Size([128, 44, 3, 3]) from checkpoint, the shape in current model is torch.Size([128, 84, 3, 3]). #73

Open
G-force78 opened this issue Oct 12, 2023 · 4 comments

Comments

@G-force78
Copy link

RuntimeError: Error(s) in loading state_dict for Generator:
size mismatch for pixelwise_flow_predictor.hourglass.encoder.down_blocks.0.conv.weight: copying a param with shape torch.Size([128, 44, 3, 3]) from checkpoint, the shape in current model is torch.Size([128, 84, 3, 3]).
size mismatch for pixelwise_flow_predictor.mask.weight: copying a param with shape torch.Size([11, 108, 7, 7]) from checkpoint, the shape in current model is torch.Size([21, 148, 7, 7]).
size mismatch for pixelwise_flow_predictor.mask.bias: copying a param with shape torch.Size([11]) from checkpoint, the shape in current model is torch.Size([21]).
size mismatch for pixelwise_flow_predictor.occlusion.weight: copying a param with shape torch.Size([1, 108, 7, 7]) from checkpoint, the shape in current model is torch.Size([1, 148, 7, 7]).

@hacker009-sudo
Copy link

@G-force78 , did you get any solution?

@G-force78
Copy link
Author

@G-force78 , did you get any solution?

I think it was likely somethingh to do with my config file, but Ive had so many problems with it I cant quite remember at which stage and attempt the error occurred! Its beyond my skill level so I have given up on all of it.

@hacker009-sudo
Copy link

@G-force78 , Still not got the solution :(

@SatyaDewangan05
Copy link

Check which .pth file are you using, I was using ted-youtube384.pth and ted384.yaml then I was getting this error. When I used ted384.pth and ted384.yaml then there was no error.

Just check the checkpoint file and yaml file, they should be same.

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