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.无法实时显示 (包括使用摄像头)

首先要更改

Default=0为摄像头

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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值