why am I getting AssertionError: train: No labels found in /content/dataset/test/labels.cache, can not start training
Asked Answered
P

1

6

AssertionError: train: No labels found in /content/dataset/test/labels.cache, can not start training Automatically generated cache files

I'm doing yolo5 An error occurs during the configuration and training a dataset.

I understand that the command automatically creates a cache file under the train folder. I've confirmed that it's actually made These errors appear. What's the problem? I ask for your help me.

An error occurs when only the dataset is different from the same code

Polarize answered 21/11, 2022 at 8:55 Comment(1)
Probably it is the path problem in config in the data/your_custom_data.yaml. It has to work if you follow [this ](github.com/ultralytics/yolov5/wiki/Train-Custom-Data)Kati
E
4

I have faced the same error, I have created a folder named "labels" inside that two subfolders names train and val where the labels of all the files are placed.

labels folder

subfolders

train

val

Yolov5 automatically checks the labels folder where all the labels for the train and val images are there or not if it's not present then it throws this error. Please maintain the directory structure to resolve this issue.

I hope this will resolve your issue.

Thanks!!!

Epidote answered 2/6, 2023 at 5:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.