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

The passed save_path is not a valid checkpoin #6

Open
Espoirzxl opened this issue Sep 5, 2021 · 3 comments
Open

The passed save_path is not a valid checkpoin #6

Espoirzxl opened this issue Sep 5, 2021 · 3 comments

Comments

@Espoirzxl
Copy link

Traceback (most recent call last):
File "predict.py", line 43, in
MODEL = ModelAlbertTextCNN()
File "predict.py", line 26, in init
self.albert, self.sess = self.load_model()
File "predict.py", line 39, in load_model
saver.restore(sess, ckpt.model_checkpoint_path)
ValueError: The passed save_path is not a valid checkpoint

@c1258797185
Copy link

需要把model/model_01下的checkpoint文件复制到model/load_01目录下

@Espoirzxl
Copy link
Author

需要把model/model_01下的checkpoint文件复制到model/load_01目录下
我修改了一下文件,已经解决啦,谢谢。

@dcdethan
Copy link

棒!

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