Yolo V8 error: "FileNotFoundError: Found no valid file for the classes labels" solution

Screenshot 2023-08-20 at 9.04.22 PM
This is what your folder hierarchy needs to look like when training an object detection model with yolo V8.

I was getting this error “FileNotFoundError: Found no valid file for the classes labels. Supported extensions are: .jpg, .jpeg, .png, .ppm, .bmp, .pgm, .tif, .tiff, .webp”

Because by default roboflow does not export the files in the correct way.

Thought this might help someone.

Hi @Boaztheostrich

Can you share where you got this error? (the Ultralytics package, our YOLOv8 notebook, etc)

Our YOLOv8 export format should look like this, but it could differ as long as it’s specified in the data.yaml file correctly:
Screenshot 2023-08-24 at 2.13.26 PM

If I see it happen again i will try to share it with you I think my data.yaml file got messed up