I am using the Windows platform,
The command I executed was:“python Retrieval.py --config ./configs/Retrieval_flickr.yaml --output_dir output/Retrieval_flickr --checkpoint pretrain\flickr30k.pth”,
The error is:
“Traceback (most recent call last):
File "Retrieval.py", line 376, in
main(args, config)
File "Retrieval.py", line 257, in main
state_dict = checkpoint['model']
KeyError: 'model' ”
I would appreciate it very much if someone could help me solve this problem.
I am using the Windows platform, The command I executed was:“python Retrieval.py --config ./configs/Retrieval_flickr.yaml --output_dir output/Retrieval_flickr --checkpoint pretrain\flickr30k.pth”, The error is: “Traceback (most recent call last): File "Retrieval.py", line 376, in
main(args, config)
File "Retrieval.py", line 257, in main
state_dict = checkpoint['model']
KeyError: 'model' ”
I would appreciate it very much if someone could help me solve this problem.