如何解决protoc没有看到文件? 我做错了事
我正在尝试运行:
protoc *.proto -python_out=.
在tensorflow>模型>研究> object_detection> protos内的protoc目录中,并返回
object_detection/protos/flexible_grid_anchor_generator.proto: File not found.
object_detection/protos/grid_anchor_generator.proto: File not found.
object_detection/protos/multiscale_anchor_generator.proto: File not found.
object_detection/protos/ssd_anchor_generator.proto: File not found.
anchor_generator.proto: Import "object_detection/protos/flexible_grid_anchor_generator.proto" was not found or had errors.
anchor_generator.proto: Import "object_detection/protos/grid_anchor_generator.proto" was not found or had errors.
anchor_generator.proto: Import "object_detection/protos/multiscale_anchor_generator.proto" was not found or had errors.
anchor_generator.proto: Import "object_detection/protos/ssd_anchor_generator.proto" was not found or had errors.
anchor_generator.proto:14:5: "GridAnchorGenerator" is not defined.
anchor_generator.proto:15:5: "SsdAnchorGenerator" is not defined.
anchor_generator.proto:16:5: "MultiscaleAnchorGenerator" is not defined.
anchor_generator.proto:17:5: "FlexibleGridAnchorGenerator" is not defined.
但是在我看来,那些文件肯定在那里?
感谢您的耐心和时间。
编辑: 我也尝试过使用绝对路径
protoc /home/usr/.virtualenvs/capstone/lib/python3.8/site-packages/tensorflow/models/research/object_detection/protos/*.proto --python_out=/home/usr/.virtualenvs/capstone/lib/python3.8/site-packages/tensorflow/models/research/object_detection/protos
我收到相同的错误
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。