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

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

ParseError Traceback(最后一次调用)

----> 1 配置 = config_util.get_configs_from_pipeline_file(CONFIG_PATH)

~\AppData\Roaming\Python\Python37\site-packages\object_detection\utils\config_util.py 在 get_configs_from_pipeline_file(pipeline_config_path, config_override)

 96   with tf.io.gfile.GFile(pipeline_config_path, "r") as f:

 97     proto_str = f.read()

---> 98 text_format.Merge(proto_str, pipeline_config)

 99   if config_override:

100     text_format.Merge(config_override, pipeline_config)

C:\ProgramData\Anaconda3\lib\site-packages\google\protobuf\text_format.py in Merge(text, message, allow_unknown_extension, allow_field_number, descriptor_pool, allow_unknown_field)

735       allow_field_number,

736       descriptor_pool=descriptor_pool,

--> 737 allow_unknown_field=allow_unknown_field)

738 

739 

C:\ProgramData\Anaconda3\lib\site-packages\google\protobuf\text_format.py in MergeLines(lines, message, allow_unknown_extension, allow_field_number, descriptor_pool, allow_unknown_field)

803                    descriptor_pool=descriptor_pool,

804                    allow_unknown_field=allow_unknown_field)

--> 805 return parser.MergeLines(行数,消息)

806 

807 

C:\ProgramData\Anaconda3\lib\site-packages\google\protobuf\text_format.py in MergeLines(self, lines, message)

828     """Merges a text representation of a protocol message into a message."""

829     self._allow_multiple_scalars = True

--> 830 self._ParseOrMerge(行数,消息)

831     return message

832 

C:\ProgramData\Anaconda3\lib\site-packages\google\protobuf\text_format.py in _ParseOrMerge(self, lines, message)

850     tokenizer = Tokenizer(str_lines)

851     while not tokenizer.AtEnd():

--> 852 self._MergeField(分词器,消息)

853 

854   def _MergeField(self, tokenizer, message):

C:\ProgramData\Anaconda3\lib\site-packages\google\protobuf\text_format.py in _MergeField(self, tokenizer, message)

980 

981       else:

--> 982 merger(tokenizer, message, field)

983 

984     else:  # Proto field is unknown.

C:\ProgramData\Anaconda3\lib\site-packages\google\protobuf\text_format.py in _MergeMes​​sageField(self, tokenizer, message, field)

1055 如果 tokenizer.AtEnd():

1056 提高 tokenizer.ParseErrorPreviousToken('Expected "%s".' % (end_token,))

-> 1057 self._MergeField(分词器,sub_message)

1058

1059 如果 is_map_entry:

C:\ProgramData\Anaconda3\lib\site-packages\google\protobuf\text_format.py in _MergeField(self, tokenizer, message)

947         raise tokenizer.ParseErrorPreviousToken(

948             'Message type "%s" has no field named "%s".' %

--> 949 (message_descriptor.full_name, 姓名)) 950 951 如果字段:

pipeline.config 文件中删除 fine_tune_checkpoint_version 行(第 172 行,根据您发布的内容)并重试