tensorflow Protobuf Compilation issue

筅森魡賤 提交于 2019-12-12 13:36:34

问题


I want to compile protobuf libraries for google object detection API. I followed the official tutorial and typed protoc object_detection/protos/*.proto --python_out=.. Then what I got is "object_detection/protos/*.proto: Invalid argument". Can anyone tell me what should I do? Thanks!


回答1:


If your operating system is windows, then *. may not work. A good way to solve this problem is to use bash. Download git for windows, don't forget to select git bash when you install it. From tensorflow/models/research/, right click, select git bash, then paste the command, it works well on my laptop.




回答2:


Try

protoc --python_out=. object_detection/protos/*.proto

Usage:

protoc [OPTION] PROTO_FILES



回答3:


I know this is a late answer but after some 20 minutes trying out different things, i decided to try it on another terminal and i tried it on git bash.

You need to be in the correct directory so just cd into /models-master/research and make a folder named 1prts using mkdir once you are inside the research directory.

Since the last release, the repos has changed so this is the command you need to run:

protoc object_detection/protos/*.proto --python_out=./1prts


来源:https://stackoverflow.com/questions/46038904/tensorflow-protobuf-compilation-issue

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