【发布时间】:2018-05-18 13:20:29
【问题描述】:
我正在尝试训练自己的 tensorflow 对象检测模型,我遵循了 this 和 this 教程,在最后一步我尝试运行此命令
> python train.py --logtostderr --train_dir=training/ --
pipeline_config_path=training/ssd_mobilenet_v1_pets.config
但我收到此错误
> Traceback (most recent call last):
File "train.py", line 163, in <module>
tf.app.run()
File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\platform\a
pp.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "train.py", line 91, in main
FLAGS.pipeline_config_path)
File "C:\Libraries\models-master\research\object_detection\utils\config_util.p
y", line 43, in get_configs_from_pipeline_file
text_format.Merge(proto_str, pipeline_config)
File "C:\Program Files\Python36\lib\site-packages\google\protobuf\text_format.
py", line 533, in Merge
descriptor_pool=descriptor_pool)
File "C:\Program Files\Python36\lib\site-packages\google\protobuf\text_format.
py", line 587, in MergeLines
return parser.MergeLines(lines, message)
File "C:\Program Files\Python36\lib\site-packages\google\protobuf\text_format.
py", line 620, in MergeLines
self._ParseOrMerge(lines, message)
File "C:\Program Files\Python36\lib\site-packages\google\protobuf\text_format.
py", line 635, in _ParseOrMerge
self._MergeField(tokenizer, message)
File "C:\Program Files\Python36\lib\site-packages\google\protobuf\text_format.
py", line 703, in _MergeField
(message_descriptor.full_name, name))
google.protobuf.text_format.ParseError: 195:3 : Message type "object_detection.p
rotos.TrainEvalPipelineConfig" has no field named "shuffle".
我该如何解决?
【问题讨论】:
-
你试过什么?该错误清楚地表明缺少一个字段,您是否检查过它是否存在?
-
在官方文档和教程中没有任何关于 'shuffle' 字段和 tensorflow 训练步骤之间关系的信息。我猜还有另一个问题可能是关于 protobuf 版本或任何其他版本不匹配
-
stackoverflow.com/questions/44291072/… 的可能副本 - 您将在此处找到答案。
标签: tensorflow protocol-buffers