Python-Scripts icon indicating copy to clipboard operation
Python-Scripts copied to clipboard

Remove File mismatch for YOLO

Open 1abhishekpandey2 opened this issue 4 months ago • 1 comments

For training a yolo model we label the images. Each labeled image has its corresponding text file with same name as the image containing coordinated of th bounding box in the image. But during the process either some text files or images are missing which hinders the training making the model think that the object is not in the image resulting in low accuracy. This script deletes any image with out label or any text file without image. In short it cleans the data, a part of data preprocessing.

1abhishekpandey2 avatar Aug 22 '25 07:08 1abhishekpandey2

i have requested a PR regarding this

1abhishekpandey2 avatar Aug 22 '25 10:08 1abhishekpandey2