Yolov5训练
步骤参考的是以下博客
YOLOv5训练自己的数据集(超详细完整版)_深度学习菜鸟的博客-CSDN博客_yolov5训练自己数据集
(4条消息) YOLOv5训练自己的数据集(超详细完整版)_深度学习菜鸟的博客-CSDN博客_yolov5训练自己数据集
1.文件找不到
YOLOv5 - AssertionError: Image not Found
来自 <YOLOv5 - AssertionError: Image not Found_NewDay_的博客-CSDN博客>
文件中存在空格、中文字符等,与xml转txt那个代码有关系
改不来就直接去掉所有中文和空格 推荐工具ReNamer
批处理文件遍历所有子目录批量移除文件名和目录名中特殊字符_uncleAndyChen的博客-CSDN博客_批处理遍历子目录 相关学习
2.AssertionError: train: No labels in /xxx/xxx/xxx/datasets/VOC_To_YOLO/train.cache
文中方法对我没用 我在删除中文后一切正常了 同1
3.
torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\TensorShape.cpp:2895.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
内存不够 多给点 其实不妨碍训练
4.
Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized
5.
detect运行报错assert img0 is not None, f‘Image Not Found {path}‘
YOLOv5 detect运行报错assert img0 is not None, f‘Image Not Found {path}‘解决方案_李可乐的笔记的博客-CSDN博客_yolov5找不到图片
6.
一步真实解决RuntimeError: result type Float can‘t be cast to the desired output type long int
7.voc格式转yolo
第一条链接中的是可以用的
其余的可以参考如下
XML格式数据集转TXT(YOLO)_江小白jlj的博客-CSDN博客_xml转txt
8.无法实时显示 (包括使用摄像头)
首先要更改
Default=0为摄像头
其次 在编辑配置--形参 中 添加 --view-img