首页 PaddleCV 帖子详情
paddledetection求问这是什么问题
收藏
快速回复
PaddleCV 问答目标检测 1562 8
paddledetection求问这是什么问题
收藏
快速回复
PaddleCV 问答目标检测 1562 8

/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py:47: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
2020-07-21 21:37:26,645-INFO: If regularizer of a Parameter has been set by 'fluid.ParamAttr' or 'fluid.WeightNormParamAttr' already. The Regularization[L2Decay, regularization_coeff=0.000500] in Optimizer will not take effect, and it will only be applied to other Parameters!
Traceback (most recent call last):
File "PaddleDetection/tools/train.py", line 368, in
main()
File "PaddleDetection/tools/train.py", line 145, in main
eval_reader = create_reader(cfg.EvalReader, devices_num=1)
File "/home/aistudio/PaddleDetection/ppdet/data/reader.py", line 410, in create_reader
reader = Reader(**cfg)()
File "/home/aistudio/PaddleDetection/ppdet/data/reader.py", line 204, in __init__
self._roidbs = self._dataset.get_roidb()
File "/home/aistudio/PaddleDetection/ppdet/data/source/dataset.py", line 68, in get_roidb
self.load_roidb_and_cname2cid()
File "/home/aistudio/PaddleDetection/ppdet/data/source/voc.py", line 154, in load_roidb_and_cname2cid
gt_class.append([cname2cid[cname]])
KeyError: 'cancel_10'

0
收藏
回复
全部评论(8)
时间顺序
thinc
#2 回复于2020-07

KeyError,你按到什么了吧

0
回复
默洋从前
#3 回复于2020-07
thinc #2
KeyError,你按到什么了吧

没有呀,但是我没有用voc格式

0
回复
AIStudio810260
#4 回复于2020-07

像是在eval的时候报错?

0
回复
thinc
#5 回复于2020-07
没有呀,但是我没有用voc格式

想起来了,昨天我也遇到这个 Key Error

是你字典出了问题,不存在这个键

比如说  stu_info = {"name": "鹿鼎记肯定", "sex": "man"}

但是你突然来个 stu_info["age"],那肯定要报错了

0
回复
thinc
#6 回复于2020-07

如果是notebook的话,建议你用 Ctrl+F 的方法来搜索 cancel_10 这个键

0
回复
一丝清风带花香
#7 回复于2020-10

今天也遇到同样的问题,我的问题是VOC格式下的标签列表文件中的标签没有换行,导致找不到

0
回复
thinc
#8 回复于2020-10
今天也遇到同样的问题,我的问题是VOC格式下的标签列表文件中的标签没有换行,导致找不到

0
回复
Annoer
#9 回复于2021-05

我今天才遇到这个问题,把你yml文件下的数据集存放处的use_default_label改成false,没有就自己添加一条

use_default_label: false

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