Windows YOLOv5 训练部署及其问题解决

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

一步真实解决AssertionError: train: No labels in /xxx/xxx/xxx/datasets/VOC_To_YOLO/train.cache._蓝胖胖▸的博客-CSDN博客

文中方法对我没用 我在删除中文后一切正常了 同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

解决 OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized问题_magical pencil的博客-CSDN博客_omp报错

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

一步真实解决RuntimeError: result type Float can’t be cast to the desired output type long int_蓝胖胖▸的博客-CSDN博客

7.voc格式转yolo

第一条链接中的是可以用的

其余的可以参考如下

XML格式数据集转TXT(YOLO)_江小白jlj的博客-CSDN博客_xml转txt

8.无法实时显示 (包括使用摄像头)

首先要更改

Windows YOLOv5 训练部署及其问题解决

Default=0为摄像头

其次 在编辑配置–形参 中 添加 –view-img

Windows YOLOv5 训练部署及其问题解决

Original: https://blog.csdn.net/Eurus_X/article/details/126448425
Author: Eurus_X
Title: Windows YOLOv5 训练部署及其问题解决

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/687106/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球