edgeyolo icon indicating copy to clipboard operation
edgeyolo copied to clipboard

Training in Yolo format

Open usama-x930 opened this issue 2 years ago • 3 comments

I have YOLO Annotated text dataset in Folder structure train: images/.jpg labels/.txt

val: images/.jpg labels/.txt

Got this Error after 1 epoch:

Loading and preparing results... 20230314_012420 edgeyolo.train.trainer:480 - error: Results do not correspond to current coco set

usama-x930 avatar Mar 13 '23 19:03 usama-x930

it means there's at least one image with empty label in your val dataset, just check your txt files and remove the empty files, then set use_cache to false to re-generate cache.

LSH9832 avatar Mar 14 '23 03:03 LSH9832

I got the same error and discovered that the problem in my case was caused because of different image formats mingled. By default, the Yolo dataloader takes only the '.jpg' images, while all annotations are taken (also from other image formats, like '.png'). That causes a mismatch.

I created a fix to take all images (despite of their format) and after testing, Ill create a pull request.

ramonhollands avatar May 06 '23 14:05 ramonhollands

I got the same error and discovered that the problem in my case was caused because of different image formats mingled. By default, the Yolo dataloader takes only the '.jpg' images, while all annotations are taken (also from other image formats, like '.png'). That causes a mismatch.

I created a fix to take all images (despite of their format) and after testing, Ill create a pull request.

Well, typically the first step before annotating a dataset is to unify the image format, so I think it's the problem of nonstandard process when creating the dataset, not the code

LSH9832 avatar May 06 '23 16:05 LSH9832