arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.01904cs.CV
收藏

DETR不需要多尺度或局部性设计

DETR Doesn't Need Multi-Scale or Locality Design

Microsoft Research Asia(微软亚洲研究院)

Yutong Lin, Yuhui Yuan, Zheng Zhang, Chen Li, Nanning Zheng, Han Hu

AI总结:

本文提出一种保持单尺度和全局交叉注意力特性的改进型Plain-DETR,通过引入BoxRPB和MIM预训练弥补多尺度缺失,在Object365预训练下达到63.9 mAP,媲美依赖多尺度的SOTA检测器。

摘要:

本文提出了一种改进的DETR检测器,它保持了“plain”的特性:使用单尺度特征图和全局交叉注意力计算,无需特定的局部性约束,这与之前领先的基于DETR的检测器不同,后者将多尺度和局部性的架构归纳偏置重新引入到解码器中。我们展示了在plain设计中,两种简单的技术出人意料地有效,可以弥补多尺度特征图和局部性约束的缺失。第一种是添加到交叉注意力公式中的框到像素相对位置偏置(BoxRPB)项,它很好地引导每个查询关注相应的对象区域,同时也提供了编码灵活性。第二种是基于掩码图像建模(MIM)的主干预训练,它有助于学习具有细粒度定位能力的表示,并证明对于弥补对多尺度特征图的依赖至关重要。通过结合这些技术以及训练和问题形成方面的最新进展,改进的“plain”DETR相比原始DETR检测器表现出显著的改进。通过利用Object365数据集进行预训练,它使用Swin-L主干网络实现了63.9 mAP的精度,这与严重依赖多尺度特征图和基于区域的特征提取的最先进检测器相比极具竞争力。代码可在https://github.com/impiga/Plain-DETR获取。

英文摘要:

This paper presents an improved DETR detector that maintains a "plain" nature: using a single-scale feature map and global cross-attention calculations without specific locality constraints, in contrast to previous leading DETR-based detectors that reintroduce architectural inductive biases of multi-scale and locality into the decoder. We show that two simple technologies are surprisingly effective within a plain design to compensate for the lack of multi-scale feature maps and locality constraints. The first is a box-to-pixel relative position bias (BoxRPB) term added to the cross-attention formulation, which well guides each query to attend to the corresponding object region while also providing encoding flexibility. The second is masked image modeling (MIM)-based backbone pre-training which helps learn representation with fine-grained localization ability and proves crucial for remedying dependencies on the multi-scale feature maps. By incorporating these technologies and recent advancements in training and problem formation, the improved "plain" DETR showed exceptional improvements over the original DETR detector. By leveraging the Object365 dataset for pre-training, it achieved 63.9 mAP accuracy using a Swin-L backbone, which is highly competitive with state-of-the-art detectors which all heavily rely on multi-scale feature maps and region-based feature extraction. Code is available at https://github.com/impiga/Plain-DETR .

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