DEYO: DETR with YOLO for End-to-End Object Detection
Haodong Ouyang
TL;DR
DEYO tackles the dependence of DETR-based detectors on ImageNet pretraining and the instability of early bipartite matching by introducing step-by-step training: first pretrain a classic one-to-many detector to initialize the backbone and neck, then freeze them and train a lightweight end-to-end decoder. It fuses a YOLO-based one-to-many branch with a pure convolutional encoder and a Transformer-based decoder, enabling real-time end-to-end detection without NMS or extra data. The approach yields state-of-the-art real-time performance on COCO and competitive results on dense crowds datasets like CrowdHuman, while substantially reducing training costs (two-stage VRAM requirements of 16GB and 8GB). This work demonstrates a practical path to high-accuracy, fast detectors on custom datasets, with potential for further backbone/neck specialization and scaling strategies tailored to DEYO.
Abstract
The training paradigm of DETRs is heavily contingent upon pre-training their backbone on the ImageNet dataset. However, the limited supervisory signals provided by the image classification task and one-to-one matching strategy result in an inadequately pre-trained neck for DETRs. Additionally, the instability of matching in the early stages of training engenders inconsistencies in the optimization objectives of DETRs. To address these issues, we have devised an innovative training methodology termed step-by-step training. Specifically, in the first stage of training, we employ a classic detector, pre-trained with a one-to-many matching strategy, to initialize the backbone and neck of the end-to-end detector. In the second stage of training, we froze the backbone and neck of the end-to-end detector, necessitating the training of the decoder from scratch. Through the application of step-by-step training, we have introduced the first real-time end-to-end object detection model that utilizes a purely convolutional structure encoder, DETR with YOLO (DEYO). Without reliance on any supplementary training data, DEYO surpasses all existing real-time object detectors in both speed and accuracy. Moreover, the comprehensive DEYO series can complete its second-phase training on the COCO dataset using a single 8GB RTX 4060 GPU, significantly reducing the training expenditure. Source code and pre-trained models are available at https://github.com/ouyanghaodong/DEYO.
