tensorflow / models

Models and examples built with TensorFlow
Other
77.16k stars 45.76k forks source link

google.protobuf.text_format.ParseError: 127:1 : Message type "object_detection.protos.InputReader" has no field named "eval_config". #5997

Open RamishaRaniK opened 5 years ago

RamishaRaniK commented 5 years ago

I am getting this error,

'C:\tensorflow1\models\research\object_detection>python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config WARNING:tensorflow:From C:\Anaconda3\envs\Helmet\lib\site-packages\tensorflow\python\platform\app.py:124: main (from main) is deprecated and will be removed in a future version. Instructions for updating: Use object_detection/model_main.py. Traceback (most recent call last): File "train.py", line 184, in tf.app.run() File "C:\Anaconda3\envs\Helmet\lib\site-packages\tensorflow\python\platform\app.py", line 124, in run _sys.exit(main(argv)) File "C:\Anaconda3\envs\Helmet\lib\site-packages\tensorflow\python\util\deprecation.py", line 136, in new_func return func(*args, **kwargs) File "train.py", line 93, in main FLAGS.pipeline_config_path) File "C:\tensorflow1\models\research\object_detection\utils\config_util.py", line 96, in get_configs_from_pipeline_file text_format.Merge(proto_str, pipeline_config) File "C:\Anaconda3\envs\Helmet\lib\site-packages\google\protobuf\text_format.py", line 536, in Merge descriptor_pool=descriptor_pool) File "C:\Anaconda3\envs\Helmet\lib\site-packages\google\protobuf\text_format.py", line 590, in MergeLines return parser.MergeLines(lines, message) File "C:\Anaconda3\envs\Helmet\lib\site-packages\google\protobuf\text_format.py", line 623, in MergeLines self._ParseOrMerge(lines, message) File "C:\Anaconda3\envs\Helmet\lib\site-packages\google\protobuf\text_format.py", line 638, in _ParseOrMerge self._MergeField(tokenizer, message) File "C:\Anaconda3\envs\Helmet\lib\site-packages\google\protobuf\text_format.py", line 763, in _MergeField merger(tokenizer, message, field) File "C:\Anaconda3\envs\Helmet\lib\site-packages\google\protobuf\text_format.py", line 837, in _MergeMessageField self._MergeField(tokenizer, sub_message) File "C:\Anaconda3\envs\Helmet\lib\site-packages\google\protobuf\text_format.py", line 730, in _MergeField (message_descriptor.full_name, name)) google.protobuf.text_format.ParseError: 127:1 : Message type "object_detection.protos.InputReader" has no field named "eval_config".'

tensorflowbutler commented 5 years ago

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks. What is the top-level directory of the model you are using Have I written custom code OS Platform and Distribution TensorFlow installed from TensorFlow version Bazel version CUDA/cuDNN version GPU model and memory Exact command to reproduce

RamishaRaniK commented 5 years ago

Thank you for the reply. please kindly read the below details

python version: python3.6.8

What is the top-level directory of the model you are using C:\tensorflow1\models\research\object_detection> Error (Helmet) C:\tensorflow1\models\research\object_detection>python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config WARNING:tensorflow:From C:\Anaconda3\envs\Helmet\lib\site-packages\tensorflow\python\platform\app.py:124: main (from main) is deprecated and will be removed in a future version. Instructions for updating: Use object_detection/model_main.py. Traceback (most recent call last): File "train.py", line 184, in tf.app.run() File "C:\Anaconda3\envs\Helmet\lib\site-packages\tensorflow\python\platform\app.py", line 124, in run _sys.exit(main(argv)) File "C:\Anaconda3\envs\Helmet\lib\site-packages\tensorflow\python\util\deprecation.py", line 136, in new_func return func(*args, **kwargs) File "train.py", line 93, in main FLAGS.pipeline_config_path) File "C:\tensorflow1\models\research\object_detection\utils\config_util.py", line 96, in get_configs_from_pipeline_file text_format.Merge(proto_str, pipeline_config) File "C:\Anaconda3\envs\Helmet\lib\site-packages\google\protobuf\text_format.py", line 536, in Merge descriptor_pool=descriptor_pool) File "C:\Anaconda3\envs\Helmet\lib\site-packages\google\protobuf\text_format.py", line 590, in MergeLines return parser.MergeLines(lines, message) File "C:\Anaconda3\envs\Helmet\lib\site-packages\google\protobuf\text_format.py", line 623, in MergeLines self._ParseOrMerge(lines, message) File "C:\Anaconda3\envs\Helmet\lib\site-packages\google\protobuf\text_format.py", line 638, in _ParseOrMerge self._MergeField(tokenizer, message) File "C:\Anaconda3\envs\Helmet\lib\site-packages\google\protobuf\text_format.py", line 763, in _MergeField merger(tokenizer, message, field) File "C:\Anaconda3\envs\Helmet\lib\site-packages\google\protobuf\text_format.py", line 837, in _MergeMessageField self._MergeField(tokenizer, sub_message) File "C:\Anaconda3\envs\Helmet\lib\site-packages\google\protobuf\text_format.py", line 730, in _MergeField (message_descriptor.full_name, name)) google.protobuf.text_format.ParseError: 127:1 : Message type "object_detection.protos.InputReader" has no field named "eval_config".

(Helmet) C:\tensorflow1\models\research\object_detection>

OS Platform and Distribution OS platform: Windows 10, Distribution: Anaconda Distribution TensorFlow installed from pip install tensorflow-gpu==1.5 TensorFlow version tensorflow-gpu==1.5 Bazel version CUDA/cuDNN version CUDA:9.0 cuDNN:7.0 GPU model and memory GPU model: GTX1060(nvidia) GPU Memory: 6GB Exact command to reproduce Thanks in advance

yaceben commented 5 years ago

Hi @RamishaRaniK,

It's most likely a problem with a malformed faster_rcnn_inception_v2_pets.config, my best guess being that you probably forgot the closing bracket of the train_input_reader.

RamishaRaniK commented 5 years ago

Hi @yaceben Thank you so much for your reply.

It worked for me. I have missed the closed bracket of the train_input_reader as you mentioned.

once again thanks!

sayannath commented 3 years ago

Ig this issue must be closed now!