I am following the example found here. But whenever I enter the command "C:/Program Files/protoc/bin/protoc" object_detection/protos/.proto --python_out=. I get an error that says object_detection/protos/.proto: No such file or directory. I can't create a directory called *.proto. So I'm missing some fundamental information on how to do this. Since I can't find anyone else complaining about this issue it must be pretty simple. I am using a windows OS.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- batch_dot with variable batch size in Keras
- How to get the background from multiple images by
- Evil ctypes hack in python
Be sure to change the directory to "models\research\" and try to do the steps from the tutorial using the protoc version 3.4.0, just like the tutorial. I only worked for me using 3.4.0.
my cmd line that worked:
This is what I did and I could compile with with 3.4 and 3.6 version on Windows 7 Professional
I am using protoc-3.6.1-win32.zip.. On windows
Created a batch file which will compile all the .proto files.
for %%v in object_detection\protos*.proto do ( D:\bin\protoc %%v --python_out=. )
Run this batch file from models\research folder. Do change the protoc path. Hope this helps others and we dont need to install older versions of protoc. Thanks
change the directory to models or model master of tensorflow then you have to compile the .proto files of protobuff using the following commands running one by one
I faced the issue of
missing output directive
. The solution that worked out for me was that I tried the full file names as*.proto
was not working.Go to the protoc releases page and download the protoc-3.4.0-win32.zip, extract it, and you will find protoc.exe in the bin directory. then it is needed to be added path to the system path.
Move this to models/research folder tensorflow model project
Next, you can use the protoc command.
protoc object_detection/protos/*.proto --python_out=.