google.protobuf.text_format.ParseError: 9:18 : Couldn't parse integer: 03
google.protobuf.text_format.ParseError: 9:18 : Couldn't parse integer: 03
我正在使用 python 3.6 tensorflow 1.5
我正在关注 link
但出现错误:
doe@doe:~/anaconda3/envs/tensorflow/models/research/object_detection$ python3 train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/ssd_mobilenet_v1_coco。配置
WARNING:tensorflow:From /home/doe/anaconda3/lib/python3.6/site-packages/tensorflow/python/platform/app.py:124:main(来自 main)已弃用,将在未来版本中删除。
更新说明:
使用 object_detection/model_main.py。
追溯(最近一次通话):
文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 1500 行,在 _ParseAbstractInteger 中
return 整数(文本,0)
ValueError:基数为 0 的 int() 的无效文字:'03'
在处理上述异常的过程中,又发生了一个异常:
回溯(最近调用最后):
文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 1449 行,在 _ConsumeInteger 中
结果 = ParseInteger(tokenizer.token, is_signed=is_signed, is_long=is_long)
文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 1471 行,在 ParseInteger 中
结果 = _ParseAbstractInteger(文本,is_long=is_long)
文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 1502 行,在 _ParseAbstractInteger 中
raise ValueError('Couldn\'t parse integer: %s' % text)
ValueError:无法解析整数:03
在处理上述异常的过程中,又发生了一个异常:
回溯(最近调用最后):
文件 "train.py",第 184 行,位于
tf.app.run()
文件“/home/doe/anaconda3/lib/python3.6/site-packages/tensorflow/python/platform/app.py”,第 124 行,在 运行 中
_sys.exit(主要(argv))
文件“/home/doe/anaconda3/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py”,第 136 行,在 new_func 中
return func(*args, **kwargs)
主文件中的文件 "train.py",第 93 行
FLAGS.pipeline_config_path)
文件“/home/doe/anaconda3/envs/tensorflow/models/research/object_detection/utils/config_util.py”,第 94 行,在 get_configs_from_pipeline_file 中
text_format.Merge(proto_str, pipeline_config)
合并中的文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 536 行
descriptor_pool=descriptor_pool)
文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 590 行,在 MergeLines 中
return parser.MergeLines(行,消息)
文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 623 行,在 MergeLines 中
self._ParseOrMerge(行,消息)
文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 638 行,在 _ParseOrMerge 中
self._MergeField(分词器,消息)
文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 763 行,在 _MergeField 中
合并(分词器、消息、字段)
文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 837 行,在 _MergeMessageField 中
self._MergeField(分词器,sub_message)
文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 763 行,在 _MergeField 中
合并(分词器、消息、字段)
文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 837 行,在 _MergeMessageField 中
self._MergeField(分词器,sub_message)
文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 763 行,在 _MergeField 中
合并(分词器、消息、字段)
文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 871 行,在 _MergeScalarField 中
值 = _ConsumeInt32(分词器)
文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 1362 行,在 _ConsumeInt32 中
return_ConsumeInteger(分词器,is_signed=True,is_long=False)
文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 1451 行,在 _ConsumeInteger 中
提高 tokenizer.ParseError(str(e))
google.protobuf.text_format.ParseError:9:18:无法解析整数:03
我在本地机器上 运行 时遇到了与 label_map_path 相关的类似问题。通过删除标签映射 pbtxt 文件中行之间的空格来解决。请同时检查配置文件。
我正在使用 python 3.6 tensorflow 1.5 我正在关注 link
但出现错误:
doe@doe:~/anaconda3/envs/tensorflow/models/research/object_detection$ python3 train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/ssd_mobilenet_v1_coco。配置 WARNING:tensorflow:From /home/doe/anaconda3/lib/python3.6/site-packages/tensorflow/python/platform/app.py:124:main(来自 main)已弃用,将在未来版本中删除。 更新说明: 使用 object_detection/model_main.py。 追溯(最近一次通话): 文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 1500 行,在 _ParseAbstractInteger 中 return 整数(文本,0) ValueError:基数为 0 的 int() 的无效文字:'03'
在处理上述异常的过程中,又发生了一个异常:
回溯(最近调用最后): 文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 1449 行,在 _ConsumeInteger 中 结果 = ParseInteger(tokenizer.token, is_signed=is_signed, is_long=is_long) 文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 1471 行,在 ParseInteger 中 结果 = _ParseAbstractInteger(文本,is_long=is_long) 文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 1502 行,在 _ParseAbstractInteger 中 raise ValueError('Couldn\'t parse integer: %s' % text) ValueError:无法解析整数:03
在处理上述异常的过程中,又发生了一个异常:
回溯(最近调用最后): 文件 "train.py",第 184 行,位于 tf.app.run() 文件“/home/doe/anaconda3/lib/python3.6/site-packages/tensorflow/python/platform/app.py”,第 124 行,在 运行 中 _sys.exit(主要(argv)) 文件“/home/doe/anaconda3/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py”,第 136 行,在 new_func 中 return func(*args, **kwargs) 主文件中的文件 "train.py",第 93 行 FLAGS.pipeline_config_path) 文件“/home/doe/anaconda3/envs/tensorflow/models/research/object_detection/utils/config_util.py”,第 94 行,在 get_configs_from_pipeline_file 中 text_format.Merge(proto_str, pipeline_config) 合并中的文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 536 行 descriptor_pool=descriptor_pool) 文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 590 行,在 MergeLines 中 return parser.MergeLines(行,消息) 文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 623 行,在 MergeLines 中 self._ParseOrMerge(行,消息) 文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 638 行,在 _ParseOrMerge 中 self._MergeField(分词器,消息) 文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 763 行,在 _MergeField 中 合并(分词器、消息、字段) 文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 837 行,在 _MergeMessageField 中 self._MergeField(分词器,sub_message) 文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 763 行,在 _MergeField 中 合并(分词器、消息、字段) 文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 837 行,在 _MergeMessageField 中 self._MergeField(分词器,sub_message) 文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 763 行,在 _MergeField 中 合并(分词器、消息、字段) 文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 871 行,在 _MergeScalarField 中 值 = _ConsumeInt32(分词器) 文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 1362 行,在 _ConsumeInt32 中 return_ConsumeInteger(分词器,is_signed=True,is_long=False) 文件“/home/doe/.local/lib/python3.6/site-packages/google/protobuf/text_format.py”,第 1451 行,在 _ConsumeInteger 中 提高 tokenizer.ParseError(str(e)) google.protobuf.text_format.ParseError:9:18:无法解析整数:03
我在本地机器上 运行 时遇到了与 label_map_path 相关的类似问题。通过删除标签映射 pbtxt 文件中行之间的空格来解决。请同时检查配置文件。