models icon indicating copy to clipboard operation
models copied to clipboard

ParseError

Open gaiwkadSrushti opened this issue 2 years ago • 1 comments

ParseError Traceback (most recent call last) ~\AppData\Local\Temp\ipykernel_4100\202684143.py in ----> 1 config = config_util.get_configs_from_pipeline_file(files['PIPELINE_CONFIG'])

F:\Final Year\TFOD\tfod\lib\site-packages\object_detection\utils\config_util.py in get_configs_from_pipeline_file(pipeline_config_path, config_override) 97 with tf.io.gfile.GFile(pipeline_config_path, "r") as f: 98 proto_str = f.read() ---> 99 text_format.Merge(proto_str, pipeline_config) 100 if config_override: 101 text_format.Merge(config_override, pipeline_config)

F:\Final Year\TFOD\tfod\lib\site-packages\google\protobuf\text_format.py in Merge(text, message, allow_unknown_extension, allow_field_number, descriptor_pool, allow_unknown_field) 723 allow_field_number, 724 descriptor_pool=descriptor_pool, --> 725 allow_unknown_field=allow_unknown_field) 726 727

F:\Final Year\TFOD\tfod\lib\site-packages\google\protobuf\text_format.py in MergeLines(lines, message, allow_unknown_extension, allow_field_number, descriptor_pool, allow_unknown_field) 791 descriptor_pool=descriptor_pool, 792 allow_unknown_field=allow_unknown_field) --> 793 return parser.MergeLines(lines, message) 794 795

F:\Final Year\TFOD\tfod\lib\site-packages\google\protobuf\text_format.py in MergeLines(self, lines, message) 816 """Merges a text representation of a protocol message into a message.""" 817 self._allow_multiple_scalars = True --> 818 self._ParseOrMerge(lines, message) 819 return message 820

F:\Final Year\TFOD\tfod\lib\site-packages\google\protobuf\text_format.py in _ParseOrMerge(self, lines, message) 835 tokenizer = Tokenizer(str_lines) 836 while not tokenizer.AtEnd(): --> 837 self._MergeField(tokenizer, message) 838 839 def _MergeField(self, tokenizer, message):

F:\Final Year\TFOD\tfod\lib\site-packages\google\protobuf\text_format.py in _MergeField(self, tokenizer, message) 965 966 else: --> 967 merger(tokenizer, message, field) 968 969 else: # Proto field is unknown.

F:\Final Year\TFOD\tfod\lib\site-packages\google\protobuf\text_format.py in _MergeMessageField(self, tokenizer, message, field) 1040 if tokenizer.AtEnd(): 1041 raise tokenizer.ParseErrorPreviousToken('Expected "%s".' % (end_token,)) -> 1042 self._MergeField(tokenizer, sub_message) 1043 1044 if is_map_entry:

F:\Final Year\TFOD\tfod\lib\site-packages\google\protobuf\text_format.py in _MergeField(self, tokenizer, message) 932 raise tokenizer.ParseErrorPreviousToken( 933 'Message type "%s" has no field named "%s".' % --> 934 (message_descriptor.full_name, name)) 935 936 if field:

ParseError: 172:3 : Message type "object_detection.protos.TrainConfig" has no field named "fine_tune_checkpoint_version".

gaiwkadSrushti avatar Feb 19 '23 15:02 gaiwkadSrushti

Hi @gaiwkadSrushti,

We are unable to understand the issue clearly from where it is coming.Could you please provide the code snippet/colab to debug fast and provide resolutuon.

Thanks.

laxmareddyp avatar Feb 22 '23 22:02 laxmareddyp

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 Mar 01 '23 23:03 google-ml-butler[bot]

Thank you, this issue has been solved.

gaiwkadSrushti avatar Mar 02 '23 13:03 gaiwkadSrushti

Hi @gaiwkadSrushti,

Thanks for the reply , if it is solved can we close the issue?

Thanks.

laxmareddyp avatar Mar 02 '23 18:03 laxmareddyp

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 Mar 09 '23 18:03 google-ml-butler[bot]

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

laxmareddyp avatar Mar 13 '23 18:03 laxmareddyp

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

google-ml-butler[bot] avatar Mar 13 '23 18:03 google-ml-butler[bot]