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

restore failed with latest tensorflow(1.x) #72

Open
mmxuan18 opened this issue Jul 10, 2018 · 6 comments
Open

restore failed with latest tensorflow(1.x) #72

mmxuan18 opened this issue Jul 10, 2018 · 6 comments

Comments

@mmxuan18
Copy link

image

@Ariel-JUAN
Copy link

There are two ways to restore models, you need to use the right code and use the right model.

@mmxuan18
Copy link
Author

try both command as follow has the same error, my tensorflow version is 1.8.0
python predict.py --model_path NYU_ResNet-UpProj.npy --image_paths ~/Downloads/dp/t4.jpg

python predict.py --model_path NYU_FCRN-checkpoint/NYU_FCRN.ckpt.data-00000-of-00001 --image_paths ~/Downloads/dp/t4.jpg

what the right code and right model mean, model is download as readme link

@Ariel-JUAN
Copy link

Ariel-JUAN commented Jul 11, 2018

  1. Use to load from ckpt file
    saver = tf.train.Saver()
    saver.restore(sess, model_data_path)

  2. Use to load from npy file
    net.load(model_data_path, sess)

@mmxuan18
Copy link
Author

i use tensorflow ckpt not modify the predict.py code, and error info like i post

@nemerchiedde
Copy link

I have the same problem

@nemerchiedde
Copy link

Use for the first option:
python predict.py --model_path NYU_FCRN-checkpoint/NYU_FCRN.ckpt --image_paths ~/Downloads/dp/t4.jpg
But the seconde one I don't know why it doesn't work.

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