🚀🚀🚀 YOLO series of PaddlePaddle implementation, PP-YOLOE+, RT-DETR, YOLOv5, YOLOv6, YOLOv7, YOLOv8, YOLOX, YOLOv5u, YOLOv7u, YOLOv6Lite, RTMDet and so on. 🚀🚀🚀
[X] 我确认已经提供了Bug复现步骤、代码改动说明、以及环境信息,确认问题是可以复现的。I confirm that the bug replication steps, code change instructions, and environment information have been provided, and the problem can be reproduced.
问题确认 Search before asking
Bug组件 Bug Component
Training
Bug描述 Describe the Bug
我制作了一个客制化数据集,用labelimg标注后转成coco格式,其中有一些负样本没有标签,在coco标签中的表现为在images字段有image_id,但在annotations字段没有对应image_id的标签。在数据集中,我已设置allow_empty=True,并在yolov5和yolox上可以正常训练和推理。 但在yolov8训练时,会出现以下bug:
看报错信息的话,dataset已经加载成功,但是在Dataloader取数据的时候报错了。
我把worker_num设置为0,可以正常训练,但是loss太大就卡住了:
这个问题我在训练yolov7u的时候也遇到了。
我的配置文件为:
修改的![image](https://github.com/PaddlePaddle/PaddleYOLO/assets/42413198/61a980ae-bfad-4282-9daa-b70e18bc26b3)
optimizer_100e.yml
为:复现环境 Environment
Bug描述确认 Bug description confirmation
是否愿意提交PR? Are you willing to submit a PR?