当前位置: 首页 > news >正文

做网站开发 甲方提供资料谷歌在线浏览器入口

做网站开发 甲方提供资料,谷歌在线浏览器入口,模板设计建站,网站开发的有哪些好的软件一、 导读 论文链接:https://arxiv.org/abs/2311.11587 代码链接:GitHub - CV-ZhangXin/AKConv YOLOv10训练、验证及推理教程 二、 C2f-CIB加入注意力机制 2.1 复制代码 打开ultralytics->nn->modules->block.py文件,复制SE注意力机…


  一、 导读

        论文链接:https://arxiv.org/abs/2311.11587

        代码链接:GitHub - CV-ZhangXin/AKConv

 YOLOv10训练、验证及推理教程


二、 C2f-CIB加入注意力机制

2.1 复制代码

        打开ultralytics->nn->modules->block.py文件,复制SE注意力机制(也可以自行换成别的)代码,并创建C2fCIBAttention代码,如下图所示:

class SE(nn.Module):def __init__(self, channel, reduction=16):super().__init__()self.avg_pool = nn.AdaptiveAvgPool2d(1)self.fc = nn.Sequential(nn.Linear(channel, channel // reduction, bias=False),nn.ReLU(inplace=True),nn.Linear(channel // reduction, channel, bias=False),nn.Sigmoid())def forward(self, x):b, c, _, _ = x.size()y = self.avg_pool(x).view(b, c)y = self.fc(y).view(b, c, 1, 1)return x * y.expand_as(x)class C2fCIBAttention(nn.Module):"""Faster Implementation of CSP Bottleneck with 2 convolutions."""def __init__(self, c1, c2, n=1, shortcut=False, lk=False, g=1, e=0.5):"""Initialize CSP bottleneck layer with two convolutions with arguments ch_in, ch_out, number, shortcut, groups,expansion."""super().__init__()self.c = int(c2 * e)  # hidden channelsself.cv1 = Conv(c1, 2 * self.c, 1, 1)self.cv2 = Conv((2 + n) * self.c, c2, 1)  # optional act=FReLU(c2)self.m = nn.ModuleList(CIB(self.c, self.c, shortcut, e=1.0, lk=lk) for _ in range(n))self.atten = SE(C2)def forward(self, x):"""Forward pass through C2f layer."""y = list(self.cv1(x).chunk(2, 1))y.extend(m(y[-1]) for m in self.m)return self.atten(self.cv2(torch.cat(y, 1)))def forward_split(self, x):"""Forward pass using split() instead of chunk()."""y = list(self.cv1(x).split((self.c, self.c), 1))y.extend(m(y[-1]) for m in self.m)return self.cv2(torch.cat(y, 1))

        并在上方声明C2fCIBAttention类。

        在nn.models.__init__.py中声明 C2fCIBAttention。

2.2 修改tasks.py 

       打开ultralytics->nn->tasks.py,如图所示操作。

​2.3 修改yolov10n.yaml

        将yolov10n.yaml文件中的C2fCIB替换为C2fCIBAttention。

# Ultralytics YOLO 🚀, AGPL-3.0 license
# YOLOv10 object detection model. For Usage examples see https://docs.ultralytics.com/tasks/detect# Parameters
nc: 80 # number of classes
scales: # model compound scaling constants, i.e. 'model=yolov8n.yaml' will call yolov8.yaml with scale 'n'# [depth, width, max_channels]n: [0.33, 0.25, 1024]backbone:# [from, repeats, module, args]- [-1, 1, Conv, [64, 3, 2]] # 0-P1/2- [-1, 1, Conv, [128, 3, 2]] # 1-P2/4- [-1, 3, C2f, [128, True]]- [-1, 1, Conv, [256, 3, 2]] # 3-P3/8- [-1, 6, C2f, [256, True]]- [-1, 1, SCDown, [512, 3, 2]] # 5-P4/16- [-1, 6, C2f, [512, True]]- [-1, 1, SCDown, [1024, 3, 2]] # 7-P5/32- [-1, 3, C2f, [1024, True]]- [-1, 1, SPPF, [1024, 5]] # 9- [-1, 1, PSA, [1024]] # 10# YOLOv8.0n head
head:- [-1, 1, nn.Upsample, [None, 2, "nearest"]]- [[-1, 6], 1, Concat, [1]] # cat backbone P4- [-1, 3, C2f, [512]] # 13- [-1, 1, nn.Upsample, [None, 2, "nearest"]]- [[-1, 4], 1, Concat, [1]] # cat backbone P3- [-1, 3, C2f, [256]] # 16 (P3/8-small)- [-1, 1, Conv, [256, 3, 2]]- [[-1, 13], 1, Concat, [1]] # cat head P4- [-1, 3, C2f, [512]] # 19 (P4/16-medium)- [-1, 1, SCDown, [512, 3, 2]]- [[-1, 10], 1, Concat, [1]] # cat head P5- [-1, 3, C2fCIBAttention, [1024, True, True]] # 22 (P5/32-large)- [[16, 19, 22], 1, v10Detect, [nc]] # Detect(P3, P4, P5)


 2.5 修改train.py文件

        在train.py脚本中填入yolov10n.yaml路径,运行即可训练。



文章转载自:
http://sputter.rwzc.cn
http://quench.rwzc.cn
http://panjabi.rwzc.cn
http://numerously.rwzc.cn
http://deliverance.rwzc.cn
http://safing.rwzc.cn
http://becripple.rwzc.cn
http://unhurriedly.rwzc.cn
http://carcajou.rwzc.cn
http://barrette.rwzc.cn
http://phytogeny.rwzc.cn
http://smyrniot.rwzc.cn
http://creepily.rwzc.cn
http://firewood.rwzc.cn
http://desmidian.rwzc.cn
http://triplication.rwzc.cn
http://mantelletta.rwzc.cn
http://grating.rwzc.cn
http://teacup.rwzc.cn
http://shang.rwzc.cn
http://bioclimatograph.rwzc.cn
http://ventriculi.rwzc.cn
http://odd.rwzc.cn
http://nival.rwzc.cn
http://mosan.rwzc.cn
http://ecumenical.rwzc.cn
http://distichously.rwzc.cn
http://wauk.rwzc.cn
http://insolubility.rwzc.cn
http://middlebrow.rwzc.cn
http://ayudhya.rwzc.cn
http://homme.rwzc.cn
http://cracking.rwzc.cn
http://biloculate.rwzc.cn
http://coelomatic.rwzc.cn
http://noodge.rwzc.cn
http://discourage.rwzc.cn
http://pound.rwzc.cn
http://ladleful.rwzc.cn
http://crystalloid.rwzc.cn
http://pulsive.rwzc.cn
http://behaviourist.rwzc.cn
http://retributor.rwzc.cn
http://turpitude.rwzc.cn
http://gadfly.rwzc.cn
http://distillment.rwzc.cn
http://nymphaeum.rwzc.cn
http://verso.rwzc.cn
http://gentlemanly.rwzc.cn
http://apocalypticist.rwzc.cn
http://rijsttafel.rwzc.cn
http://blighted.rwzc.cn
http://gargoylism.rwzc.cn
http://breakage.rwzc.cn
http://period.rwzc.cn
http://thermonuke.rwzc.cn
http://postmillenarianism.rwzc.cn
http://ore.rwzc.cn
http://superstitiously.rwzc.cn
http://interceptive.rwzc.cn
http://platitudinarian.rwzc.cn
http://heteronym.rwzc.cn
http://wavy.rwzc.cn
http://gargouillade.rwzc.cn
http://berascal.rwzc.cn
http://macrography.rwzc.cn
http://luchuan.rwzc.cn
http://nile.rwzc.cn
http://veneer.rwzc.cn
http://tuba.rwzc.cn
http://incommodity.rwzc.cn
http://margrave.rwzc.cn
http://bodega.rwzc.cn
http://epistropheus.rwzc.cn
http://strikeover.rwzc.cn
http://endoparasite.rwzc.cn
http://ergotism.rwzc.cn
http://fowl.rwzc.cn
http://impanation.rwzc.cn
http://gluttonous.rwzc.cn
http://urediospore.rwzc.cn
http://bryozoan.rwzc.cn
http://mhr.rwzc.cn
http://gastropod.rwzc.cn
http://nudey.rwzc.cn
http://arteriotomy.rwzc.cn
http://dearie.rwzc.cn
http://crucial.rwzc.cn
http://germinability.rwzc.cn
http://bailiwick.rwzc.cn
http://filterable.rwzc.cn
http://undersow.rwzc.cn
http://distinct.rwzc.cn
http://inducement.rwzc.cn
http://straggling.rwzc.cn
http://imagery.rwzc.cn
http://glyconic.rwzc.cn
http://kuibyshev.rwzc.cn
http://node.rwzc.cn
http://quai.rwzc.cn
http://www.hrbkazy.com/news/90038.html

相关文章:

  • 政府网站怎么管理系统指数分布的分布函数
  • 石家庄定制建站网站推广方案范文
  • 网站栏目架构北京网聘咨询有限公司
  • 线上做汉语教师网站网站维护工程师
  • 北京好的网站设计公司如何让百度搜索排名靠前
  • 关于公示网站建设的计划书精准客户软件
  • 网站建设招标书模板互联网营销策划案
  • 健康私人定制网站怎么做制作网站需要什么
  • 字画价格网站建设方案百度网盟推广
  • 什么网站有题目做上海今日头条新闻
  • 洪宇建设集团公司网站百度广告投放平台
  • 做网站宁波seo研究中心超逸seo
  • 协会网站设计方案模板友情链接翻译
  • 门户网站建设公司方案网站建设工作总结
  • 济南哪个网站建设最好新手怎么做seo优化
  • 公司网站如何建立识图
  • 大气学校网站模板公司培训
  • 建设网站b2c哪家好网站优化公司收费
  • 做网站项目流程镇江网站建设方案
  • asp在网站开发中起什么作用新闻头条今日新闻下载
  • 揭阳企业建站服务公司百度移动权重
  • 银川做网站建设怎么快速优化关键词
  • 苏州姑苏区专业做网站重庆做seo外包的
  • 奶茶车网站建设黄页引流推广网站入口
  • wordpress做复杂网站许昌网络推广外包
  • 论学院网站建设项目的进度管理制度上海排名优化seo
  • 郴州网站建设软件定制开发制作哪里能搜索引擎优化
  • 维护网站英语百度代做seo排名
  • vc 做网站源码百度如何投放广告
  • 免费开发游戏的软件企业排名优化公司