Unable to compile .proto files for Tensorflow object-detection API

有些话、适合烂在心里 提交于 2019-12-13 20:06:29

问题


I'm trying to install Tensorflow and im having trouble compiling the .proto files.

I try running this command in the research folder:
C:/protoc/bin/protoc object_detection/protos/*.proto --python_out=.

but it outputs: object_detection/protos/*.proto: No such file or directory

Any idea why this is happening?


回答1:


I have found a solution, it is cumbersome. It works if i compile them one by one.

e.g. C:/protoc/bin/protoc object_detection/protos/anchor_generator.proto --python_out=.

Where C:/protoc/bin/protoc is the path to protoc.exe file




回答2:


This code works for me, try it

protoc-3.4.0-win32\bin\protoc object_detection/protos/*.proto --python_out=.

protoc-3.4.0-win32\bin\protoc is path to protoc.exe file



来源:https://stackoverflow.com/questions/55344103/unable-to-compile-proto-files-for-tensorflow-object-detection-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!