When I run evaluate.py file, I got the following error.
Traceback (most recent call last):
File "evaluate.py", line 155, in
model.load_state_dict(new_state_dict)
File "/xxx/lib64/python3.6/site-packages/torch/nn/modules/module.py", line 1483, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for ResNetV2:
Missing key(s) in state_dict: "root.conv.weight",....
And also the error of:
Unexpected key(s) in state_dict: "ean", "td", "e.fpn_lateral2.weight", "e.fpn_lateral2.bias"...
The other thing is that when I load "BiT-M-R50x1.npz", I got the this error:
np.load("BiT-M-R50x1.npz")
Traceback (most recent call last):
File "", line 1, in
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/lib/npyio.py", line 398, in load
"Failed to interpret file %s as a pickle" % repr(file))
IOError: Failed to interpret file 'BiT-M-R50x1.npz' as a pickle
Hi I'm trying to do the Siamese retrain.
Traceback (most recent call last): File "evaluate.py", line 155, in
model.load_state_dict(new_state_dict)
File "/xxx/lib64/python3.6/site-packages/torch/nn/modules/module.py", line 1483, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for ResNetV2:
Missing key(s) in state_dict: "root.conv.weight",....
And also the error of: Unexpected key(s) in state_dict: "ean", "td", "e.fpn_lateral2.weight", "e.fpn_lateral2.bias"...
Thanks!