MinfengZhu / DM-GAN

MIT License
187 stars 64 forks source link

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 3 years ago

ke-s commented 3 years ago

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 commented 3 years ago

Getting same error on the MS-COCO one.

sur-sakthy commented 1 year ago

Hi @ke-s @ayanavasarkar

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

Thanks

Vriksha-Srihari commented 1 year ago

Same error, does anyone have any solutions?