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

Anchor DETR:基于transformer的目标检测查询设计

Anchor DETR: Query Design for Transformer-Based Object Detection

MEGVII Technology(旷视科技)

Yingming Wang, Xiangyu Zhang, Tong Yang, Jian Sun

摘要:

在本文中,我们提出了一种新的查询设计的transformer为基础的目标检测。在以前的基于transformer的检测器中,对象查询是一组学习的嵌入。然而,每个学习的嵌入没有明确的物理意义,我们无法解释它将集中在哪里。由于每个对象查询的预测槽没有特定的模式,因此很难优化。换句话说,每个对象查询将不关注特定区域。为了解决这些问题,在我们的查询设计中,对象查询是基于锚点,这是广泛使用的基于CNN的检测器。因此,每个对象查询都关注锚点附近的对象。此外,我们的查询设计可以预测多个对象在一个位置,以解决困难:“一个区域,多个对象”。此外,我们还设计了一个注意变量,它可以减少内存开销,同时达到类似或更好的性能比标准的注意在DETR。由于查询设计和注意力变量,我们称之为锚DETR的检测器可以实现更好的性能,并且比DETR运行得更快,训练次数少10 $\times$。例如,当使用ResNet 50-DC 5功能训练50个epoch时,它在MSCOCO数据集上实现了44.2 AP和19 FPS。在MSCOCO基准测试上的大量实验证明了所提方法的有效性。代码可在\url{https://github.com/megvii-research/AnchorDETR}上获得。

英文摘要:

In this paper, we propose a novel query design for the transformer-based object detection. In previous transformer-based detectors, the object queries are a set of learned embeddings. However, each learned embedding does not have an explicit physical meaning and we cannot explain where it will focus on. It is difficult to optimize as the prediction slot of each object query does not have a specific mode. In other words, each object query will not focus on a specific region. To solved these problems, in our query design, object queries are based on anchor points, which are widely used in CNN-based detectors. So each object query focuses on the objects near the anchor point. Moreover, our query design can predict multiple objects at one position to solve the difficulty: "one region, multiple objects". In addition, we design an attention variant, which can reduce the memory cost while achieving similar or better performance than the standard attention in DETR. Thanks to the query design and the attention variant, the proposed detector that we called Anchor DETR, can achieve better performance and run faster than the DETR with 10$\times$ fewer training epochs. For example, it achieves 44.2 AP with 19 FPS on the MSCOCO dataset when using the ResNet50-DC5 feature for training 50 epochs. Extensive experiments on the MSCOCO benchmark prove the effectiveness of the proposed methods. Code is available at \url{https://github.com/megvii-research/AnchorDETR}.

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

↑