Closed CrossLee1 closed 6 years ago
I downloaded the pytorch model as stated in caffe2pytorch/README.md, but when I load the model in model.load_state_dict(state_dict), an error occurs: KeyError: 'unexpected key "0.weight" in 'state_dict'
model.load_state_dict(state_dict)
KeyError: 'unexpected key "0.weight" in 'state_dict'
Hope to get your response, thanks~
change 'name = k[7:]' to 'name = k'.
I downloaded the pytorch model as stated in caffe2pytorch/README.md, but when I load the model in
model.load_state_dict(state_dict)
, an error occurs:KeyError: 'unexpected key "0.weight" in 'state_dict'
Hope to get your response, thanks~