No labels found in /home/emy/yolov7-segmentation/data/train/labels.cache, can not start training
时间: 2023-12-23 08:04:15 浏览: 171
根据引用\[1\]中的错误信息,出现了"FileNotFoundError: train: No labels found in /home/smy/new-yolov5/ultralytic/…/JPEGImages.cache"的错误,意味着在指定路径下找不到标签文件,导致无法开始训练。根据引用\[2\]的解决方案,你可以通过修改代码,确保在指定路径下存在包含图像数据和标注信息的文件夹,且文件夹中包含train和val两个子文件夹。然后,你需要修改yaml文件,以使用正确的图像路径。此外,根据引用\[3\],你还可以尝试修改ultralytics库中的utils.py文件来解决该问题。
#### 引用[.reference_title]
- *1* *3* [YOLOV8:FileNotFoundError: train: No labels found in /home/smy/new-yolov5/ultralytic](https://blog.csdn.net/m0_56791536/article/details/129411995)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [使用yolov5时出现“assertionerror:no labels found in */*/*/JPEGImages.cache can not train without ...](https://blog.csdn.net/llh_1178/article/details/114528795)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文