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

Test Time model loading error in google colab #14

Open
birajaghoshal opened this issue Jan 1, 2019 · 2 comments
Open

Test Time model loading error in google colab #14

birajaghoshal opened this issue Jan 1, 2019 · 2 comments

Comments

@birajaghoshal
Copy link

trained model: models/m-25012018-123527.pth.tar

in ChexnetTrainer_test(pathDirData, pathFileTest, pathModel, nnArchitecture, nnClassCount, nnIsTrained, trBatchSize, transResize, transCrop, launchTimeStamp)
16
17 modelCheckpoint = torch.load(pathModel)
---> 18 model.load_state_dict(modelCheckpoint['state_dict'])
19
20 #-------------------- SETTINGS: DATA TRANSFORMS, TEN CROPS
................
RuntimeError: Error(s) in loading state_dict for DataParallel:
Missing key(s) in state_dict: "module.densenet121.features.denseblock1.denselayer1.norm1.weight", "module.densenet121.features.denseblock1.denselayer1.norm1.bias", "module.densenet121.features.denseblock1.denselayer1.norm1.running_mean", "module.densenet121.features.denseblock1.denselayer1.norm1.running_var", "module.densenet121.features.denseblock1.denselayer1.conv1.weight", "module.densenet121.features.denseblock1.denselayer1.norm2.weight", "module.densenet121.features.denseblock1.denselayer1.norm2.bias", "module.densenet121.features.denseblock1.denselayer1.norm2.running_mean", "module.densenet121.features.denseblock1.denselayer1.norm2.running_var", "module.densenet121.features.denseblock1.denselayer1.conv2.weight", "module.densenet121.features.denseblock1.denselayer2.norm1.weight", "module.densenet121.features.denseblock1.denselayer2.norm1.bias", "module.densenet121.features.denseblock1.denselayer2.norm1.running_mean", "module.densenet121.features.denseblock1.denselayer2.norm1.running_var", "module.densenet121.features.denseblock1.denselayer2.conv1.weight", "module.densenet121.features.denseblock1.denselayer2.norm2.weight", "module.densenet121.features.denseblock1.denselayer2.norm2.bias", "module.densenet121.features.denseblock1.denselayer2.norm2.running_mean", "module.densenet121.features.denseblock1.denselayer2.norm2.running_var", "module.densenet121.features.denseblock1.denselayer2.conv2.weight", "module.densenet121.features.denseblock1.denselayer3.norm1.weight", "m...
Unexpected key(s) in state_dict: "module.densenet121.features.denseblock1.denselayer1.norm.1.weight", "module.densenet121.features.denseblock1.denselayer1.norm.1.bias", "module.densenet121.features.denseblock1.denselayer1.norm.1.running_mean", "module.densenet121.features.denseblock1.denselayer1.norm.1.running_var", "module.densenet121.features.denseblock1.denselayer1.conv.1.weight", "module.densenet121.features.denseblock1.denselayer1.norm.2.weight", "module.densenet121.features.denseblock1.denselayer1.norm.2.bias", "module.densenet121.features.denseblock1.denselayer1.norm.2.running_mean", "module.densenet121.features.denseblock1.denselayer1.norm.2.running_var", "module.densenet121.features.denseblock1.denselayer1.conv.2.weight", "module.densenet121.features.denseblock1.denselayer2.norm.1.weight", "module.densenet121.features.denseblock1.denselayer2.norm.1.bias", "module.densenet121.features.denseblock1.denselayer2.norm.1.running_mean", "module.densenet121.features.denseblock1.denselayer2.norm.1.running_var", "module.densenet121.features.denseblock1.denselayer2.conv.1.weight", "module.densenet121.features.denseblock1.denselayer2.norm.2.weight", "module.densenet121.features.denseblock1.denselayer2.norm.2.bias", "module.densenet121.features.denseblock1.denselayer2.norm.2.running_mean", "module.densenet121.features.denseblock1.denselayer2.norm.2.running_var", "module.densenet121.features.denseblock1.denselayer2.conv.2.weight", "module.densenet121.features.denseblock1.densel...

@Makhaon
Copy link

Makhaon commented Feb 2, 2019

This can help you:
KaiyangZhou/deep-person-reid#23

@YakinRubaiat
Copy link

Anyone solve this issue yet? I have a similar error when i run it on kaggle kernel.

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

3 participants