转自:https://github.com/tensorflow/models/issues/1834
When I use the commond " protoc object_detection/protos/*.proto --python_out=.",
The output:object_detection/protos/anchor_generator.proto:11:3: Expected "required", "optio nal", or "repeated".object_detection/protos/anchor_generator.proto:11:32: Missing field number.
You need to download protoc version 3.3 (already compiled). Used protoc inside bin directory to run this command like this:
tensorflow$ mkdir protoc_3.3tensorflow$ cd protoc_3.3tensorflow/protoc_3.3$ wget wget tensorflow/protoc_3.3$ chmod 775 protoc-3.3.0-linux-x86_64.ziptensorflow/protoc_3.3$ unzip protoc-3.3.0-linux-x86_64.ziptensorflow/protoc_3.3$ cd ../models/tensorflow/protoc_3.3$ /home/humayun/tensorflow/protoc_3.3/bin/protoc object_detection/protos/*.proto --python_out=.It will work hopefullly.
Humayun