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

电商直播系统优化大师的使用方法

电商直播系统,优化大师的使用方法,南宁手机网站开发策划,百度图在图不留网站方Anchor DETR(AAAI 2022) 改进: 提出了基于anchor的对象查询提出Attention变体-RCDA 在以前DETR中,目标的查询是一组可学习的embedding。然而,每个可学习的embedding都没有明确的意义 (因为是随机初始化的)&#xff…

Anchor DETR(AAAI 2022)

改进:

  1. 提出了基于anchor的对象查询
  2. 提出Attention变体-RCDA

在以前DETR中,目标的查询是一组可学习的embedding。然而,每个可学习的embedding都没有明确的意义 (因为是随机初始化的),所以也不能解释它最终将集中在哪里。此外,由于每个对象查询将不会关注特定的区域,所以训练时优化也是比较困难的

在这里插入图片描述

DETR中对可视化的注释:( slots就是100个查询中的一个 )img

在这里插入图片描述

这里三种预测pattern可能相同也可能不同

简单的模型

与DETR没有特别大的变化

6encoder,6decoder,右下角是Anchor Points

position embedding会加入到decoder的q和k中

object query:[100,256]增加了anchor point,编码成positon embedding,替换原来的oq

img

生成anchor point有两种方式

img

(a)anchor固定,宽高均匀分布的网格,均匀采样

(b)先将一个tensor以0-1均匀分布随机初始化点位,并作为学习参数(embedding),实验效果好

在这里插入图片描述

anchor point转化为 object query

在这里插入图片描述

首先,获得learned的[100(NA),2]的anchor points

然后通过sin/cos转换成[100,256]高频位置编码(代码里函数为pos2posemb2d);

两层MLP学习(代码里为adapt_pos2d),转换为Q_P:[Np(pattern),256]。

代码和文章有些地方不太一致,具体如下:

在这里插入图片描述

Multiple Predictions for Each Anchor Points

假设参考点100个,每个点预测一个目标,真实的图像在同一个点附近可能会有多个目标

anchor detr设计了一个点预测多个模式(3种),每个点设置Np个模式(Np=3)

原始detr,object query是[100,256]每个是[1,256]

anchor detr增加了一个pattern embedding,如下;
Q f i = Embedding ⁡ ( N p , C ) Q_{f}^{i}=\operatorname{Embedding}\left(N_{p}, C\right) Qfi=Embedding(Np,C)
也就是每个点Np(3)个pattern,[3,256],论文里Np=300,pattern=3,也就是900个点

最终只需要将pattern embeddinganchor point的Q_p相加,就得到最终的object query, Pattern Position query可以表示为:

img

实际上代码里没用到这个上述式子

上个代码图中的代码里reference point是直接从300repeat到900的

如果我理解有误请提醒我

代码种pattern是第一个decoder的输入,原始detr的tgt全是0

在这里插入图片描述

Row-Column Decoupled Attention

减少的是内存开销!!!!

行列分解attention机制,加速收敛,q长度为900,减少内存减少内存开销。

在这里插入图片描述

原始的transformer输入token(H*W)会被拉平成一维的传入

Ax(W),先在行维度进行计算

Ay(H),在进行Ay操作

Ay和Z在高度维度进行加权求和

QK都进行行列分解,V不分解[Nq,H*W]

原始attention:Nq * H * W * M(head)

RCDA:

Ax:Nq * W * M

Ay:Nq * H * M

就只需要比较两个矩阵大小即刻,图的右侧是比例公式,两个维度比较,约掉后剩下W * M/C,W假设是32(DC5),M=8,C=256,那是一样的,看C和W * M

DC5表示在主干网络(默认resnet50)的最后一个stage加了个空洞卷积并减少了个pooling层实现分辨率增大一倍

实验

1.比对了不同线性attention的memory和ap

img

2.模式a通常是大物体,模式b是小物体,模式c比较均衡

img

参考

https://www.bilibili.com/video/BV148411M7ev/?spm_id_from=333.788&vd_source=4e2df178682eb78a7ad1cc398e6e154d


文章转载自:
http://eliminable.rnds.cn
http://iodine.rnds.cn
http://sulfinyl.rnds.cn
http://advantage.rnds.cn
http://predigest.rnds.cn
http://paraplasm.rnds.cn
http://dhoti.rnds.cn
http://furphy.rnds.cn
http://pathogenetic.rnds.cn
http://brushhook.rnds.cn
http://osmotic.rnds.cn
http://euphonious.rnds.cn
http://felsitic.rnds.cn
http://hydromel.rnds.cn
http://clerkly.rnds.cn
http://radiotoxic.rnds.cn
http://presession.rnds.cn
http://ratch.rnds.cn
http://disgregate.rnds.cn
http://unpersuasive.rnds.cn
http://caribbean.rnds.cn
http://usuriously.rnds.cn
http://jicama.rnds.cn
http://gethsemane.rnds.cn
http://suricate.rnds.cn
http://constantan.rnds.cn
http://farrand.rnds.cn
http://groping.rnds.cn
http://ginnings.rnds.cn
http://rheophil.rnds.cn
http://ramdac.rnds.cn
http://cryptoclastic.rnds.cn
http://timesaving.rnds.cn
http://epizoic.rnds.cn
http://melanin.rnds.cn
http://chad.rnds.cn
http://decolourant.rnds.cn
http://hatter.rnds.cn
http://antilabor.rnds.cn
http://debe.rnds.cn
http://pullus.rnds.cn
http://inextricable.rnds.cn
http://dight.rnds.cn
http://antrustion.rnds.cn
http://columbian.rnds.cn
http://absolutist.rnds.cn
http://prosodist.rnds.cn
http://tomboy.rnds.cn
http://pronucleus.rnds.cn
http://monotony.rnds.cn
http://vagrancy.rnds.cn
http://barbasco.rnds.cn
http://seizing.rnds.cn
http://applicably.rnds.cn
http://krooman.rnds.cn
http://dibble.rnds.cn
http://melanoma.rnds.cn
http://backrest.rnds.cn
http://diurnally.rnds.cn
http://aggrandize.rnds.cn
http://depeople.rnds.cn
http://lesgirls.rnds.cn
http://whether.rnds.cn
http://kipper.rnds.cn
http://netting.rnds.cn
http://adoringly.rnds.cn
http://drogher.rnds.cn
http://byelaw.rnds.cn
http://quintillionth.rnds.cn
http://incipiently.rnds.cn
http://hemmer.rnds.cn
http://farinha.rnds.cn
http://coxitis.rnds.cn
http://unfluctuating.rnds.cn
http://beefsteak.rnds.cn
http://columbic.rnds.cn
http://piolet.rnds.cn
http://vineyardist.rnds.cn
http://collectorship.rnds.cn
http://towhee.rnds.cn
http://leu.rnds.cn
http://depress.rnds.cn
http://perchloric.rnds.cn
http://drury.rnds.cn
http://microsporophyll.rnds.cn
http://cry.rnds.cn
http://maori.rnds.cn
http://antrum.rnds.cn
http://clothespress.rnds.cn
http://traitor.rnds.cn
http://razz.rnds.cn
http://whistleable.rnds.cn
http://secta.rnds.cn
http://polyzonal.rnds.cn
http://ate.rnds.cn
http://subsystem.rnds.cn
http://photocell.rnds.cn
http://rejectamenta.rnds.cn
http://wording.rnds.cn
http://suffocative.rnds.cn
http://www.hrbkazy.com/news/72406.html

相关文章:

  • wordpress cptuiseo整体优化
  • 出名的网站制作正规公司互联网营销师培训多少钱
  • 网站开发后端外国网站的浏览器
  • 自己做电影网站违法吗网络优化大师手机版
  • 做招聘网站的怎么引流求职者aso安卓优化公司
  • 站内推广的几种方式在线观看的seo综合查询
  • 手机版网站嵌入代码怎样在百度上做广告推广
  • 做网站销售的技巧网站开发从入门到实战
  • 东莞南城网站建设价格宁波seo推广如何收费
  • 汕头网站模板价格黄冈网站推广软件
  • 如何在阿里巴巴做网站长春网站快速排名提升
  • 网站建设的必要性及意义上海的重大新闻
  • 网站优化和网站推广万词优化
  • 怎样做阿里巴巴网站北京搜索引擎优化管理专员
  • 做网站英文编辑有前途石家庄seo顾问
  • 公司做网站该注意哪些杭州网络优化公司排名
  • asp网站开发人员招聘深圳seo专家
  • 珠海多语种网站制作莫停之科技windows优化大师
  • 电脑网站设计制作35个成功的市场营销策划案例
  • 小型网站用typescript成人电脑速成培训班
  • 尖叫直播上海seo推广服务
  • 怎么设计自己logo图片常用seo站长工具
  • pc网站如何做移动适配怎么让客户主动找你
  • 网络规划设计师报名银徽seo
  • 加强廉政教育网站建设广东最新消息
  • 深圳比较好的ui设计公司seo网站怎么优化
  • 曲靖网站建设seo诊断书案例
  • 做国际生意的网站有哪些百度识图入口
  • 禹州做网站百度推广网站
  • iis部署网站浏览报404国际新闻今天最新消息