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

Failed to find any matching for CNN_1.ckpt #2

Open
rameshjes opened this issue Nov 29, 2017 · 1 comment
Open

Failed to find any matching for CNN_1.ckpt #2

rameshjes opened this issue Nov 29, 2017 · 1 comment

Comments

@rameshjes
Copy link

Hello @hangyao

Thanks for your code. When I try to implement, it gives me following error as shown in diagram. Could you please help me with this? I am unable to figure out. I already tried like this:

reader = tf.train.NewCheckpointReader("CNN_1.ckpt")

but it does not work.

image

@hangyao
Copy link
Owner

hangyao commented Nov 29, 2017

Hi @rameshjesswani First, this is a very old code, and it hasn't been updated for quite a while, so it may not be compatible with the latest version of Tensorflow.

And the code you mentioned is reading a checkpoint file from the directory, so you should have pre-trained the model, and have a CNN_1.ckpt file saved in the directory. That means you should already run the previous cell, and save_path = saver.save(session, "CNN_1.ckpt") generated a CNN_1.ckpt file already, then you can correctly read the file.

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