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

Can't load save_path #1

Open
nanthakumar94 opened this issue Dec 5, 2018 · 1 comment
Open

Can't load save_path #1

nanthakumar94 opened this issue Dec 5, 2018 · 1 comment

Comments

@nanthakumar94
Copy link

This is my folder order:
--fcn_8s_checkpoint
--models
--nets
--preprocessing
--recipes
--utils

Traceback (most recent call last):
File "C:/Users/nanth/PycharmProjects/Background_removal_using_image_segmentation-master/Background_removal_using_image_segmentation-master/segment_image.py", line 59, in
saver.restore(sess, tf.train.latest_checkpoint(checkpoint_dir='model_fcn8s_final.ckpt'))
File "C:\Users\nanth\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\training\saver.py", line 1713, in restore
raise ValueError("Can't load save_path when it is None.")
ValueError: Can't load save_path when it is None

please tell me, how to load ckpt file in this script and i need only the segmented image only

@bhavi289
Copy link

First remove the suffix ".data-00000-of-00001" from the checkpoint file.
So model_fcn8s_final.ckpt.data-00000-of-00001 becomes model_fcn8s_final.ckpt

Then change the sess.restore line to this -

saver.restore(sess, "fcn_8s_checkpoint/model_fcn8s_final.ckpt")

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