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

Cannot restore checkpoint #39

Open
KernelA opened this issue Jun 13, 2021 · 1 comment
Open

Cannot restore checkpoint #39

KernelA opened this issue Jun 13, 2021 · 1 comment

Comments

@KernelA
Copy link

KernelA commented Jun 13, 2021

I download the pretrained model from Google Drive by link:
https://drive.google.com/open?id=12kWoB0-_tflq65RNpJEnNGTTwPXa6IOH

Run project in Docker with provided Dockerfile, but got error when restoring model:

pu-gan_1  | None
pu-gan_1  | Traceback (most recent call last):
pu-gan_1  |   File "./pu_gan.py", line 47, in <module>
pu-gan_1  |     tf.app.run()
pu-gan_1  |   File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/platform/app.py", line 125, in run
pu-gan_1  |     _sys.exit(main(argv))
pu-gan_1  |   File "./pu_gan.py", line 43, in main
pu-gan_1  |     run()
pu-gan_1  |   File "./pu_gan.py", line 39, in run
pu-gan_1  |     model.test()
pu-gan_1  |   File "/home/PU-GAN/Upsampling/model.py", line 259, in test
pu-gan_1  |     saver.restore(self.sess, checkpoint_path)
pu-gan_1  |   File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/training/saver.py", line 1526, in restore
pu-gan_1  |     raise ValueError("Can't load save_path when it is None.")
pu-gan_1  | ValueError: Can't load save_path when it is None.
pu-gan_pu-gan_1 exited with code 1

This function returns None instead checkpoint_path

ckpt = tf.train.get_checkpoint_state(checkpoint_dir)

Checkpoint files inside container:

ls -1 ./model/
model-100.data-00000-of-00001
model-100.index
model-100.meta
@Nhunguts
Copy link

I think this issue #3 is helpful for you.

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

2 participants