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
Hi everyone this was how I was able to solve this error while learning about object detection using tensorflow:
STEPS:
1- To download the Google Protobuf for Windows 10 64 bit system, head onto this link. https://github.com/protocolbuffers/protobuf/releases/tag/v3.4.0 and install “protoc-3.4.0-win32.zip”.(Advice-Don't install protoc-3.6.0)
2- Download models file from this link. https://github.com/tensorflow/models
3.Now you need to execute the protobuf compile within the command prompt with help of research directory:
4-First get inside research directory: cd C:\Users\Ankit\tensorflow\models\research and press Enter//just an example
5-Then do this step immediate after above step:
"C:\Users\Ankit\Desktop\Tensorflow\protbuf\bin\protoc.exe" object_detection/protos/*.proto --python_out=. and press Enter(There is space between object and " sign and this is written in one line)
6-Note: Go to the object_detection/protos folder, and if there are .py files, you’ve successfully completed the compilation of your .proto files
THANK YOU
Solved for Windows, be in 'research' and have the 'protoc' in path, then this will work:
Good Luck !
I have same problem on ubuntu 16.04. Change directory to research and now this file missing problem solved.
A little python code that may help you compile protoc faster
If it turns out you you're missing the whole
models/research/object_detection/protos
sub-tree like me, you can download it separately from https://github.com/tensorflow/models. Not having these files will give the same error, i.e.No such file or directory
.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