TannerGilbert / Tensorflow-Object-Detection-API-Train-Model

Train a object detection model with the Tensorflow Object Detection API and Tensorflow 2.
https://gilberttanner.com/blog/creating-your-own-objectdetector
MIT License
192 stars 103 forks source link

google.protobuf.text_format.ParseError: 161:14 : Message type "object_detection.protos.Optimizer" has no field named "i". #21

Closed aarju123 closed 3 years ago

aarju123 commented 3 years ago

I am following your documentation: Ubuntu : Ubuntu 16.04.7 LTS Tensorflow: 2.2 GPU Cuda 10.0

Step: Train Model: python model_main_tf2.py \ --pipeline_config_path=training/ssd_efficientdet_d0_512x512_coco17_tpu-8.config \ --model_dir=training \ --alsologtostderr

Error:

File "model_main_tf2.py", line 113, in tf.compat.v1.app.run() File "/home/aarju/anaconda3/envs/demo_model/lib/python3.8/site-packages/tensor _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef) File "/home/aarju/anaconda3/envs/demo_model/lib/python3.8/site-packages/absl/a _run_main(main, args) File "/home/aarju/anaconda3/envs/demo_model/lib/python3.8/site-packages/absl/a sys.exit(main(argv)) File "model_main_tf2.py", line 104, in main model_lib_v2.train_loop( File "/home/aarju/anaconda3/envs/demo_model/lib/python3.8/site-packages/object configs = get_configs_from_pipeline_file( File "/home/aarju/anaconda3/envs/demo_model/lib/python3.8/site-packages/object text_format.Merge(proto_str, pipeline_config) File "/home/aarju/anaconda3/envs/demo_model/lib/python3.8/site-packages/google return MergeLines( File "/home/aarju/anaconda3/envs/demo_model/lib/python3.8/site-packages/google return parser.MergeLines(lines, message) File "/home/aarju/anaconda3/envs/demo_model/lib/python3.8/site-packages/google self._ParseOrMerge(lines, message) File "/home/aarju/anaconda3/envs/demo_model/lib/python3.8/site-packages/google self._MergeField(tokenizer, message) File "/home/aarju/anaconda3/envs/demo_model/lib/python3.8/site-packages/google merger(tokenizer, message, field) File "/home/aarju/anaconda3/envs/demo_model/lib/python3.8/site-packages/google self._MergeField(tokenizer, sub_message) File "/home/aarju/anaconda3/envs/demo_model/lib/python3.8/site-packages/google merger(tokenizer, message, field) File "/home/aarju/anaconda3/envs/demo_model/lib/python3.8/site-packages/google self._MergeField(tokenizer, sub_message) File "/home/aarju/anaconda3/envs/demo_model/lib/python3.8/site-packages/google raise tokenizer.ParseErrorPreviousToken( google.protobuf.text_format.ParseError: 161:14 : Message type "object_detection.

Please resolve it as soon as possible

Thank you

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days