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

KeyError: 'unexpected key "features.0.weight" in state_dict' #5

Open
mikejmills opened this issue Aug 12, 2017 · 4 comments
Open

KeyError: 'unexpected key "features.0.weight" in state_dict' #5

mikejmills opened this issue Aug 12, 2017 · 4 comments

Comments

@mikejmills
Copy link

Error trying to load vgg16-00b39a1b.pth

weights = torch.load("./weights/vgg16-00b39a1b.pth")

KeyError: 'unexpected key "features.0.weight" in state_dict'

@RaviVijay
Copy link

I get this issue too.

@mikejmills
Copy link
Author

mikejmills commented Sep 14, 2017 via email

@ProGamerGov
Copy link

This issue is solved here: #3, with a script that fixes the models.

@summerrr
Copy link

so how to solve it,I got the same issue

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