- 解决报错:tensorflow.python.framework.errors_impl.NotFoundError: ; No such file or directory
- 执行命令时:python dataset_tools/create_pascal_tf_record.py --data_dir=voc/VOCdevkit/ --year=VOC2012 --set=val --output_path=voc/pascal_val.record,将“–output_path”误写为“–out_path”
- 看看命令的参数有没有出错
Traceback (most recent call last):
File "create_pascal_tf_record.py", line 185, in
tf.app.run()
File "/home/muli/.local/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 126, in run
_sys.exit(main(argv))
File "create_pascal_tf_record.py", line 158, in main
writer = tf.python_io.TFRecordWriter(FLAGS.output_path)
File "/home/muli/.local/lib/python3.5/site-packages/tensorflow/python/lib/io/tf_record.py", line 112, in __init__
compat.as_bytes(path), compat.as_bytes(compression_type), status)
File "/home/muli/.local/lib/python3.5/site-packages/tensorflow/python/framework/errors_impl.py", line 519, in __exit__
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.NotFoundError: ; No such file or directory