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

tutorial_translate.py raise Exception("no %s exist" % ckpt.model_checkpoint_path) #40

Closed
terryKing1992 opened this issue Dec 20, 2016 · 2 comments

Comments

@terryKing1992
Copy link

terryKing1992 commented Dec 20, 2016

Hi Guys, I have trained the translation model using python tuaorial_translate.py, then i want using my own words to test the model,so i switch the main_train() to main_decode(), but the python shell raise one exception; more information as follow:
first, the exception occurs at 391 lines of tutorial_translate.py if ckpt and tf.gfile.Exists(ckpt.model_checkpoint_path);and the ckpt object is not null, ckpt.model_checkpoint_path value is 'wmt/model_translate_enfr.ckpt-10'; in fact, the directory does not have this file , i wonder why the pre-sentence ckpt = tf.train.get_checkpoint_state(train_dir) return the error data, hope your help, please! thanks a lot

@zsdonghao
Copy link
Member

It seem that you have problem with ckpt.
Did you set a correcttrain_dir?
Alternatively, can you set is_npz = True then it will save the model into npz file instead of ckpt, it may help.

@terryKing1992
Copy link
Author

yeah, my train_dir is a relative file path wmt, isn't it true? i'll try to set is_npz=True, should i remove the generated data and train the translate model again?

zsdonghao added a commit that referenced this issue May 4, 2019
Update vgg.py for yapf fix
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

3 participants