ry / tensorflow-resnet

ResNet model in TensorFlow
MIT License
1.66k stars 625 forks source link

cannot load .ckpt file #23

Open xashru opened 7 years ago

xashru commented 7 years ago

I have been trying to run your forward.py code. But I get the following error message W tensorflow/core/framework/op_kernel.cc:975] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for ResNet-L50.ckpt in

"forward.py", line 11, in <module> new_saver.restore(sess, checkpoint_fn(layers))

How can I solve this issue? I am using tensorflow .10 with python 2.7

raymondchua commented 7 years ago

Do you have this checkpoint file?

xashru commented 7 years ago

its fixed. I had to use './ResNet-L%d.ckpt' instead of 'ResNet-L%d.ckpt' in meta_fn(layers): function.

ppwwyyxx commented 7 years ago

This is https://github.com/tensorflow/tensorflow/issues/6893.