错误代码如下:
NotFoundError (see above for traceback): Unsuccessful TensorSliceReader constructor:
Failed to find any matching files for xxx
……
经查资料分析,错误原因可能出在加载模型时的路径问题。我采用的加载模型方法:
with tf.Session() as sess:
print("Reading checkpoints...")
ckpt = tf.train.get_checkpoint_state(logs_train_dir)
if ckpt and ckpt.model_checkpoint_path:
global_step = ckpt.model_checkpoint_path.split('/')