/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'
KeyError,你按到什么了吧
没有呀,但是我没有用voc格式
像是在eval的时候报错?
想起来了,昨天我也遇到这个 Key Error
是你字典出了问题,不存在这个键
比如说 stu_info = {"name": "鹿鼎记肯定", "sex": "man"}
但是你突然来个 stu_info["age"],那肯定要报错了
如果是notebook的话,建议你用 Ctrl+F 的方法来搜索 cancel_10 这个键
今天也遇到同样的问题,我的问题是VOC格式下的标签列表文件中的标签没有换行,导致找不到
赞
我今天才遇到这个问题,把你yml文件下的数据集存放处的use_default_label改成false,没有就自己添加一条
use_default_label: false