tensorflow-mnist-predict icon indicating copy to clipboard operation
tensorflow-mnist-predict copied to clipboard

Update path to model files when restoring to be relative

Open charliegerard opened this issue 6 years ago • 0 comments

The prediction scripts fail for me with the following error:

NotFoundError (see above for traceback): Unsuccessful TensorSliceReader constructor: Failed to find any matching files for model.ckpt [[Node: save/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]

Changing the path to the model.ckpt file from 'model.ckpt' to './model.ckpt' when restoring seems to be fixing the issue for me.

charliegerard avatar Apr 04 '18 13:04 charliegerard