YOLOV5使用过程中可能出现的问题及解决方法

博主分享了在使用YOLOv5v5.0和v6.0时遇到的多个错误,包括'Upsample'对象缺少'recompute_scale_factor'属性、找不到'SPPF'属性、输入尺寸不匹配、unlink()函数意外参数、BrokenPipeError、datasets.py位置问题、找不到有效的cuDNN算法、内存溢出和DataLoader工作进程意外退出等。通过参考GitHub和优快云社区,博主找到了这些问题的有效解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我尝试过YOLOV5 v5.0 和 YOLOV5 v6.0,都出现了一些问题

(小声嘀咕:我刚开始搜索报错原因得到是github社区上作者的回答,结果把它他提供的解决方法都试了一遍,一点作用没有,最后面向csdn解决了问题)

所以在此做一个亲测有用的博客的总结

1)AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'

(6条消息) YOLOV5 训练好模型测试时出现问题:AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘的解决方法_佐咖的博客-优快云博客

2)AttributeError:Can't get attribute 'SPPF' on <module 'models.common' from '/content/gdrive/MyDrive/yolov5-5.0/yolov5-5.0/models/common.py'>

(6条消息) AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models.common‘ from ‘H:\\yolov5-5.0\\models\\_啥也不是的py人的博客-优快云博客

3)RuntimeError: Given groups=1, weight of size [512, 1024, 1, 1], expected input[1, 512, 8]

YOLOv5 模型剪枝RuntimeError: Given groups=1, weight of size [512, 1024, 1, 1], expected input[1, 512, 8_派森歪瑞古德的博客-优快云博客

4)

(8条消息) 一步真实解决TypeError: unlink() got an unexpected keyword argument ‘missing_ok‘_蓝胖胖▸的博客-优快云博客

5)

(8条消息) 【YOLOv5】yolov5训练中遇到的问题解决:BrokenPipeError: [Errno 32] Broken pipe_摇曳的树的博客-优快云博客

6)datasets.py在utils文件夹中

(8条消息) OSError: [WinError 1455] 页面文件太小,无法完成操作_zstar-_的博客-优快云博客_oserror

7)

(8条消息) 【问题解决】YOLOv5遇到Unable to find a valid cuDNN algorithm to run convolution_是王同学呀的博客-优快云博客

8)MemoryError: In RendererAgg: Out of memory

(8条消息) 解决MemoryError: In RendererAgg: Out of memory_CV_William的博客-优快云博客 

9)DataLoader worker (pid(s) 22308) exited unexpectedly

解决方法:更改num_workers和batch-size 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值