首页 Paddle框架 帖子详情
Error when construct VOCDataSet instance from yaml config
收藏
快速回复
Paddle框架 问答模型训练 687 1
Error when construct VOCDataSet instance from yaml config
收藏
快速回复
Paddle框架 问答模型训练 687 1

在cmd下运行显示:Error when construct VOCDataSet instance from yaml config
Traceback (most recent call last):
File "tools/train.py", line 139, in
main()
File "tools/train.py", line 115, in main
cfg = load_config(FLAGS.config)
File "E:\Python\lib\site-packages\paddledet-2.2.0-py3.7.egg\ppdet\core\workspace.py", line 114, in load_config
cfg = _load_config_with_base(file_path)
File "E:\Python\lib\site-packages\paddledet-2.2.0-py3.7.egg\ppdet\core\workspace.py", line 79, in _load_config_with_base
file_cfg = yaml.load(f, Loader=yaml.Loader)
File "E:\Python\lib\site-packages\yaml\__init__.py", line 114, in load
return loader.get_single_data()
File "E:\Python\lib\site-packages\yaml\constructor.py", line 51, in get_single_data
return self.construct_document(node)
File "E:\Python\lib\site-packages\yaml\constructor.py", line 60, in construct_document
for dummy in generator:
File "E:\Python\lib\site-packages\yaml\constructor.py", line 413, in construct_yaml_map
value = self.construct_mapping(node)
File "E:\Python\lib\site-packages\yaml\constructor.py", line 218, in construct_mapping
return super().construct_mapping(node, deep=deep)
File "E:\Python\lib\site-packages\yaml\constructor.py", line 143, in construct_mapping
value = self.construct_object(value_node, deep=deep)
File "E:\Python\lib\site-packages\yaml\constructor.py", line 100, in construct_object
data = constructor(self, node)
File "E:\Python\lib\site-packages\paddledet-2.2.0-py3.7.egg\ppdet\core\config\yaml_helpers.py", line 45, in python_constructor
raise ex
File "E:\Python\lib\site-packages\paddledet-2.2.0-py3.7.egg\ppdet\core\config\yaml_helpers.py", line 41, in python_constructor
return cls(**kwargs)
TypeError: __init__() got an unexpected keyword argument 'with_background'

0
收藏
回复
全部评论(1)
时间顺序
JavaRoom
#2 回复于2021-08

TypeError: __init__() got an unexpected keyword argument 'with_background'

看起李艾说没有with_background这个选项,再瞅瞅?

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户