python - Tensorflow 对象检测 NewRandomAccessFile 无法创建/打开
问题描述
我正在尝试在一组老鼠图像上运行对象检测 API,但它没有检测到我的.pbtxt
文件。我正在运行 Windows 10、TensorFlow 1.13、Python 3.6.8。
这是我从对象检测目录运行的内容:
(mv) D:\training\Tensorflow\models\research\object_detection>python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/ssd_mobilenet_v1_pets.config
我遇到了以下错误:
tensorflow.python.framework.errors_impl.NotFoundError: NewRandomAccessFile failed to Create/Open: D:\training\Tensorflow\models\research\object_detection\training\rat_face_detection.pbtxt : The system cannot find the file specified.; No such file or directory
这是我的\training
目录:
05/22/2019 02:15 PM <DIR> .
05/22/2019 02:15 PM <DIR> ..
05/22/2019 02:38 PM 4,995 pipeline.config
05/22/2019 02:15 PM 42 rat_face_detection.pbtxt.txt
05/22/2019 02:37 PM 4,995 ssd_mobilenet_v1_pets.config
3 File(s) 10,032 bytes
2 Dir(s) 994,458,820,608 bytes free
所以文件确实在正确的位置。
这是 的值label_map_path
:"D:\\training\\Tensorflow\\models\\research\\object_detection\\training\\rat_face_detection.pbtxt"
我尝试过正斜杠,但在另一个线程上看到 Windows 需要反斜杠。
我知道这一点models\research\
并且\models\research\slim
正在路上。我还内置了两者\research
并\research\slim
使用python setup.py build
了python setup.py install
两者。
我究竟做错了什么?
解决方案
推荐阅读
- python - 为什么在 AWS Lambda 上导入 keras 需要这么长时间?
- spring - 如何在java spring中从identityServer4中提取jwk
- java - Android - 从/到服务的通知按钮
- git - 变基还是合并到遥远的祖先分支?
- android - Room Database TypeConverter 未在某些集合中使用,例如 Set of String
- go - 当代码覆盖率小于 x% 时使构建失败
- python - 分段错误(核心转储)错误 scikit 在大型稀疏矩阵上学习余弦相似度(86196 X 15497)
- python - 如何检查列名是在字符串的最后还是在字符串的前面(python)?
- visual-studio-code - 将多个光标移动到 VSCode 中的下一个或上一个空间
- java - 如何在 .class 文件中添加/替换 SourceFile 属性