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

Errors in loading staring dict: #8

Open
Oushesh opened this issue Jul 4, 2022 · 2 comments
Open

Errors in loading staring dict: #8

Oushesh opened this issue Jul 4, 2022 · 2 comments

Comments

@Oushesh
Copy link

Oushesh commented Jul 4, 2022

RuntimeError: Error(s) in loading state_dict for PoseNet_2branch:
Missing key(s) in state_dict: "backbone.conv1.weight", "backbone.bn1.weight", "backbone.bn1.bias", "backbone.bn1.running_mean", "backbone.bn1.running_var", "backbone.layer1.0.conv1.weight", "backbone.layer1.0.bn1.weight", "backbone.layer1.0.bn1.bias", "backbone.layer1.0.bn1.running_mean",

my command line was: python infer.py --cfg experiments/resnet/lr1e-3_x120-90-110_center_b2.yaml --model models/resnet18_model_latest.pth.tar --infer images So I am loading resnet18_model the configs from the .yaml file, and the model. Seems the definition or dictaionary does not contain those strings.

@lck1201
Copy link
Owner

lck1201 commented Jul 11, 2022

it looks strange only part of backbone modules can't be loaded.

@Oushesh
Copy link
Author

Oushesh commented Jul 14, 2022

yep. you got the same problem?

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