AssertionError: train: No labels in C:\Users\Carl\Desktop\yolov7-main\yolov7-main\dataset\train.cache. Can not train without labels.
时间: 2023-09-26 14:04:55 浏览: 58
This error message is indicating that there are no label files present in the specified directory, which is preventing the training process from proceeding. In order to train a model using YOLOv7, you need to have both image files and corresponding label files that identify the location of objects in the images.
To resolve this error, you should check the specified directory (C:\Users\Carl\Desktop\yolov7-main\yolov7-main\dataset\train.cache) and ensure that it contains both image files and label files. The label files should have the same name as the corresponding image files, but with a different file extension (e.g. .txt, .xml, etc.) and should contain the coordinates of the objects in the image.
If there are no label files present, you will need to create them using a labeling tool such as LabelImg or YOLOv7 Label Tool. Once you have created the label files, place them in the same directory as the image files and ensure that they have the correct naming convention.