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

os.rename can not found model-2600 #26

Open
aloyschen opened this issue Aug 29, 2017 · 1 comment
Open

os.rename can not found model-2600 #26

aloyschen opened this issue Aug 29, 2017 · 1 comment

Comments

@aloyschen
Copy link

I didn't change any file
Traceback (most recent call last):
File "train.py", line 161, in
train_cnn_rnn()
File "train.py", line 151, in train_cnn_rnn
os.rename(path, trained_dir + 'best_model.ckpt')
FileNotFoundError: [Errno 2] No such file or directory: './checkpoints_1504000981/model-2600' -> './trained_results_1504000981/best_model.ckpt'

@aloyschen
Copy link
Author

aloyschen commented Aug 29, 2017

I have changed the code as follow, delete the rename:
logging.critical('Training is complete, testing the best model on x_test and y_test')
saver.save(sess, trained_dir + 'best_model.ckpt')
saver.restore(sess, checkpoint_prefix + '-' + str(best_at_step))

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

1 participant