tensorflow.python.framework.errors_impl.NotFoundError: Unsuccessful TensorSliceReader constructor: F
Posted lixiaolun
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了tensorflow.python.framework.errors_impl.NotFoundError: Unsuccessful TensorSliceReader constructor: F相关的知识,希望对你有一定的参考价值。
运行object detection报错如下:
Wed Jun 20 02:20:57 2018[1,0]<stderr>:Traceback (most recent call last): Wed Jun 20 02:20:57 2018[1,0]<stderr>: File "/data/script/tensorflow-models/tensorflow_models/research/object_detection/train.py", line 211, in <module> Wed Jun 20 02:20:57 2018[1,0]<stderr>: tf.app.run() Wed Jun 20 02:20:57 2018[1,0]<stderr>: File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 48, in run Wed Jun 20 02:20:57 2018[1,0]<stderr>: _sys.exit(main(_sys.argv[:1] + flags_passthrough)) Wed Jun 20 02:20:57 2018[1,0]<stderr>: File "/data/script/tensorflow-models/tensorflow_models/research/object_detection/train.py", line 207, in main Wed Jun 20 02:20:57 2018[1,0]<stderr>: worker_job_name, is_chief, FLAGS.train_dir) Wed Jun 20 02:20:57 2018[1,0]<stderr>: File "/data/script/tensorflow-models/tensorflow_models/research/object_detection/trainer.py", line 246, in train Wed Jun 20 02:20:57 2018[1,0]<stderr>: var_map, train_config.fine_tune_checkpoint)) Wed Jun 20 02:20:57 2018[1,0]<stderr>: File "/data/script/tensorflow-models/tensorflow_models/research/object_detection/utils/variables_helper.py", line 122, in get_variables_available_in_checkpoint Wed Jun 20 02:20:57 2018[1,0]<stderr>: ckpt_reader = tf.train.NewCheckpointReader(checkpoint_path) Wed Jun 20 02:20:57 2018[1,0]<stderr>: File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 150, in NewCheckpointReader Wed Jun 20 02:20:57 2018[1,0]<stderr>: return CheckpointReader(compat.as_bytes(filepattern), status) Wed Jun 20 02:20:57 2018[1,0]<stderr>: File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/errors_impl.py", line 473, in __exit__ Wed Jun 20 02:20:57 2018[1,0]<stderr>: c_api.TF_GetCode(self.status.status)) Wed Jun 20 02:20:57 2018[1,0]<stderr>:tensorflow.python.framework.errors_impl.NotFoundError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /a-a/model.ckpt
Failed to find any matching files for /a-a/model.ckpt
原因是路径中不支持有-,所以/a-a是找不到该路径的。
以上是关于tensorflow.python.framework.errors_impl.NotFoundError: Unsuccessful TensorSliceReader constructor: F的主要内容,如果未能解决你的问题,请参考以下文章