python – TensorFlow – 对象检测模块,尝试使用protoc时出现错
发布时间:2020-12-20 12:02:38 所属栏目:Python 来源:网络整理
导读:有protoc的问题,该行在 Windows中不起作用. 我收到这个错误: 用这条线 protoc --proto_path=./object_detection/protos --python_out=c:testmomo ./object_detection/protos/anchor_generator.proto 我收到这个错误 object_detection/protos/grid_anchor_g
有protoc的问题,该行在
Windows中不起作用.
我收到这个错误: 用这条线 protoc --proto_path=./object_detection/protos --python_out=c:testmomo ./object_detection/protos/anchor_generator.proto 我收到这个错误 object_detection/protos/grid_anchor_generator.proto: File not found. object_detection/protos/ssd_anchor_generator.proto: File not found. anchor_generator.proto: Import "object_detection/protos/grid_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:12:5: "GridAnchorGenerator" is not defined. anchor_generator.proto:13:5: "SsdAnchorGenerator" is not defined. 问题是什么?? 解决方法
我正在尝试不同的事情,并找出问题所在.
确保你这样做: # From models/ protoc object_detection/protos/*.proto --python_out=. 而我试图这样做: # from object_detection/ protoc protos/*.proto --python_out=. 这给了我你的错误. 检查您是否在正确的位置(目录). (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |