Tensorflow对象检测:导出推断图

时间:2019-04-18 14:04:40

标签: tensorflow deep-learning miniconda

我在导出推理图时出错,我搜索了数小时,但找不到解决方案;这是我的错误:

命令:     python export_inference_graph.py --input_type image_tensor --pipeline_config_path训练fast_rcnn_inception_v2_pets.config --trained_checkpoint_prefix训练“ model.ckpt-2950” --output_directory导出

错误回溯:

Traceback (most recent call last):
File "export_inference_graph.py", line 151, in 
tf.app.run()
File "C:\Users\OctaNet\Miniconda3\envs\tensorflow\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
_sys.exit(main(argv))
File "export_inference_graph.py", line 135, in main
text_format.Merge(f.read(), pipeline_config)
File "C:\Users\OctaNet\Miniconda3\envs\tensorflow\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 125, in read
self._preread_check()
File "C:\Users\OctaNet\Miniconda3\envs\tensorflow\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 85, in _preread_check
compat.as_bytes(self.__name), 1024 * 512, status)
File "C:\Users\OctaNet\Miniconda3\envs\tensorflow\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 528, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.UnknownError: NewRandomAccessFile failed to Create/Open: training : Acc\udce8s refus\udce9.
; Input/output error

2 个答案:

答案 0 :(得分:0)

我想您需要从“培训:Acc \ udce8s拒绝/ udce9”中删除:

答案 1 :(得分:0)

--pipeline_config_path标志已设置为training faster_rcnn_inception_v2_pets.config,这是无效路径,因为单词training后有空格。

也许user11095295打算写training/faster_rcnn_inception_v2_pets.config