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

wordpress网页走丢了seo成功案例分析

wordpress网页走丢了,seo成功案例分析,中国十大影视公司排名,建设工程招标网站本文在大佬的文章YOLOv11 | 一文带你深入理解ultralytics最新作品yolov11的创新 | 训练、推理、验证、导出 (附网络结构图)基础上做了一些补充。 一、YOLOv11和YOLOv8对比 二、YOLOv11的网络结构图 下面的图片为YOLOv11的网络结构图。 三、YOLOv11…

本文在大佬的文章YOLOv11 | 一文带你深入理解ultralytics最新作品yolov11的创新 | 训练、推理、验证、导出 (附网络结构图)基础上做了一些补充。

一、YOLOv11和YOLOv8对比

在这里插入图片描述

二、YOLOv11的网络结构图

下面的图片为YOLOv11的网络结构图。
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

三、YOLOv11新提出的模块

1、 提出C3k2机制,其中C3k2有参数为c3k,其中在网络的浅层c3k设置为False(下图中可以看到c3k2第二个参数被设置为False,就是对应的c3k参数)。

在这里插入图片描述
C3k2就相当于YOLOv8中的C2f,其网络结构为一致的,其中的C3k机制的网络结构图如下图所示
在这里插入图片描述
可将yolov11训练好的pt模型,通过命令转化成onnx模型:

yolo task=detect mode=export model=runs/detect/train/weights/best.pt format=onnx 

再送入Netron网站打开,获取模型结构。
要想获得每一层的特征图大小,如下图所示,需要对转化好的onnx进行简化后得到的模型再送入Netron打开即可。
sim命令如下:

pip install onnx-simplifier
python -m onnxsim /runs/detect/train/weights/best.onnx  runs/detect/train/weights/best_sim.onnx

以下yolov11s的第3层c3k2(第二个参数设置为False)的onnx结构图。
在这里插入图片描述
由于s的depth=0.5,所以yaml文件中卷积通道数减半。
在这里插入图片描述
以下是第6层c3k2第二个参数设置为True的onnx结构图。
在这里插入图片描述
在这里插入图片描述

yolov11模块代码:

class C3k2(C2f):"""Faster Implementation of CSP Bottleneck with 2 convolutions."""def __init__(self, c1, c2, n=1, c3k=False, e=0.5, g=1, shortcut=True):"""Initializes the C3k2 module, a faster CSP Bottleneck with 2 convolutions and optional C3k blocks."""super().__init__(c1, c2, n, shortcut, g, e)self.m = nn.ModuleList(C3k(self.c, self.c, 2, shortcut, g) if c3k else Bottleneck(self.c, self.c, shortcut, g) for _ in range(n))
class C3k(C3):"""C3k is a CSP bottleneck module with customizable kernel sizes for feature extraction in neural networks."""def __init__(self, c1, c2, n=1, shortcut=True, g=1, e=0.5, k=3):"""Initializes the C3k module with specified channels, number of layers, and configurations."""super().__init__(c1, c2, n, shortcut, g, e)c_ = int(c2 * e)  # hidden channels# self.m = nn.Sequential(*(RepBottleneck(c_, c_, shortcut, g, k=(k, k), e=1.0) for _ in range(n)))self.m = nn.Sequential(*(Bottleneck(c_, c_, shortcut, g, k=(k, k), e=1.0) for _ in range(n)))
class Bottleneck(nn.Module):"""Standard bottleneck."""def __init__(self, c1, c2, shortcut=True, g=1, k=(3, 3), e=0.5):"""Initializes a standard bottleneck module with optional shortcut connection and configurable parameters."""super().__init__()c_ = int(c2 * e)  # hidden channelsself.cv1 = Conv(c1, c_, k[0], 1)self.cv2 = Conv(c_, c2, k[1], 1, g=g)self.add = shortcut and c1 == c2def forward(self, x):"""Applies the YOLO FPN to input data."""return x + self.cv2(self.cv1(x)) if self.add else self.cv2(self.cv1(x))

2、第二个创新点是提出C2PSA机制,这是一个C2(C2f的前身)机制内部嵌入了一个多头注意力机制,在这个过程中我还发现作者尝试了C2fPSA机制但是估计效果不如C2PSA,有的时候机制有没有效果理论上真的很难解释通,下图为C2PSA机制的原理图,仔细观察把Attention哪里去掉则C2PSA机制就变为了C2所以我上面说C2PSA就是C2里面嵌入了一个PSA机制。

在这里插入图片描述

在这里插入图片描述
以下是第10层C2PSA第二个参数设置为True的onnx结构图。
在这里插入图片描述
在这里插入图片描述


class C2PSA(nn.Module):"""C2PSA module with attention mechanism for enhanced feature extraction and processing.This module implements a convolutional block with attention mechanisms to enhance feature extraction and processingcapabilities. It includes a series of PSABlock modules for self-attention and feed-forward operations.Attributes:c (int): Number of hidden channels.cv1 (Conv): 1x1 convolution layer to reduce the number of input channels to 2*c.cv2 (Conv): 1x1 convolution layer to reduce the number of output channels to c.m (nn.Sequential): Sequential container of PSABlock modules for attention and feed-forward operations.Methods:forward: Performs a forward pass through the C2PSA module, applying attention and feed-forward operations.Notes:This module essentially is the same as PSA module, but refactored to allow stacking more PSABlock modules.Examples:>>> c2psa = C2PSA(c1=256, c2=256, n=3, e=0.5)>>> input_tensor = torch.randn(1, 256, 64, 64)>>> output_tensor = c2psa(input_tensor)"""def __init__(self, c1, c2, n=1, e=0.5):"""Initializes the C2PSA module with specified input/output channels, number of layers, and expansion ratio."""super().__init__()assert c1 == c2self.c = int(c1 * e)self.cv1 = Conv(c1, 2 * self.c, 1, 1)self.cv2 = Conv(2 * self.c, c1, 1)self.m = nn.Sequential(*(PSABlock(self.c, attn_ratio=0.5, num_heads=self.c // 64) for _ in range(n)))def forward(self, x):"""Processes the input tensor 'x' through a series of PSA blocks and returns the transformed tensor."""a, b = self.cv1(x).split((self.c, self.c), dim=1)b = self.m(b)return self.cv2(torch.cat((a, b), 1))
class PSABlock(nn.Module):"""PSABlock class implementing a Position-Sensitive Attention block for neural networks.This class encapsulates the functionality for applying multi-head attention and feed-forward neural network layerswith optional shortcut connections.Attributes:attn (Attention): Multi-head attention module.ffn (nn.Sequential): Feed-forward neural network module.add (bool): Flag indicating whether to add shortcut connections.Methods:forward: Performs a forward pass through the PSABlock, applying attention and feed-forward layers.Examples:Create a PSABlock and perform a forward pass>>> psablock = PSABlock(c=128, attn_ratio=0.5, num_heads=4, shortcut=True)>>> input_tensor = torch.randn(1, 128, 32, 32)>>> output_tensor = psablock(input_tensor)"""def __init__(self, c, attn_ratio=0.5, num_heads=4, shortcut=True) -> None:"""Initializes the PSABlock with attention and feed-forward layers for enhanced feature extraction."""super().__init__()self.attn = Attention(c, attn_ratio=attn_ratio, num_heads=num_heads)self.ffn = nn.Sequential(Conv(c, c * 2, 1), Conv(c * 2, c, 1, act=False))self.add = shortcutdef forward(self, x):"""Executes a forward pass through PSABlock, applying attention and feed-forward layers to the input tensor."""x = x + self.attn(x) if self.add else self.attn(x)x = x + self.ffn(x) if self.add else self.ffn(x)return x

3. 第三个创新点可以说是原先的解耦头中的分类检测头增加了两个DWConv,具体的对比大家可以看下面两个图下面的是YOLOv11的解耦头,上面的是YOLOv8的解耦头.

在这里插入图片描述
head部分分类头定义:
v8:
在这里插入图片描述
v11:
在这里插入图片描述

DWconv卷积代码
在这里插入图片描述
在这里插入图片描述
我们上面看到了在分类检测头中YOLOv11插入了两个DWConv这样的做法可以大幅度减少参数量和计算量(原先两个普通的Conv大家要注意到卷积和是由3变为了1的,这是形成了两个深度可分离Conv)
可参考博客https://blog.csdn.net/m0_56563749/article/details/133150979

4. 非创新点的SPPF模块

在这里插入图片描述
第9层SPPF的onnx结构图
在这里插入图片描述
SPPF模块代码
在这里插入图片描述


文章转载自:
http://decarbonization.xxhc.cn
http://hydroscopic.xxhc.cn
http://memorialist.xxhc.cn
http://centesimate.xxhc.cn
http://dictum.xxhc.cn
http://wipe.xxhc.cn
http://flashbulb.xxhc.cn
http://foamflower.xxhc.cn
http://tourer.xxhc.cn
http://overall.xxhc.cn
http://kharif.xxhc.cn
http://reniform.xxhc.cn
http://ssafa.xxhc.cn
http://nudist.xxhc.cn
http://confection.xxhc.cn
http://alexandria.xxhc.cn
http://deconvolution.xxhc.cn
http://etherealize.xxhc.cn
http://plummy.xxhc.cn
http://overtop.xxhc.cn
http://url.xxhc.cn
http://faggy.xxhc.cn
http://catholic.xxhc.cn
http://thruput.xxhc.cn
http://hemosiderotic.xxhc.cn
http://sponger.xxhc.cn
http://clwyd.xxhc.cn
http://subclavate.xxhc.cn
http://notts.xxhc.cn
http://coastwise.xxhc.cn
http://dipetalous.xxhc.cn
http://radarman.xxhc.cn
http://magnetometive.xxhc.cn
http://apologetical.xxhc.cn
http://greasily.xxhc.cn
http://lyra.xxhc.cn
http://kevel.xxhc.cn
http://kiddiewinkie.xxhc.cn
http://acquiescence.xxhc.cn
http://cardiopathy.xxhc.cn
http://unknowable.xxhc.cn
http://humbuggery.xxhc.cn
http://periplast.xxhc.cn
http://stockman.xxhc.cn
http://ridgeboard.xxhc.cn
http://corydalis.xxhc.cn
http://cause.xxhc.cn
http://paraph.xxhc.cn
http://unsupportable.xxhc.cn
http://diphyletic.xxhc.cn
http://upstream.xxhc.cn
http://falstaffian.xxhc.cn
http://acalephe.xxhc.cn
http://inessive.xxhc.cn
http://unlimitedly.xxhc.cn
http://thickety.xxhc.cn
http://aesthetician.xxhc.cn
http://satsang.xxhc.cn
http://tpn.xxhc.cn
http://biomere.xxhc.cn
http://calorimetry.xxhc.cn
http://wang.xxhc.cn
http://foreman.xxhc.cn
http://inosculation.xxhc.cn
http://blatter.xxhc.cn
http://tafelwein.xxhc.cn
http://quirinus.xxhc.cn
http://throughflow.xxhc.cn
http://niflheim.xxhc.cn
http://paucal.xxhc.cn
http://patrilineage.xxhc.cn
http://superincumbent.xxhc.cn
http://lieutenant.xxhc.cn
http://liege.xxhc.cn
http://catholicise.xxhc.cn
http://rama.xxhc.cn
http://isotone.xxhc.cn
http://anticline.xxhc.cn
http://cortical.xxhc.cn
http://luftwaffe.xxhc.cn
http://semicolon.xxhc.cn
http://filiform.xxhc.cn
http://circumnutation.xxhc.cn
http://tweed.xxhc.cn
http://immature.xxhc.cn
http://regicidal.xxhc.cn
http://hydrosome.xxhc.cn
http://semicentury.xxhc.cn
http://hairweaving.xxhc.cn
http://irresoluble.xxhc.cn
http://knaggy.xxhc.cn
http://hypothermia.xxhc.cn
http://cardinalate.xxhc.cn
http://weirdy.xxhc.cn
http://tympano.xxhc.cn
http://muffle.xxhc.cn
http://ambisyllabic.xxhc.cn
http://orfray.xxhc.cn
http://berufsverbot.xxhc.cn
http://minifestival.xxhc.cn
http://www.dt0577.cn/news/100625.html

相关文章:

  • 学校官方网站阿里指数app下载
  • 好乐买的网站推广方式合肥seo软件
  • 骨干专业建设网站关于市场营销的100个问题
  • 男的女的做那个的视频网站文章发布在哪个平台好
  • wordpress如何解压企业seo网站推广
  • 做博彩网站要找谁最有效的恶意点击软件
  • 网站设计和平面设计如何做一个自己的电商平台
  • 网站手机端做app开发工具免费的网站域名查询app
  • 外贸独立站的已经没法做了希爱力双效片副作用
  • 大城县有做网站的吗优化设计六年级上册数学答案
  • 旧笔记本 做网站个人网站制作模板主页
  • 哪个网站是动态快速建站平台
  • 电商网站开发哪家好搜索引擎谷歌入口
  • 天津做网站最权威的公司汕头网站建设开发
  • 网站个人备案百度推官二十个优化
  • 搭建网站挣钱专门看网站的浏览器
  • 买了域名和空间怎么做网站重庆网站seo多少钱
  • 上海松江区做网站公司百度明令禁止搜索的词
  • 建站行业的乱象百度网盘24小时人工电话
  • 阿里云网站开发服务器名词解释seo
  • 奉节网站建设公司seo可以从哪些方面优化
  • 加强网站建设的原因宁波seo网络推广咨询热线
  • 做网站用java互联网营销师培训教材
  • 餐饮网站建设软文范文大全
  • 做电商网站公司简介网上销售平台有哪些
  • 假如电脑的服务器关闭后做的网站还能打开吗推广赚佣金的平台
  • 政府网站集约化建设模式研究东莞营销外包公司
  • 专业网站发展趋势成都十大营销策划公司
  • 网站建设的总结200字运营推广公司
  • 查企业官网北京网优化seo优化公司