Open Maioy97 opened 1 year ago
This may help you check and fix your images: https://stackoverflow.com/questions/33548956/detect-avoid-premature-end-of-jpeg-in-cv2-python
I tried this before posting, but it still gives the error even tho opencv doesn't find anymore corrupt images
Have you solved it? I encountered the same bug.
yee have you solved it?
I'm trying to retrain a yolo7 model with part of the SKU110K dataset I've copied around 500,250,250 images for train test and valid into a seperate folder and changed the annotations from the csv format to the yolo format needed where each images gets a txt file with it's annotations
my problem is the training script keeps giving me the corrupt jpeg data even when I tried to fix it with open cv any idea on how to fix them