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

加载模型时出现问题 #9

Open
ou-zhi-hui opened this issue Oct 16, 2018 · 1 comment
Open

加载模型时出现问题 #9

ou-zhi-hui opened this issue Oct 16, 2018 · 1 comment

Comments

@ou-zhi-hui
Copy link

用提供的ImageNet_pretrain.pth预训练模型出现WARNING: Cannot load pre-trained model. Start training......
捕获error如下:
Error: Error(s) in loading state_dict for Sequential:
Missing key(s) in state_dict: "0.0.weight", "0.1.weight", "0.1.running_var", "0.1.running_mean", "0.1.bias", "1.block.0.weight", "1.block.1.weight", "1.block.1.running_var", "1.block.1.running_mean", "1.block.1.bias", "1.block.3.weight", "1.block.4.weight", "1.block.4.running_var", "1.block.4.running_mean", "1.block.4.bias", "1.block.6.weight", "1.block.7.weight", "1.block.7.running_var", "1.block.7.running_mean", "1.block.7.bias", "1.res_conv.0.weight", "1.res_conv.1.weight", "1.res_conv.1.running_var", "1.res_conv.1.running_mean", "1.res_conv.1.bias", "2.block.0.weight", "2.block.1.weight", "2.block.1.running_var", "2.block.1.running_mean", "2.block.1.bias", "2.block.3.weight", "2.block.4.weight", "2.block.4.running_var", "2.block.4.running_mean", "2.block.4.bias", "2.block.6.weight", "2.block.7.weight", "2.block.7.running_var", "2.block.7.running_mean", "2.block.7.bias", "3.block.0.weight", "3.block.1.weight", "3.block.1.running_var", "3.block.1.running_mean", "3.block.1.bias", "3.block.3.weight", "3.block.4.weigh

@seeyouagain111
Copy link

我和你一样的错误,你解决了吗

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