Installed exact same versions of dependencies but getting this keyerror issue.
Traceback (most recent call last):
File "main.py", line 208, in
model = load_model()
File "main.py", line 39, in load_model
{k: v for k, v in ckpt['model'].state_dict().items() if model.state_dict()[k].numel() == v.numel()}
File "main.py", line 39, in
{k: v for k, v in ckpt['model'].state_dict().items() if model.state_dict()[k].numel() == v.numel()}
KeyError: 'model.2.cv2.weight
Installed exact same versions of dependencies but getting this keyerror issue.
Traceback (most recent call last): File "main.py", line 208, in
model = load_model()
File "main.py", line 39, in load_model
{k: v for k, v in ckpt['model'].state_dict().items() if model.state_dict()[k].numel() == v.numel()}
File "main.py", line 39, in
{k: v for k, v in ckpt['model'].state_dict().items() if model.state_dict()[k].numel() == v.numel()}
KeyError: 'model.2.cv2.weight