You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/content/SiamCAR/tools/test.py", line 126, in
main()
File "/content/SiamCAR/tools/test.py", line 60, in main
model = load_pretrain(model, args.snapshot).cuda().eval()
File "/content/SiamCAR/tools/pysot/utils/model_load.py", line 69, in load_pretrain
model.load_state_dict(pretrained_dict, strict=False)
File "/usr/local/lib/python3.9/dist-packages/torch/nn/modules/module.py", line 1671, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for ModelBuilder:
size mismatch for down.weight: copying a param with shape torch.Size([256, 768, 1, 1]) from checkpoint, the shape in current model is torch.Size([768, 256, 1, 1]).
Please help.
The text was updated successfully, but these errors were encountered:
I am getting the following error:
Traceback (most recent call last):
File "/content/SiamCAR/tools/test.py", line 126, in
main()
File "/content/SiamCAR/tools/test.py", line 60, in main
model = load_pretrain(model, args.snapshot).cuda().eval()
File "/content/SiamCAR/tools/pysot/utils/model_load.py", line 69, in load_pretrain
model.load_state_dict(pretrained_dict, strict=False)
File "/usr/local/lib/python3.9/dist-packages/torch/nn/modules/module.py", line 1671, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for ModelBuilder:
size mismatch for down.weight: copying a param with shape torch.Size([256, 768, 1, 1]) from checkpoint, the shape in current model is torch.Size([768, 256, 1, 1]).
Please help.
The text was updated successfully, but these errors were encountered: