-
Notifications
You must be signed in to change notification settings - Fork 205
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
Parameter mismatch when loading VGG ImageNet pre-trained weights #93
Comments
I got a similar error message while loading the baseline Model: |
@JuiChang I get exactly the same result as you. |
First of all, thanks for sharing the project!
As in the previous issue, the given VGG ImageNet pre-trained weights cannot match the model architecture in ./model/deeplab_vgg.py
I got the same error message as in the issue:
RuntimeError: Error(s) in loading state_dict for DeeplabVGG: Unexpected key(s) in state_dict: "0.weight", "0.bias", "2.weight", "2.bias", "5.weight", "5.bias", "7.weight", "7.bias", "10.weight", "10.bias", "12.weight", "12.bias", "14.weight", "14.bias", "17.weight", "17.bias", "19.weight", "19.bias", "21.weight", "21.bias", "24.weight", "24.bias", "26.weight", "26.bias", "28.weight", "28.bias", "6.weight", "6.bias", "3.weight", "3.bias"
Note that in that issue, alphjheon simply comment out the code of loading weights to avoid the error.
Thanks.
The text was updated successfully, but these errors were encountered: