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

Error loading pre-trained checkpoints #5

Open
thanh-isu opened this issue Mar 29, 2020 · 1 comment
Open

Error loading pre-trained checkpoints #5

thanh-isu opened this issue Mar 29, 2020 · 1 comment

Comments

@thanh-isu
Copy link

thanh-isu commented Mar 29, 2020

Hi,

Thank you for your great work. I downloaded the checkpoints on Google drive and tried to do sampling, but I got this error:

RuntimeError: Error(s) in loading state_dict for DataParallel:
	Missing key(s) in state_dict: "module.normalizer.alpha", "module.normalizer.gamma", "module.normalizer.beta", "module.res1.0.normalize2.alpha", "module.res1.0.normalize2.gamma"
....

I was wondering how you and others load the model wrapped with DataParallel? I can train the model from scratch and fix the saving but wanted to check if there is better workaround.

@yang-song
Copy link
Member

I didn't encounter this problem before. Maybe try to downgrade PyTorch to a lower version such as 1.2?

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