File "/home/aistudio/PaddleDetection-release-0.3/ppdet/data/source/voc.py", line 154, in load_roidb_and_cname2cid gt_class.append([cname2cid[cname]]) KeyError: 'bbox'
Created by: liu824
使用yoloV4配置文件yolov4_cspdarknet_voc.yml训练时出现这样的结果:
File "PaddleDetection-release-0.3/tools/train.py", line 366, in <module>
main()
File "PaddleDetection-release-0.3/tools/train.py", line 203, in main
devices_num=devices_num)
File "/home/aistudio/PaddleDetection-release-0.3/ppdet/data/reader.py", line 410, in create_reader
reader = Reader(**cfg)()
File "/home/aistudio/PaddleDetection-release-0.3/ppdet/data/reader.py", line 204, in __init__
self._roidbs = self._dataset.get_roidb()
File "/home/aistudio/PaddleDetection-release-0.3/ppdet/data/source/dataset.py", line 68, in get_roidb
self.load_roidb_and_cname2cid()
File "/home/aistudio/PaddleDetection-release-0.3/ppdet/data/source/voc.py", line 154, in load_roidb_and_cname2cid
gt_class.append([cname2cid[cname]])
KeyError: 'bbox'
之前遇到过这个问题,原因是训练集的标签类别与label_list.txt中的不匹配,但这次是已经改过来了。而且这次用到的训练数据是在yoloV3上成功训练的数据集