When testing resnet_9blocks model, this error appeared: KeyError: 'unexpected key "model.10.conv_block.6.weight" in state_dict'
and so did the model of resnet_6blocks.
why i trained resnet model,there was no bug ,but tested it unsuccessfully?
Hoping your help.
This might be caused by different flags used in training and test scripts. For example, if one might use batchnorm for training, but have instancenorm for test.
Thanks a lot : )
In my opinion, you may forget to add "--no_dropout".
Most helpful comment
In my opinion, you may forget to add "--no_dropout".