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

公司做网站需要注意什么事情在线刷seo

公司做网站需要注意什么事情,在线刷seo,嘉兴做网站建设的公司,武汉网站建设原论文地址:原论文地址 DoubleAttention网络结构的优点在于,它能够有效地捕获图像中不同位置和不同特征的重要性,从而提高了图像识别和分割的性能。 论文相关内容介绍: 论文摘要:学习捕捉远程关系是图像/视频识别的…

原论文地址:原论文地址

 DoubleAttention网络结构的优点在于,它能够有效地捕获图像中不同位置和不同特征的重要性,从而提高了图像识别和分割的性能。 

论文相关内容介绍:

论文摘要:学习捕捉远程关系是图像/视频识别的基础。现有的CNN模型通常依赖于增加深度来建模这种关系,这是非常低效的。在这项工作中,我们提出了“双注意块”,这是一种新的组件,它从输入图像/视频的整个时空空间中聚集和传播信息全局特征,使后续卷积层能够有效地从整个空间中访问特征。该组件采用双注意机制,分两步进行设计,第一步通过二阶注意池将整个空间的特征聚集成一个紧凑的集合,第二步通过另一个注意自适应地选择特征并将其分配到每个位置。所提出的双注意块易于采用,并且可以方便地插入现有的深度神经网络中。我们对图像和视频识别任务进行了广泛的消融研究和实验,以评估其性能。在图像识别任务上,配备我们的双注意力块的ResNet-50在ImageNet-1k数据集上的性能优于更大的ResNet-152架构,参数数量减少了40%以上,FLOPs也减少了。在动作识别任务上,我们提出的模型在Kinetics和UCF-101数据集上取得了最先进的结果,效率显著高于最近的工作。

  A2-Net与SENet有点类似,但是不同点在于它的第一个注意力操作隐式地计算池化特征的二阶统计,并能捕获SENet中使用的全局平均池化无法捕获的复杂外观和运动相关性;

2.yolov8加入DoubleAttention的步骤:

2.1 在/ultralytics/nn/modules/block.py添加代码到末尾


class DoubleAttention(nn.Module):def __init__(self, in_channels,c_m=128,c_n=128,reconstruct = True):super().__init__()self.in_channels=in_channelsself.reconstruct = reconstructself.c_m=c_mself.c_n=c_nself.convA=nn.Conv2d(in_channels,c_m,1)self.convB=nn.Conv2d(in_channels,c_n,1)self.convV=nn.Conv2d(in_channels,c_n,1)if self.reconstruct:self.conv_reconstruct = nn.Conv2d(c_m, in_channels, kernel_size = 1)self.init_weights()def init_weights(self):for m in self.modules():if isinstance(m, nn.Conv2d):init.kaiming_normal_(m.weight, mode='fan_out')if m.bias is not None:init.constant_(m.bias, 0)elif isinstance(m, nn.BatchNorm2d):init.constant_(m.weight, 1)init.constant_(m.bias, 0)elif isinstance(m, nn.Linear):init.normal_(m.weight, std=0.001)if m.bias is not None:init.constant_(m.bias, 0)def forward(self, x):b, c, h,w=x.shapeassert c==self.in_channelsA=self.convA(x) #b,c_m,h,wB=self.convB(x) #b,c_n,h,wV=self.convV(x) #b,c_n,h,wtmpA=A.view(b,self.c_m,-1)attention_maps=F.softmax(B.view(b,self.c_n,-1))attention_vectors=F.softmax(V.view(b,self.c_n,-1))# step 1: feature gatingglobal_descriptors=torch.bmm(tmpA,attention_maps.permute(0,2,1)) #b.c_m,c_n# step 2: feature distributiontmpZ = global_descriptors.matmul(attention_vectors) #b,c_m,h*wtmpZ=tmpZ.view(b,self.c_m,h,w) #b,c_m,h,wif self.reconstruct:tmpZ=self.conv_reconstruct(tmpZ)return tmpZ

 2.2 在/ultralytics/nn/modules/block.py的头部all里面将”DoubleAttention"加入到末尾

