Closed ahuwangsheng closed 5 years ago
I've encountered the same error
我遇到了同样的错误
Have you solved your problem
Please check the key names for state_dict
and SiameseNet
, if they begins with 'module.'
or not.
Do you have any reference materials that you can recommend @yxgeee
Do you have any reference materials that you can recommend @yxgeee
You can print the state_dict.keys()
and SiameseNet.state_dict().keys()
for reference, the load_state_dict()
function works when the key names match.
thank you! @yxgeee