当前位置:网站首页>4、yolov5-6.0 ERROR: AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘ 解决方案
4、yolov5-6.0 ERROR: AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘ 解决方案
2022-07-30 09:28:00 【komla168】
前言:使用yolov5-6.0版本想检测几张图,就出现了题目中的问题,可以看出是上采样函数不太对,现把解决方案记录下。
版本:Yolov5-6.0、Python3.8、Pytorch1.11.0
一、问题复现

二、官网解决方案
这个问题在yolov5版本中第一次出现,而且是和Pytorch 1.11.0有关系。


就是说,在train和detect时都有可能会遇到这个问题 。下面是降低Pytorch版本解决方案,降到10以内。

然后这个博主又针对Pytorch版本1.11.0的做了fix
但是好像没解决,笔者torch版本是1.11.0,还是出现这个问题了。
网友给出的修改上采样函数解决方案。


确实解决了,网友666。 
三、引用文献
3.1 PyTorch 1.11.0 compatibility updates (#1914) · ultralytics/[email protected] · GitHub
3.2 https://github.com/ultralytics/yolov5/issues/5499
3.3 AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘_阳光不锈@的博客-CSDN博客
边栏推荐
- BERT预训练模型系列总结
- ospf2双点双向重发布(题2)
- Re18:读论文 GCI Everything Has a Cause: Leveraging Causal Inference in Legal Text Analysis
- debian10 install djando
- Soft test system architects introductory tutorial | system operation and software maintenance
- Basic operations of sequence table in C language
- Meikle Studio - see the actual combat notes of Hongmeng equipment development five - drive subsystem development
- PyQt5-用像素点绘制正弦曲线
- Always remember: one day you will emerge from the chrysalis
- 国外资源加速下载器,代码全部开源
猜你喜欢

leetcode 剑指 Offer 12. 矩阵中的路径

(文字)无框按钮设置

【深度学习】(问题记录)<对一个变量求梯度得到什么>-线性回归-小批量随机梯度下降

ThreadLocal内存泄漏是伪命题?

新一代开源免费的终端工具,太酷了

Practical Walkthrough | Calculate Daily Average Date or Time Interval in MySQL

69. Sqrt(x)x 的平方根
Container Technology - A Simple Understanding of Kubernetes Objects

再有人问你分布式事务,把这篇扔给他

C#中Config文件中,密码的 特殊符号的书写方法。
随机推荐
LeetCode二叉树系列——94.二叉树的中序遍历
梅科尔工作室-看鸿蒙设备开发实战笔记四——内核开发
编译报错: undefined reference to `google::FlagRegisterer::FlagRegisterer解决方法
idea2021+Activiti [the most complete note one (basic use)]
Re19:读论文 Paragraph-level Rationale Extraction through Regularization: A case study on European Court
包、类及四大权限和static
The thread pool method opens the thread -- the difference between submit() and execute()
实施敏捷过程中这些常见的问题你可曾遇到?
Day113.尚医通:微信登录二维码、登录回调接口
Re21:读论文 MSJudge Legal Judgment Prediction with Multi-Stage Case Representation Learning in the Real
hcip06 ospf特殊区域综合实验
The creation of a large root heap (video explanation)
【HMS core】【FAQ】HMS Toolkit典型问题合集1
what is this method called
Online target drone prompt.ml
Shell系统学习之函数
PyQt5快速开发与实战 8.1 窗口风格
A new generation of free open source terminal tool, so cool
Devops和低代码的故事:螳螂捕蝉,黄雀在后
debian10安装djando