TensorFlow.ZC尝试

1、资料:

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

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

2、教程中的命令:“"C:/Program Files/protoc/bin/protoc" object_detection/protos/*.proto --python_out=.”,做到这里的时候,我的命令始终不对,查了一些资料才弄对...

 资料:度娘搜索:“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、尝试到如下的命令时才算 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:但是 发现,不能用 类似"*.proto"的用法,需要 所有文件一个一个的执行该命令:(31个文件 对应 31条命令)

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"
扫描二维码关注公众号,回复: 6829344 查看本文章

3、

4、

5、

猜你喜欢

转载自www.cnblogs.com/cppskill/p/11221203.html