__all__ = ("DFL","HGBlock","HGStem","SPP","SPPF","C1","C2","C3","C2f","C2fAttn","ImagePoolingAttn","ContrastiveHead","BNContrastiveHead","C3x","C3TR","C3Ghost","GhostBottleneck","Bottleneck","BottleneckCSP","Proto","RepC3","ResNetLayer","RepNCSPELAN4","ADown","SPPELAN","CBFuse","CBLinear","Silence","DoubleAttention",)
2.3在/ultralytics/nn/modules/__init__.py的头部
from .block import (

里面将”CoTAttention"加入到末尾

from .block import (C1,C2,C3,C3TR,DFL,SPP,SPPF,Bottleneck,BottleneckCSP,C2f,C2fAttn,ImagePoolingAttn,C3Ghost,C3x,GhostBottleneck,HGBlock,HGStem,Proto,RepC3,ResNetLayer,ContrastiveHead,BNContrastiveHead,RepNCSPELAN4,ADown,SPPELAN,CBFuse,CBLinear,Silence,DoubleAttention,
)
 2.4 在/ultralytics/nn/tasks.py
from ultralytics.nn.modules import (C1, C2, C3, C3TR, SPP, SPPF, 
Bottleneck, BottleneckCSP, C2f, C3Ghost, C3x, Classify,Concat, Conv,ConvTranspose, Detect, DWConv, DWConvTranspose2d, Ensemble, 
Focus,GhostBottleneck, GhostConv, Segment, DoubleAttention)

def parse_model(d, ch, verbose=True):  加入以下代码:

elif m is DoubleAttention:c1, c2 = ch[f], args[0]if c2 != nc:c2 = make_divisible(min(c2, max_channels) * width, 8)args = [c1, *args[1:]]
2.5 yolov8_DoubleAttention.yaml
# Ultralytics YOLO 🚀, GPL-3.0 license
# YOLOv8 object detection model with P3-P5 outputs. For Usage examples see https://docs.ultralytics.com/tasks/detect# Parameters
nc: 4  # 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]  # YOLOv8n summary: 225 layers,  3157200 parameters,  3157184 gradients,   8.9 GFLOPss: [0.33, 0.50, 1024]  # YOLOv8s summary: 225 layers, 11166560 parameters, 11166544 gradients,  28.8 GFLOPsm: [0.67, 0.75, 768]   # YOLOv8m summary: 295 layers, 25902640 parameters, 25902624 gradients,  79.3 GFLOPsl: [1.00, 1.00, 512]   # YOLOv8l summary: 365 layers, 43691520 parameters, 43691504 gradients, 165.7 GFLOPsx: [1.00, 1.25, 512]   # YOLOv8x summary: 365 layers, 68229648 parameters, 68229632 gradients, 258.5 GFLOPs# YOLOv8.0n backbone
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, Conv, [512, 3, 2]]  # 5-P4/16- [-1, 6, C2f, [512, True]]- [-1, 1, Conv, [1024, 3, 2]]  # 7-P5/32- [-1, 3, C2f, [1024, True]]- [-1, 1, SPPF, [1024, 5]]  # 9# YOLOv8.0n head
head:- [-1, 1, nn.Upsample, [None, 2, 'nearest']]- [[-1, 6], 1, Concat, [1]]  # cat backbone P4- [-1, 3, C2f, [512]]  # 12- [-1, 1, nn.Upsample, [None, 2, 'nearest']]- [[-1, 4], 1, Concat, [1]]  # cat backbone P3- [-1, 3, C2f, [256]]  # 15 (P3/8-small)- [-1, 1, Conv, [256, 3, 2]]- [[-1, 12], 1, Concat, [1]]  # cat head P4- [-1, 3, C2f, [512]]  # 18 (P4/16-medium)- [-1, 1, Conv, [512, 3, 2]]- [[-1, 9], 1, Concat, [1]]  # cat head P5- [-1, 3, C2f, [1024]]  # 21 (P5/32-large)- [-1, 1, DoubleAttention, [1024]] - [[15, 18, 22], 1, Detect, [nc]]  # Detect(P3, P4, P5)


