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

No such file or directory: 'models/encoder-2-1000.ckpt' #134

Closed
KahHwa opened this issue Oct 9, 2018 · 5 comments
Closed

No such file or directory: 'models/encoder-2-1000.ckpt' #134

KahHwa opened this issue Oct 9, 2018 · 5 comments

Comments

@KahHwa
Copy link

KahHwa commented Oct 9, 2018

I downloaded the pretrained model to use. But I don't have the models/encoder-2 1000.ckpt' file. What I have from the model.zip are just "decoder-5 3000.pkl" and "encoder-5 3000.pkl".

@KahHwa KahHwa closed this as completed Oct 9, 2018
@shaunVB
Copy link

shaunVB commented Oct 21, 2018

I downloaded the pretrained model to use. But I don't have the models/encoder-2 1000.ckpt' file. What I have from the model.zip are just "decoder-5 3000.pkl" and "encoder-5 3000.pkl".

How did you solved it ?

@anjalinagel12
Copy link

FileNotFoundError: [Errno 2] No such file or directory: 'models/encoder-2-1000.ckpt'
someone please help

@syedimad1998
Copy link

@anjalinagel12 rename the encoder and decoder file name.
encoder-5 3000.pkl file name to encoder-2-1000.ckpt worked for me.Hope it helps!

@anjalinagel12
Copy link

anjalinagel12 commented Mar 5, 2019

got this error after modifying also :(
@syedimad1998 @KahHwa @shaunVB @jtoy

Anjalis-MacBook-Air:image_captioning ANJALI$ python sample.py --image='png/example.png'
Traceback (most recent call last):
File "sample.py", line 81, in
main(args)
File "sample.py", line 43, in main
encoder.load_state_dict(torch.load(args.encoder_path))
File "/anaconda3/lib/python3.6/site-packages/torch/serialization.py", line 356, in load
f = open(f, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'models/encoder-2-1000.ckpt'

@anitchakraborty
Copy link

@anjalinagel12 rename the encoder and decoder file name.
encoder-5 3000.pkl file name to encoder-2-1000.ckpt worked for me.Hope it helps!

Not helped. Is there any other solution?

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

5 participants