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
I have the same error
Object_detection/protos/.proto: No such file or directory.
This is solved when I use Protocol Buffers v3.4.0.
Make Sure you are inside
models-master\research
and then, use command as:FullPathToProtoc/protoc-3.4.0-win32/bin/protoc object_detection/protos/*.proto --python_out=.
I'm going to post this on all these questions I can find so people know. I have to write these directions for myself and others later anyways.
The following does and does not work in a way:
The *.proto designating all files does not work for the compiler. If you are using version 3.5, you have to specify each individual file.
So here it what it would look like:
change your directory to the research folder you downloaded(may differ):
Get the location of the protroc.exe file that you downloaded
Go to the protos folder so you know what files you need to do individually
Now start spamming every individual .proto item in that folder in cmd:
Or you could call it a day and get 3.4 and run:
Let me know if I can clarify some more. I try to be very clear so idiots like me can understand.
The
.proto
files should be intensorflow-models/research/object_detection/protos/
.So you should first
as per the installation instructions. The above is an imaginary path and uses the Windows path structure. You should replace it with the actual path on your computer. And when you're in that directory, you can run your command:
Again, the above is just a general example. You will have to replace
<version>
with yourprotoc
version.Do NOT copy-paste the above, as it will not work directly on your machine. Instead, you must find the path of the
protoc
binary on your computer and use that one as the command beforeobject_detection/protos/.proto --python_out=.
well in my case broke the head longLong time ... the problem was in protoc version 3.5... it does not accepts this arguments on WINDOWS ... it will work completely fine if u will download 3.4.0 version that can be used with your exactly arguments:! protoc object_detection/protos/*.proto --python_out=.