tensorflow.python.framework.errors_impl.NotFoundError:=尝试导出推理图时

时间:2017-09-04 17:20:06

标签: python python-3.x tensorflow ubuntu-16.04

我尝试在训练后使用train.py在tenosrflow models / object_detection中导出图形(https://github.com/tensorflow/models).But当我尝试使用检查点导出图形时出现此错误,

$ python3 object_detection/export_inference_graph.py  --input_type image_tensor  --pipeline_config_path = "ssd_inception_v2_pets.config"  --trained_checkpoint_prefix="output/model.ckpt-78543"  --output_directory="_inference_graph.pb"
Traceback (most recent call last):
  File "object_detection/export_inference_graph.py", line 109, in <module>
    tf.app.run()
  File "/home/ishara/.local/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "object_detection/export_inference_graph.py", line 102, in main
    text_format.Merge(f.read(), pipeline_config)
  File "/home/ishara/.local/lib/python3.5/site-packages/tensorflow/python/lib/io/file_io.py", line 118, in read
    self._preread_check()
  File "/home/ishara/.local/lib/python3.5/site-packages/tensorflow/python/lib/io/file_io.py", line 78, in _preread_check
    compat.as_bytes(self.__name), 1024 * 512, status)
  File "/usr/lib/python3.5/contextlib.py", line 66, in __exit__
    next(self.gen)
  File "/home/ishara/.local/lib/python3.5/site-packages/tensorflow/python/framework/errors_impl.py", line 466, in raise_exception_on_not_ok_status
    pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.NotFoundError: =

我正在使用带有tensorflow-gpu(1.3.0)的Ubuntu 16.04

0 个答案:

没有答案