Visual Transformer

Deformable DETR

Motivation

  1. DETR对于小物体的检测能力较差。现代的目标检测器用高像素的图像来检测小物体,但是使用高像素图像会导致DETR中encoder的计算复杂度增高。 O ( s i z e 3 ) O(size^{3}) O(size3)
  2. DETR需要更多的训练轮次来收敛,收敛速度较慢。For example,在训练初始,cross-attention模块在整个特征图谱上都作attention,而在训练快结束时,注意力图谱已经被学习得非常稀疏,仅仅关注物体存在的部分。DETR需要训练很久来得到这么大的变化。

Deformable Attention Module

主要存在的问题:

The core issue of applying Transformer attention on image feature maps is that it would look over all possible spatial locations.

而Deformable Attention Module

Only attends to a small set of key sampling points around a reference point.

即对于每个query,只在关键点附近采样固定数量的keys

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值