meituan / YOLOv6

YOLOv6: a single-stage object detection framework dedicated to industrial applications.
GNU General Public License v3.0
5.72k stars 1.04k forks source link

label format problem #108

Closed aknsel closed 2 years ago

aknsel commented 2 years ago

Screen Shot 2022-06-28 at 11 27 46 Screen Shot 2022-06-28 at 11 26 19 I've similar problem. Labels are txt format in labels folder train/val located separately. But I got an error as above

This is a different issue. You might have the annotations in the wrong format, which causes the checking function to return None for img_path and breaks the process at img_info.pop(img_path). https://github.com/meituan/YOLOv6/blob/1d1335c62a939f2e5d639bdf2afec65c18beb59f/yolov6/data/datasets.py#L477

Originally posted by @Zephyr69 in https://github.com/meituan/YOLOv6/issues/107#issuecomment-1168422951

aknsel commented 2 years ago

Screen Shot 2022-06-28 at 11 27 46 Screen Shot 2022-06-28 at 11 26 19 I've similar problem. Labels are txt format in labels folder train/val located separately. But I got an error as above

This is a different issue. You might have the annotations in the wrong format, which causes the checking function to return None for img_path and breaks the process at img_info.pop(img_path).

https://github.com/meituan/YOLOv6/blob/1d1335c62a939f2e5d639bdf2afec65c18beb59f/yolov6/data/datasets.py#L477

Originally posted by @Zephyr69 in #107 (comment)

I created labels as explained below

Screen Shot 2022-06-28 at 11 59 03
mtjhl commented 2 years ago

Hi, how many labels file in your labels/val folder?

aknsel commented 2 years ago

Hi, how many labels file in your labels/val folder?

There are 850 images in train, 150 in val.. Problem is solved in issue #107. thank you