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 RNN_ENCODER: While copying the parameter named "encoder.weight", whose dimensions in the model are torch.Size([1, 300]) and whose dimensions in the checkpoint are torch.Size([5450, 300]). #25

Open
ke-s opened this issue Mar 14, 2021 · 3 comments

Comments

@ke-s
Copy link

ke-s commented Mar 14, 2021

When I do Validation,follow your steps:go into code/ folder,python main.py --cfg cfg/eval_bird.yml --gpu 0,But there was showingRuntimeError: Error(s) in loading state_dict for RNN_ENCODER:
While copying the parameter named "encoder.weight", whose dimensions in the model are torch.Size([1, 300]) and whose dimensions in the checkpoint are torch.Size([5450, 300]).
When implemented python main.py --cfg cfg/eval_coco.yml --gpu 0,showing RuntimeError: Error(s) in loading state_dict for RNN_ENCODER:
While copying the parameter named "encoder.weight", whose dimensions in the model are torch.Size([1, 300]) and whose dimensions in the checkpoint are torch.Size([27297, 300]).
What is the reason why you should correct it

@ayanavasarkar
Copy link

Getting same error on the MS-COCO one.

@sur-sakthy
Copy link

Hi @ke-s @ayanavasarkar

I am also getting the same issue. Have you found any solution to this problem?

Thanks

@Vriksha-Srihari
Copy link

Same error, does anyone have any solutions?

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

4 participants