问题: assert nf > 0 or not augment, f'No labels found in {cache_path}. Can not train without labels. See {help_url}'
AssertionError: No labels found in E:\bishe\yolov51\VOC2007\JPEGImages.cache. Can not train without labels. See https://github.com/ultralytics/yolov5/wiki/Train-Custom-Data
解决方法:
找到utils下的datasets.py
里面有一句
sa, sb = os.sep + 'images' + os.sep, os.sep + 'labels' + os.sep # /images/, /labels/ substrings
将其中的images 更改为 你的图片存放的文件夹名 或者