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

aistudio安装paddledetection开始训练数据集显示:Error when construct VOCDataSet instance from yaml config

以下是终端显示结果,该怎么解决呢?

aistudio@jupyter-916522-2292927:~/d/PaddleDetection$ python -u tools/train.py -c configs/yolov3_mobilenet_v1_fruit.yml --eval
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/setuptools/depends.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/matplotlib/__init__.py:107: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import MutableMapping
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/matplotlib/rcsetup.py:20: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import Iterable, Mapping
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/matplotlib/colors.py:53: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import Sized
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 "/home/aistudio/d/PaddleDetection/ppdet/core/workspace.py", line 114, in load_config
cfg = _load_config_with_base(file_path)
File "/home/aistudio/d/PaddleDetection/ppdet/core/workspace.py", line 79, in _load_config_with_base
file_cfg = yaml.load(f, Loader=yaml.Loader)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/yaml/__init__.py", line 114, in load
return loader.get_single_data()
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/yaml/constructor.py", line 43, in get_single_data
return self.construct_document(node)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/yaml/constructor.py", line 52, in construct_document
for dummy in generator:
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/yaml/constructor.py", line 404, in construct_yaml_map
value = self.construct_mapping(node)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/yaml/constructor.py", line 210, in construct_mapping
return super().construct_mapping(node, deep=deep)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/yaml/constructor.py", line 135, in construct_mapping
value = self.construct_object(value_node, deep=deep)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/yaml/constructor.py", line 92, in construct_object
data = constructor(self, node)
File "/home/aistudio/d/PaddleDetection/ppdet/core/config/yaml_helpers.py", line 45, in python_constructor
raise ex
File "/home/aistudio/d/PaddleDetection/ppdet/core/config/yaml_helpers.py", line 41, in python_constructor
return cls(**kwargs)

 

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

用的yolov3模型

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