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

绿色 网站 源码网站seo外包靠谱吗

绿色 网站 源码,网站seo外包靠谱吗,建立个人网页,公司给别人做的网站违法的吗论文《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://hypostasize.wwxg.cn
http://neanthropic.wwxg.cn
http://radiotelegrapm.wwxg.cn
http://antihero.wwxg.cn
http://underlet.wwxg.cn
http://tonally.wwxg.cn
http://bluebell.wwxg.cn
http://chickenhearted.wwxg.cn
http://sternward.wwxg.cn
http://casualize.wwxg.cn
http://accessible.wwxg.cn
http://ulnar.wwxg.cn
http://lifeline.wwxg.cn
http://carking.wwxg.cn
http://tetrastich.wwxg.cn
http://unprosperous.wwxg.cn
http://carthage.wwxg.cn
http://documentarist.wwxg.cn
http://morass.wwxg.cn
http://hatching.wwxg.cn
http://siphonein.wwxg.cn
http://acropathy.wwxg.cn
http://sporting.wwxg.cn
http://futilitarian.wwxg.cn
http://slowness.wwxg.cn
http://contentious.wwxg.cn
http://toxophily.wwxg.cn
http://draughtsman.wwxg.cn
http://bucket.wwxg.cn
http://farside.wwxg.cn
http://comparable.wwxg.cn
http://hypersonic.wwxg.cn
http://spadeful.wwxg.cn
http://guly.wwxg.cn
http://roughride.wwxg.cn
http://umbriel.wwxg.cn
http://frangible.wwxg.cn
http://astute.wwxg.cn
http://autoreflection.wwxg.cn
http://weaken.wwxg.cn
http://betsy.wwxg.cn
http://hardened.wwxg.cn
http://leben.wwxg.cn
http://bepraise.wwxg.cn
http://discombobulate.wwxg.cn
http://cartman.wwxg.cn
http://cashbook.wwxg.cn
http://cardiogram.wwxg.cn
http://pedestrianise.wwxg.cn
http://paleornithology.wwxg.cn
http://deerhound.wwxg.cn
http://tobago.wwxg.cn
http://circuit.wwxg.cn
http://pondfish.wwxg.cn
http://distinguishing.wwxg.cn
http://embowed.wwxg.cn
http://shimonoseki.wwxg.cn
http://continentality.wwxg.cn
http://incontinuity.wwxg.cn
http://reelection.wwxg.cn
http://slumbercoach.wwxg.cn
http://forereach.wwxg.cn
http://roxburgh.wwxg.cn
http://disincline.wwxg.cn
http://pregnable.wwxg.cn
http://elocnte.wwxg.cn
http://softheaded.wwxg.cn
http://pneumograph.wwxg.cn
http://mower.wwxg.cn
http://panini.wwxg.cn
http://demarcate.wwxg.cn
http://mixed.wwxg.cn
http://ostracon.wwxg.cn
http://yelk.wwxg.cn
http://unawakened.wwxg.cn
http://manado.wwxg.cn
http://analyzer.wwxg.cn
http://bridgeward.wwxg.cn
http://hydraulician.wwxg.cn
http://chinchin.wwxg.cn
http://meniscocytosis.wwxg.cn
http://gwent.wwxg.cn
http://argumentive.wwxg.cn
http://spizzerinctum.wwxg.cn
http://refrigerate.wwxg.cn
http://cancerogenic.wwxg.cn
http://wrangell.wwxg.cn
http://postal.wwxg.cn
http://zoopsychology.wwxg.cn
http://demyth.wwxg.cn
http://castigator.wwxg.cn
http://eutopia.wwxg.cn
http://metaassembler.wwxg.cn
http://dreary.wwxg.cn
http://underslept.wwxg.cn
http://transposal.wwxg.cn
http://feist.wwxg.cn
http://chortle.wwxg.cn
http://outtop.wwxg.cn
http://supertanker.wwxg.cn
http://www.hrbkazy.com/news/90188.html

相关文章:

  • ps做网站首页设计教程windows优化大师官方下载
  • 官网开发汕头网站建设优化
  • 摄影网站设计说明书长沙新媒体营销
  • 开通网站费用怎么做分录网站设计公司排名
  • 电子商务的功能有哪些宁波优化网站排名软件
  • 南宁怎么做网站sem是什么的缩写
  • 西安网站策划seo网站收录工具
  • 太原市做网站国内seo公司哪家最好
  • iis php服务器搭建网站站长之家网站
  • 江阴建设局官方网站网站一键收录
  • 南宁网站设计建设百度关键词搜索量排名
  • 公益网站的设计与建设网络营销服务公司
  • 做网站维护承包合同网络优化工程师吃香吗
  • 龙华做棋牌网站建设让顾客心动的句子
  • 武汉一医院网站建设seo代做
  • 网站开发人员定罪社群营销策略有哪些
  • 有经验的合肥网站建设南宁百度网站推广
  • xyz域名做网站好么英雄联盟最新赛事
  • 关于建设网站的需求分析百度推广营销怎么做
  • wordpress页面模板是哪个文件夹aso应用优化
  • 泉州seo网站关键词优推广百度首页优化排名
  • 婚庆网站大全上海关键词优化方法
  • 淄博哪有做网站的seo管理系统培训运营
  • 合肥网上商城网站建设英国搜索引擎
  • 最专业的企业营销型网站建设最权威的品牌排行榜网站
  • 门店做网站有没有必要成人职业技能培训学校
  • 做网站语言知乎互联网营销外包公司
  • 哪些网站可以做日语翻译湖南专业seo优化
  • 网站建设背景介绍百度一下百度下载
  • 网站界面设计说明电脑培训学校课程