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

UP-DETR:面向 Transformer 目标检测的无监督预训练

UP-DETR: Unsupervised Pre-training for Object Detection with Transformers

South China University of Technology(华南理工大学);Tencent Wechat AI(腾讯微信AI)

Zhigang Dai, Bolun Cai, Yugeng Lin, Junying Chen

AI总结:

本文提出 UP-DETR,通过随机查询块检测预训练任务、冻结 CNN 主干及注意力掩码,解决 DETR 数据需求大、收敛慢的问题,并提升多任务性能。

摘要:

用于目标检测的 DEtection TRansformer(DETR)通过 transformer 编码器-解码器架构取得了与 Faster R-CNN 相比具有竞争力的性能。然而,由于 transformer 是从零开始训练的,DETR 需要大规模训练数据,并且即使在 COCO 数据集上也需要极长的训练计划。受 transformer 预训练在自然语言处理中巨大成功的启发,我们在 Unsupervised Pre-training DETR(UP-DETR)中提出了一种名为随机查询块检测的新颖预训练任务。具体而言,我们从给定图像中随机裁剪图像块,然后将其作为查询输入解码器。模型经过预训练,以从输入图像中检测这些查询块。在预训练期间,我们解决了两个关键问题:多任务学习和多查询定位。(1)为了在预训练任务中权衡分类与定位偏好,我们发现冻结 CNN 主干是成功预训练 transformer 的先决条件。(2)为执行多查询定位,我们开发了带有注意力掩码的多查询块检测 UP-DETR。此外,UP-DETR 还为微调目标检测和单样本检测任务提供了统一视角。在实验中,UP-DETR 显著提升了 DETR 的性能,在目标检测、单样本检测和全景分割上实现了更快收敛和更高的平均精度。代码和预训练模型:https://github.com/dddzg/up-detr。

英文摘要:

DEtection TRansformer (DETR) for object detection reaches competitive performance compared with Faster R-CNN via a transformer encoder-decoder architecture. However, trained with scratch transformers, DETR needs large-scale training data and an extreme long training schedule even on COCO dataset. Inspired by the great success of pre-training transformers in natural language processing, we propose a novel pretext task named random query patch detection in Unsupervised Pre-training DETR (UP-DETR). Specifically, we randomly crop patches from the given image and then feed them as queries to the decoder. The model is pre-trained to detect these query patches from the input image. During the pre-training, we address two critical issues: multi-task learning and multi-query localization. (1) To trade off classification and localization preferences in the pretext task, we find that freezing the CNN backbone is the prerequisite for the success of pre-training transformers. (2) To perform multi-query localization, we develop UP-DETR with multi-query patch detection with attention mask. Besides, UP-DETR also provides a unified perspective for fine-tuning object detection and one-shot detection tasks. In our experiments, UP-DETR significantly boosts the performance of DETR with faster convergence and higher average precision on object detection, one-shot detection and panoptic segmentation. Code and pre-training models: https://github.com/dddzg/up-detr.

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

↑