The error message youβre seeing indicates that the training process is unable to find the labels for your test dataset. This could be due to a few reasons:
- Incorrect Dataset Structure: The structure of your dataset might not be as expected. The expected structure when running
!python train.pyshould be as follows:
βββ yolov8
βββ datasets
βββ roboflow
βββ test
βββ train
βββ valid
βββ images
|ββββ1.jpg
|ββββ...
βββββ10000.jpg
βββ labelTxt
|ββββ1.txt
|ββββ...
βββββ10000.txt
βββββREADME.roboflow.txt
βββββdata.yaml
Make sure your dataset structure matches this. The dataset name should be roboflow to prevent any errors from triggering (source).
-
Incorrect File Extensions: The error message also mentions that the supported extensions for the class labels are: .jpg, .jpeg, .png, .ppm, .bmp, .pgm, .tif, .tiff, .webp. Make sure your label files have one of these extensions (source).
-
Incorrect data.yaml File: The
data.yamlfile might not be correctly specifying the locations of your dataset files. Make sure this file is correctly set up (source).
If youβve checked all of these and are still encountering the issue, it might be helpful to provide more information about your setup or reach out to Roboflowβs support for more specific assistance.
Hi! Iβm Roboflowβs AI powered bot. This is an automated response powered using AI with knowledge from our docs, blog, knowledge base, and previous forum responses. If you find this to be a helpful answer, please mark it as the solution using the checkbox icon below. If this doesnβt solve your issue, please follow up with what youβve tried/why, and the community will continue to chime in as usual.