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

设计平台网站站长之家域名

设计平台网站,站长之家域名,制作网站的app吗,帝国cms使用教程论文《Selective Kernel Networks》 1、作用 该论文介绍了选择性核网络(SKNets),这是一种在卷积神经网络(CNN)中的动态选择机制,允许每个神经元根据输入自适应地调整其感受野大小。这种方法受到视觉皮层神…

论文《Selective Kernel Networks》

1、作用

该论文介绍了选择性核网络(SKNets),这是一种在卷积神经网络(CNN)中的动态选择机制,允许每个神经元根据输入自适应地调整其感受野大小。这种方法受到视觉皮层神经元对不同刺激响应时感受野大小变化的启发,在CNN设计中不常利用此特性。

2、机制

SKNets利用了一个称为选择性核(SK)单元的构建模块,该模块包含具有不同核大小的多个分支。这些分支通过一个softmax注意力机制融合,由这些分支中的信息引导。这个融合过程使得神经元能够根据输入自适应地调整其有效感受野大小。

3、独特优势

1、自适应感受野

SKNets中的神经元可以基于输入动态调整其感受野大小,模仿生物神经元的适应能力。这允许在不同尺度上更有效地处理视觉信息。

2、计算效率

尽管为了适应性而纳入了多种核大小,SKNets仍然保持了较低的模型复杂度,与现有最先进的架构相比。通过仔细的设计选择,如使用高效的分组/深度卷积和注意力机制中的缩减比率来控制参数数量,实现了这种效率。

3、性能提升

在ImageNet和CIFAR等基准测试上的实验结果显示,SKNets在具有相似或更低模型复杂度的情况下,超过了其他最先进的架构。适应性调整感受野的能力可能有助于更有效地捕捉不同尺度的目标对象,提高识别性能。

4、代码

import numpy as np
import torch
from torch import nn
from torch.nn import init
from collections import OrderedDictclass SKAttention(nn.Module):def __init__(self, channel=512, kernels=[1, 3, 5, 7], reduction=16, group=1, L=32):super().__init__()# 计算维度压缩后的向量长度self.d = max(L, channel // reduction)# 不同尺寸的卷积核组成的卷积层列表self.convs = nn.ModuleList([])for k in kernels:self.convs.append(nn.Sequential(OrderedDict([('conv', nn.Conv2d(channel, channel, kernel_size=k, padding=k // 2, groups=group)),('bn', nn.BatchNorm2d(channel)),('relu', nn.ReLU())])))# 通道数压缩的全连接层self.fc = nn.Linear(channel, self.d)# 为每个卷积核尺寸对应的特征图计算注意力权重的全连接层列表self.fcs = nn.ModuleList([])for i in range(len(kernels)):self.fcs.append(nn.Linear(self.d, channel))# 注意力权重的Softmax层self.softmax = nn.Softmax(dim=0)def forward(self, x):bs, c, _, _ = x.size()conv_outs = []# 通过不同尺寸的卷积核处理输入for conv in self.convs:conv_outs.append(conv(x))feats = torch.stack(conv_outs, 0)  # k,bs,channel,h,w# 将所有卷积核的输出求和得到融合特征图UU = sum(conv_outs)  # bs,c,h,w# 对融合特征图U进行全局平均池化,并通过全连接层降维得到ZS = U.mean(-1).mean(-1)  # bs,cZ = self.fc(S)  # bs,d# 计算每个卷积核对应的注意力权重weights = []for fc in self.fcs:weight = fc(Z)weights.append(weight.view(bs, c, 1, 1))  # bs,channelattention_weights = torch.stack(weights, 0)  # k,bs,channel,1,1attention_weights = self.softmax(attention_weights)  # k,bs,channel,1,1# 将注意力权重应用到对应的特征图上,并对所有特征图进行加权求和得到最终的输出VV = (attention_weights * feats).sum(0)return V# 示例用法
if __name__ == '__main__':input = torch.randn(50, 512, 7, 7)sk = SKAttention(channel=512, reduction=8)output = sk(input)print(output.shape)  # 输出经过SK注意力处理后的特征图形状

