TensorFlow.ZC try

1. Information:

 https://github.com/protocolbuffers/protobuf/releases

  https://pythonprogramming.net/introduction-use-tensorflow-object-detection-api-tutorial/

2, tutorial command: ".." C: / Program Files / protoc / bin / protoc "object_detection / protos / * proto --python_out =", do it here, my order is always wrong, checked some information in order to get to ...

 资料:度娘搜索:“File does not reside within any path specified using --proto_path (or -I).”

    File does not reside within any path specified ... - 简书.html(https://www.jianshu.com/p/42a480a45cd6

    protocol buffers - protobuf_ .proto file not under source directory - Stack Overflow.html(https://stackoverflow.com/questions/47861543/protobuf-proto-file-not-under-source-directory

 2.1, when you try the following command considered OK ...:

protoc "object_detection/protos/anchor_generator.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"

  protoc "object_detection/protos/anchor_generator.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"

  ZC: but found not similar "* .proto" usage, you need all the files one by one, execute the command: (31 files correspond to 31 commands)

protoc "object_detection/protos/anchor_generator.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/argmax_matcher.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/bipartite_matcher.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/box_coder.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/box_predictor.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/calibration.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/eval.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/faster_rcnn.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/faster_rcnn_box_coder.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/flexible_grid_anchor_generator.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/graph_rewriter.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/grid_anchor_generator.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/hyperparams.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/image_resizer.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/input_reader.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/keypoint_box_coder.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/losses.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/matcher.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/mean_stddev_box_coder.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/model.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/multiscale_anchor_generator.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/optimizer.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/pipeline.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/post_processing.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/preprocessor.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/region_similarity_calculator.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/square_box_coder.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/ssd.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/ssd_anchor_generator.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/string_int_label_map.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/train.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"

 

3、

4、

5、

 

Guess you like

Origin www.cnblogs.com/cppskill/p/11221203.html
try