RuntimeError: Error(s) in loading state_dict for ResNet:
Missing key(s) in state_dict: "conv1.weight", "bn1.running_var", "bn1.running_mean", "bn1.bias", "bn1.weight", "layer1.0.conv1.weight", "layer1.0.bn1.running_var", "layer1.0.bn1.running_mean", "layer1.0.bn1.bias", "layer1.0.bn1.weight", "layer1.0.conv2.weight", "layer1.0.bn2.running_var", "layer1.0.bn2.running_mean", "layer1.0.bn2.bias", "layer1.0.bn2.weight", "layer1.1.conv1.weight", "layer1.1.bn1.running_var", "layer1.1.bn1.running_mean", "layer1.1.bn1.bias", "layer1.1.bn1.weight", "layer1.1.conv2.weight", "layer1.1.bn2.running_var", "layer1.1.bn2.running_mean", "layer1.1.bn2.bias", "layer1.1.bn2.weight", "layer2.0.conv1.weight", "layer2.0.bn1.running_var", "layer2.0.bn1.running_mean", "layer2.0.bn1.bias", "layer2.0.bn1.weight", "layer2.0.conv2.weight", "layer2.0.bn2.running_var", "layer2.0.bn2.running_mean", "layer2.0.bn2.bias", "layer2.0.bn2.weight", "layer2.0.downsample.0.weight", "layer2.0.downsample.1.running_var", "layer2.0.downsample.1.running_mean", "layer2.0.downsample.1.bias", "layer2.0.downsample.1.weight", "layer2.1.conv1.weight", "layer2.1.bn1.running_var", "layer2.1.bn1.running_mean", "layer2.1.bn1.bias"<
pytorch wrong when predicting using trained model
最新推荐文章于 2022-05-10 00:22:27 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)