Transferred 738/745 items from yolov5x.pt AMP: checks passed optimizer: SGD(lr=0.01) with parameter groups 123 weight(decay=0.0), 126 weight(decay=0.0005), 126 bias Traceback (most recent call last): File "C:\Users\admin\Desktop\yolov5-master (1)\yolov5-master\utils\dataloaders.py", line 481, in __init__ assert self.im_files, f'{prefix}No images found' AssertionError: train: No images found The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\admin\Desktop\yolov5-master (1)\yolov5-master\train.py", line 648, in <module> main(opt) File "C:\Users\admin\Desktop\yolov5-master (1)\yolov5-master\train.py", line 537, in main train(opt.hyp, opt, device, callbacks) File "C:\Users\admin\Desktop\yolov5-master (1)\yolov5-master\train.py", line 196, in train train_loader, dataset = create_dataloader(train_path, File "C:\Users\admin\Desktop\yolov5-master (1)\yolov5-master\utils\dataloaders.py", line 124, in create_dataloader dataset = LoadImagesAndLabels( File "C:\Users\admin\Desktop\yolov5-master (1)\yolov5-master\utils\dataloaders.py", line 483, in __init__ raise Exception(f'{prefix}Error loading data from {path}: {e}\n{HELP_URL}') from e Exception: train: Error loading data from C:\Users\admin\Desktop\yolov5-master (1)\yolov5-master\wzry\datasets\labels\train: train: No images found See https://docs.ultralytics.com/yolov5/tutorials/train_custom_data
时间: 2023-07-22 14:12:59 浏览: 336
storm1.1.x ui 说明
根据错误信息显示,训练过程中出现了找不到图像的问题。请确保在指定的路径下存在训练图像。您可以检查以下几点:
1. 检查训练图像的路径是否正确:C:\Users\admin\Desktop\yolov5-master (1)\yolov5-master\wzry\datasets\labels\train
2. 确保在该路径下存在图像文件。您可以检查一下该路径下是否有图像文件。
如果路径和文件都正确,但仍然出现问题,请确保图像文件格式正确,并且每个图像都有对应的标签文件。此外,还可以检查一下图像和标签文件的命名是否匹配。
如果问题仍然存在,请提供更多的信息和代码上下文,以便更好地帮助您解决问题。
阅读全文