models icon indicating copy to clipboard operation
models copied to clipboard

google.protobuf.text_format.ParseError: 135:19 : Message type "object_detection.protos.TFRecordInputReader" has no field named "D"

Open shauviks opened this issue 8 years ago • 11 comments

Hi When i am trying to run train.py, I am getting the above error . Can someone please help me . The complete error is below. (tfobj) D:\tensorflow\models\research\object_detection>python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config C:\Users\kkran\Anaconda3\envs\tfobj\lib\importlib\_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88 return f(*args, **kwds) C:\Users\kkran\Anaconda3\envs\tfobj\lib\importlib\_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88 return f(*args, **kwds) WARNING:tensorflow:From C:\Users\kkran\Anaconda3\envs\tfobj\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 <module> tf.app.run() File "C:\Users\kkran\Anaconda3\envs\tfobj\lib\site-packages\tensorflow\python\platform\app.py", line 124, in run _sys.exit(main(argv)) File "C:\Users\kkran\Anaconda3\envs\tfobj\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 "D:\tensorflow\models\research\object_detection\utils\config_util.py", line 94, in get_configs_from_pipeline_file text_format.Merge(proto_str, pipeline_config) File "C:\Users\kkran\Anaconda3\envs\tfobj\lib\site-packages\google\protobuf\text_format.py", line 533, in Merge descriptor_pool=descriptor_pool) File "C:\Users\kkran\Anaconda3\envs\tfobj\lib\site-packages\google\protobuf\text_format.py", line 587, in MergeLines return parser.MergeLines(lines, message) File "C:\Users\kkran\Anaconda3\envs\tfobj\lib\site-packages\google\protobuf\text_format.py", line 620, in MergeLines self._ParseOrMerge(lines, message) File "C:\Users\kkran\Anaconda3\envs\tfobj\lib\site-packages\google\protobuf\text_format.py", line 635, in _ParseOrMerge self._MergeField(tokenizer, message) File "C:\Users\kkran\Anaconda3\envs\tfobj\lib\site-packages\google\protobuf\text_format.py", line 735, in _MergeField merger(tokenizer, message, field) File "C:\Users\kkran\Anaconda3\envs\tfobj\lib\site-packages\google\protobuf\text_format.py", line 823, in _MergeMessageField self._MergeField(tokenizer, sub_message) File "C:\Users\kkran\Anaconda3\envs\tfobj\lib\site-packages\google\protobuf\text_format.py", line 735, in _MergeField merger(tokenizer, message, field) File "C:\Users\kkran\Anaconda3\envs\tfobj\lib\site-packages\google\protobuf\text_format.py", line 823, in _MergeMessageField self._MergeField(tokenizer, sub_message) File "C:\Users\kkran\Anaconda3\envs\tfobj\lib\site-packages\google\protobuf\text_format.py", line 703, in _MergeField (message_descriptor.full_name, name)) google.protobuf.text_format.ParseError: 135:19 : Message type "object_detection.protos.TFRecordInputReader" has no field named "D".

shauviks avatar Jul 26 '18 05:07 shauviks

Hi I have solved this by checking 'xxx_xxxx_xx.config' file. You can try 'ctrl+F' to find 'D' in your config file to check if there is something wrong with it. Good luck :)

5ertsa avatar Jul 26 '18 08:07 5ertsa

@xDooooot ,Hi,can you tell me where is the 'xxx_xxxx_xx.config' file ,

yihao727 avatar Nov 04 '18 09:11 yihao727

You can find it in '/your/path/to/tensorflow/models/research/object_detection/samples/configs/' :)

5ertsa avatar Nov 08 '18 07:11 5ertsa

@yihao727

5ertsa avatar Nov 08 '18 07:11 5ertsa

I got the same problem with you. How did you fix it?

yaozhangwpi avatar Nov 24 '18 06:11 yaozhangwpi

Solved it...!

google.protobuf.text_format.ParseError: 135:19 : Message type "object_detection.protos.TFRecordInputReader" has no field named "D".

The issue is showing by 135:19 in the code the module config file you are using

HimathHarshajith avatar May 02 '19 16:05 HimathHarshajith

Hi There, We are checking to see if you still need help on this, as this seems to be considerably old issue. Please update this issue with the latest information, code snippet to reproduce your issue and error you are seeing. If we don't hear from you in the next 7 days, this issue will be closed automatically. If you don't need help on this issue any more, please consider closing this.

tensorflowbutler avatar Jan 29 '20 23:01 tensorflowbutler

@shauviks We are checking to see if you still need help on this issue? Could you please have a look on https://github.com/tensorflow/models/issues/4905#issuecomment-488750640 and let us know if it helps? Thanks!

kumariko avatar Jan 05 '22 12:01 kumariko

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.

google-ml-butler[bot] avatar Jan 12 '22 12:01 google-ml-butler[bot]

Closing as stale. Please reopen if you'd like to work on this further.

google-ml-butler[bot] avatar Jan 19 '22 13:01 google-ml-butler[bot]

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar Jan 19 '22 13:01 google-ml-butler[bot]