Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

state_dict = checkpoint['model'] KeyError: 'model' When I using flickr30k.pth #120

Open
MARS-J opened this issue Mar 20, 2023 · 3 comments

Comments

@MARS-J
Copy link

MARS-J commented Mar 20, 2023

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.

@T0305
Copy link

T0305 commented Aug 20, 2023

Did you solve this problem? I also encountered this problem, can you tell me how to solve it? Thank you so much

@shyammarjit
Copy link

I am also getting the same error.

@Yunpeng-Qi
Copy link

Hi, I also encountered this error, did you figure it out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants