当前位置:网站首页>Run Yolo v5-5.0 and report an error. If the sppf error cannot be found, solve it
Run Yolo v5-5.0 and report an error. If the sppf error cannot be found, solve it
2022-07-07 17:41:00 【AI cannon fodder】
First find yolov5 Below models Under the folder common.py file , As shown below :

Find the folder below SPP class ,

Then add SPPF class , As shown below ,
class SPPF(nn.Module):
def __init__(self, c1, c2, k = 5):
super().__init__()
c_ = c1 // 2
self.cv1 = Conv(c1, c_, 1, 1)
self.cv2 = Conv(c_ * 4, c2, 1, 1)
self.m = nn.MaxPool2d(kernel_size=k, stride=1, padding=k // 2)
def forward(self, x):
x = self.cv1(x)
with warnings.catch_warnings():
warnings.simplefilter('ignore')
y1 = self.m(x)
y2 = self.m(y1)
return self.cv2(torch.cat([x, y1, y2, self.m(y2)], 1))You can directly copy the above code . Then the error is resolved .
边栏推荐
- js拉下帷幕js特效显示层
- 本周小贴士#134:make_unique与私有构造函数
- Actionbar navigation bar learning
- Establishment of solid development environment
- 跟奥巴马一起画方块(Lua)
- Supplementary instructions to relevant rules of online competition
- Face recognition attendance system based on Baidu flying plasma platform (easydl)
- 【TPM2.0原理及应用指南】 12、13、14章
- MySQL index hit level analysis
- 如何在软件研发阶段落地安全实践
猜你喜欢
随机推荐
99%的人都不知道|私有化部署还永久免费的即时通讯软件!
datepicket和timepicket,日期、时间选择器的功能和用法
《世界粮食安全和营养状况》报告发布:2021年全球饥饿人口增至8.28亿
本周小贴士#135:测试约定而不是实现
Cartoon | who is the first ide in the universe?
Function and usage of numberpick
【TPM2.0原理及应用指南】 1-3章
使用OneDNS完美解决办公网络优化问题
做软件测试 掌握哪些技术才能算作 “ 测试高手 ”?
Vscode three configuration files about C language
深入浅出图解CNN-卷积神经网络
【可信计算】第十三次课:TPM扩展授权与密钥管理
js拉下帷幕js特效显示层
第二十四届中国科协湖南组委会调研课题组一行莅临麒麟信安调研考察
第1章CRM核心业务介绍
原生js验证码
【深度学习】3分钟入门
【OKR目标管理】价值分析
Numberpick的功能和用法
使用Stace排除故障的5种简单方法








