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 e
sometimes windows Cmd doesn't accept wildcard '*'. that's why it shows error. you can use loop to solve this problam. to create Loop in Cmd checkout this link. https://ss64.com/nt/for.html ref: protoc cannot find files in windows 7
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=.
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=.
The .proto
files should be in tensorflow-models/research/object_detection/protos/
.
So you should first
cd C:\path\to\tensorflow-models\research
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:
C:\Program Files\protoc-<version>\bin\protoc object_detection/protos/.proto --python_out=.
Again, the above is just a general example. You will have to replace <version>
with your protoc
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 before object_detection/protos/.proto --python_out=.
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=.
Solved for Windows, be in 'research' and have the 'protoc' in path, then this will work:
for /f %i in ('dir /b object_detection\protos\*.proto') do protoc object_detection\protos\%i --python_out=.
Good Luck !