当前位置:网站首页>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 .
边栏推荐
- imageswitcher的功能和用法
- Functions and usage of serachview
- [tpm2.0 principle and Application guide] Chapter 1-3
- 【TPM2.0原理及应用指南】 12、13、14章
- 【网络攻防原理与技术】第4章:网络扫描技术
- 【深度学习】3分钟入门
- yolo训练过程中批量导入requirments.txt中所需要的包
- Share the latest high-frequency Android interview questions, and take you to explore the Android event distribution mechanism
- 99%的人都不知道|私有化部署还永久免费的即时通讯软件!
- 使用 xml资源文件定义菜单
猜你喜欢

YARN Capacity Scheduler容量调度器(超详细解读)

<代码随想录二刷>链表

Pro2:修改div块的颜色

简单的loading动画

面试官:页面很卡的原因分析及解决方案?【测试面试题分享】

Vscode three configuration files about C language

Supplementary instructions to relevant rules of online competition

【TPM2.0原理及应用指南】 16、17、18章

Ansible learning summary (9) -- ansible loop, condition judgment, trigger, processing failure and other task control use summary

Functions and usage of viewflipper
随机推荐
Establishment of solid development environment
LeetCode1051(C#)
【网络攻防原理与技术】第1章:绪论
【TPM2.0原理及应用指南】 12、13、14章
状态模式 - Unity(有限状态机)
【OKR目标管理】价值分析
使用popupwindow創建对话框风格的窗口
原生js验证码
L1-023 输出GPLT(Lua)
Pro2:修改div块的颜色
Share the latest high-frequency Android interview questions, and take you to explore the Android event distribution mechanism
Ansible 学习总结(9)—— Ansible 循环、条件判断、触发器、处理失败等任务控制使用总结
责任链模式 - Unity
【OKR目标管理】案例分析
线上比赛相关规则补充说明
第二十四届中国科协湖南组委会调研课题组一行莅临麒麟信安调研考察
自动化测试:Robot FrameWork框架大家都想知道的实用技巧
机器人工程终身学习和工作计划-2022-
YARN Capacity Scheduler容量调度器(超详细解读)
【信息安全法律法规】复习篇