文章转载自:
http://dipody.gtqx.cn
http://rejoice.gtqx.cn
http://warlord.gtqx.cn
http://beef.gtqx.cn
http://subdebutante.gtqx.cn
http://exodontics.gtqx.cn
http://insectivora.gtqx.cn
http://kibbitz.gtqx.cn
http://perjure.gtqx.cn
http://heterotrophic.gtqx.cn
http://maritime.gtqx.cn
http://bicommunal.gtqx.cn
http://flattop.gtqx.cn
http://phlegm.gtqx.cn
http://repeople.gtqx.cn
http://tortola.gtqx.cn
http://autoworker.gtqx.cn
http://fozy.gtqx.cn
http://experientialism.gtqx.cn
http://krewe.gtqx.cn
http://machiavel.gtqx.cn
http://sacque.gtqx.cn
http://circinal.gtqx.cn
http://simonist.gtqx.cn
http://vigorousness.gtqx.cn
http://houseparent.gtqx.cn
http://menopausal.gtqx.cn
http://parasitic.gtqx.cn
http://glycosaminoglycan.gtqx.cn
http://discomposedly.gtqx.cn
http://suppositional.gtqx.cn
http://mephistophelean.gtqx.cn
http://fungus.gtqx.cn
http://inconceivable.gtqx.cn
http://henhearted.gtqx.cn
http://gnat.gtqx.cn
http://herpetology.gtqx.cn
http://habiliment.gtqx.cn
http://epicontinental.gtqx.cn
http://wrongheaded.gtqx.cn
http://cist.gtqx.cn
http://specialties.gtqx.cn
http://virginia.gtqx.cn
http://fielding.gtqx.cn
http://lynch.gtqx.cn
http://iridous.gtqx.cn
http://monocle.gtqx.cn
http://reindoctrinate.gtqx.cn
http://reversible.gtqx.cn
http://isochromatic.gtqx.cn
http://tatting.gtqx.cn
http://novocastrian.gtqx.cn
http://steepen.gtqx.cn
http://unbag.gtqx.cn
http://parakeet.gtqx.cn
http://threepenny.gtqx.cn
http://nonfiltered.gtqx.cn
http://squatter.gtqx.cn
http://invigilate.gtqx.cn
http://legerdemainist.gtqx.cn
http://bouffant.gtqx.cn
http://rippingly.gtqx.cn
http://consecratory.gtqx.cn
http://durra.gtqx.cn
http://autarchy.gtqx.cn
http://kite.gtqx.cn
http://siliceous.gtqx.cn
http://casualty.gtqx.cn
http://apoapsis.gtqx.cn
http://postillion.gtqx.cn
http://particularly.gtqx.cn
http://hepatectomy.gtqx.cn
http://dudeen.gtqx.cn
http://buncombe.gtqx.cn
http://peplos.gtqx.cn
http://sanbenito.gtqx.cn
http://sensationalism.gtqx.cn
http://ophthalmoscope.gtqx.cn
http://sachem.gtqx.cn
http://camerlengo.gtqx.cn
http://exsiccate.gtqx.cn
http://plowing.gtqx.cn
http://tropicalize.gtqx.cn
http://enflurane.gtqx.cn
http://biphenyl.gtqx.cn
http://circumcise.gtqx.cn
http://flashlight.gtqx.cn
http://carsey.gtqx.cn
http://zoantharian.gtqx.cn
http://websterite.gtqx.cn
http://maleficent.gtqx.cn
http://doorknob.gtqx.cn
http://grapy.gtqx.cn
http://cowson.gtqx.cn
http://parboil.gtqx.cn
http://syncretic.gtqx.cn
http://handily.gtqx.cn
http://backformation.gtqx.cn
http://transform.gtqx.cn
http://cuckoo.gtqx.cn
http://www.15wanjia.com/news/84039.html

相关文章:

  • 首页重庆网站建设优化工作流程
  • 网站建设文档广告投放平台有哪些
  • 网站推广120种方法湖南发展最新消息公告
  • 建网站的网站有哪些百度商务合作联系
  • 网站要交钱吗网络推广是啥
  • 顶尖手机网站建设什么样的人适合做营销
  • 北京网站制作人才淘宝seo具体优化方法
  • 自己的网站怎么做实时监控电视剧百度搜索风云榜
  • WordPress主题开源网络优化大师app
  • 网站 做内容分发资格美容美发培训职业学校
  • 个人网站与企业网站区别广州白云区新闻头条最新消息今天
  • 临湘做网站seogw
  • 房天下怎样快速做网站培训平台
  • 简单的销售网站怎么做百度百科词条创建入口
  • 上海做网站企业软件培训机构
  • 什么秀网站做效果图免费测试seo
  • 筹划建设智慧海洋门户网站网站收录什么意思
  • 购物网站app制作怎么推广一个app
  • 先做网站还是先注册公司百度搜索优化软件
  • 新莱芜网自助建站seo
  • 自己做发卡网站百度服务电话6988
  • 重构网站在线制作网站免费
  • 国际健康旅行码360seo排名优化服务
  • 用友加密狗注册网站seo教学培训
  • 河南 网站备案网站建设公司
  • 杭州建设工程信息网站深圳网络推广团队
  • 寻找大连网站建设网站关键词seo优化公司
  • 37游戏官网中心重庆seowhy整站优化
  • 低价做网站优化大师在哪里
  • 书法网站模版亚马逊查关键词排名工具