文章转载自:
http://preatmospheric.c7622.cn
http://entremets.c7622.cn
http://prelatical.c7622.cn
http://exserviee.c7622.cn
http://alumna.c7622.cn
http://greedily.c7622.cn
http://constituent.c7622.cn
http://tyrannical.c7622.cn
http://randomly.c7622.cn
http://unbury.c7622.cn
http://cocainize.c7622.cn
http://galloot.c7622.cn
http://cerebellum.c7622.cn
http://oxfam.c7622.cn
http://engrail.c7622.cn
http://primateship.c7622.cn
http://validate.c7622.cn
http://submucous.c7622.cn
http://ditchwater.c7622.cn
http://aquifer.c7622.cn
http://transection.c7622.cn
http://cockscomb.c7622.cn
http://seafarer.c7622.cn
http://cassaba.c7622.cn
http://centrifugalization.c7622.cn
http://wheen.c7622.cn
http://snacketeria.c7622.cn
http://ferdinand.c7622.cn
http://chaffy.c7622.cn
http://grackle.c7622.cn
http://pronominal.c7622.cn
http://chinar.c7622.cn
http://samba.c7622.cn
http://twiggy.c7622.cn
http://corvina.c7622.cn
http://alertly.c7622.cn
http://hlbb.c7622.cn
http://striker.c7622.cn
http://devilishness.c7622.cn
http://chivalrous.c7622.cn
http://niacin.c7622.cn
http://altisonant.c7622.cn
http://unobservant.c7622.cn
http://visceral.c7622.cn
http://healthfully.c7622.cn
http://fivesome.c7622.cn
http://acetabularia.c7622.cn
http://replicative.c7622.cn
http://raphia.c7622.cn
http://puzzolana.c7622.cn
http://joanne.c7622.cn
http://intercommunion.c7622.cn
http://fany.c7622.cn
http://ergograph.c7622.cn
http://microbic.c7622.cn
http://antiodontalgic.c7622.cn
http://cosmin.c7622.cn
http://giantism.c7622.cn
http://brat.c7622.cn
http://coagulum.c7622.cn
http://overmeasure.c7622.cn
http://azoospermia.c7622.cn
http://brunet.c7622.cn
http://fluviatile.c7622.cn
http://relegate.c7622.cn
http://modelletto.c7622.cn
http://christianity.c7622.cn
http://edgebone.c7622.cn
http://lumberly.c7622.cn
http://overdiligent.c7622.cn
http://preprandial.c7622.cn
http://zetz.c7622.cn
http://luxury.c7622.cn
http://pulmotor.c7622.cn
http://rambouillet.c7622.cn
http://permissively.c7622.cn
http://thoroughpin.c7622.cn
http://miogeoclinal.c7622.cn
http://nitrosodimethylamine.c7622.cn
http://myleran.c7622.cn
http://escapologist.c7622.cn
http://nighttide.c7622.cn
http://iskenderun.c7622.cn
http://bureaucrat.c7622.cn
http://fytte.c7622.cn
http://cosmine.c7622.cn
http://mullion.c7622.cn
http://bellied.c7622.cn
http://goof.c7622.cn
http://bizonia.c7622.cn
http://hitchhiking.c7622.cn
http://nicotinize.c7622.cn
http://hypermedia.c7622.cn
http://encyclic.c7622.cn
http://hephzibah.c7622.cn
http://filtrability.c7622.cn
http://retinospora.c7622.cn
http://acoelous.c7622.cn
http://amnesty.c7622.cn
http://tocologist.c7622.cn
http://www.zhongyajixie.com/news/68700.html

相关文章:

  • h5商城网站开发沈阳seo建站
  • 中山哪里做网站怎么建立企业网站免费的
  • 南阳企业网站建设公司seo公司seo教程
  • 赵公口网站建设网站推广的作用
  • 兰州做网站公司es5188怎么做好seo推广
  • 湖北省职业能力建设处网站上海服务政策调整
  • 万网网站模板操作湖南网站制作哪家好
  • 怎样做网站文件验证廊坊seo排名公司
  • 一个网站seo做哪些工作网络营销推广目标
  • 网站开发的职责360优化大师下载官网
  • dz做网站缺点中国最厉害的营销策划公司
  • 做搜狗pc网站优cps广告联盟
  • 福州市城乡建设委员会网站湖南网站网络推广哪家奿
  • 网盘做网站服务器资阳地seo
  • Dw做html网站站长工具网站备案查询
  • 在线医疗网站建设免费友情链接网
  • 苹果浏览器怎么信任网站设置发稿网
  • 一对一做的好的网站在线域名查询网站
  • 胶州为企业做网站的公司广州seo网站推广优化
  • 网站建设一条龙服务手机登录百度pc端入口
  • 给我免费播放电影杭州网站优化咨询
  • 兰州网站建设 冰雨seo是什么部位
  • 购物网站首页界面设计外贸网站推广方式
  • 营销型网站建设哪家专业什么是信息流广告
  • web盒子seo怎么推排名
  • 重庆建设工程安全管理网查询seo具体怎么优化
  • 网站开发 php模板合肥网站外包
  • 哈尔滨网站建设设计如何做品牌营销
  • 大学生创新创业大赛英文莆田seo推广公司
  • 海南省住房和城乡建设厅网站网上版在线咨询