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 checkpoint file found #57

Closed
ga84 opened this issue Mar 23, 2019 · 10 comments
Closed

No checkpoint file found #57

ga84 opened this issue Mar 23, 2019 · 10 comments

Comments

@ga84
Copy link

ga84 commented Mar 23, 2019

Hello! This is a fairly stupid issue but it brings a lot of trouble. Can you please help me specify the path to checkpoint file? I tried everything including absolute path and specifying name of ckpt... I first copied checkpoint files to a folder 'model' and that should work with default settings in code, however it does not... Suggestions?

@hellochick

@intvo
Copy link

intvo commented Mar 26, 2019

did you find a solution to this?

@ga84
Copy link
Author

ga84 commented Mar 26, 2019

Unfortunately not yet. Can anyone of you guys who probably got this done please help? @sainttelant @Leequens @PascalWB @anny123123

@MAdil45
Copy link

MAdil45 commented Mar 28, 2019

Same issue. Kindly let us know the solution. We really appreciate that. @hellochick

@jiaxinxie97
Copy link

ckpt = tf.train.get_checkpoint_state(args.checkpoints)

This function can't work in their dir. Changing ckpt.model_checkpoint_path to $MODEL_PATH/model.ckpt-0 will be ok.

@ga84
Copy link
Author

ga84 commented Apr 2, 2019

@jiaxinxie97 thank you for answering! However, I'm afraid it still doesn't work. Did you mean, writing e.g.
./model/pspnet101/model.ckpt-0 instead of ckpt.model_checkpoint_path
? I tried this and still not found.

I also tried setting SNAPSHOT_DIR as './model/pspnet101/model.ckpt-0', also tried './model/pspnet101/' and I tried with absolute paths in all combinations but no success... Can you please tell me where I might be doing wrong? I'd really appreciate that. Thank you!

EDIT: sorry for bad formatting, I have to type from my phone...

@ga84
Copy link
Author

ga84 commented Apr 2, 2019

I solved the problem, by deleting the condition:
if ckpt and ckpt.model_checkpoint_path
And also the "else" part. And then after inserting the path to model.ckpt-0 instead of the ckpt.model_checkpoint_path it is finally possible to load checkpoint files. Thank you for the hint @jiaxinxie97 !

@MAdil45
Copy link

MAdil45 commented Apr 3, 2019

I have solved this by providing the checkpoint path directly at default line.
parser.add_argument("--checkpoints", type=str, default='/model/ade20k_model/',

@Jason-xin
Copy link

I have solved this by modifying 'checkpoint.txt' to 'checkpoint'
image

@ga84
Copy link
Author

ga84 commented Apr 3, 2019

Thanks guys, I think we can close this issue!

@ga84 ga84 closed this as completed Apr 3, 2019
@simardeep1792
Copy link

simardeep1792 commented May 12, 2020

Hi Guys, could you explain how you all did it. I repeated all the steps and still it shows checkpoint not found. Could you atleat paste the screenshot of the code. @hellochick

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