[Paper Review] DEYO: DETR with YOLO for End-to-End Object Detection
DEYO introduces a step-by-step training paradigm that combines a YOLO-based one-to-many branch with a DETR-like one-to-one branch to enable real-time, end-to-end object detection without extra data, achieving state-of-the-art speed-accuracy in real-time detectors.
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.
Motivation & Objective
- Motivate DETR limitations: reliance on ImageNet-pretrained backbones and unstable early-stage matching.
- Propose step-by-step training to pretrain the neck with a one-to-many detector and then train a lightweight end-to-end detector.
- Develop DEYO, a real-time end-to-end detector with a purely convolutional encoder and a transformer decoder.
- Show that DEYO achieves higher speed-accuracy than contemporary real-time detectors without extra data.
- Provide ablations to analyze the impact of neck pretraining, freezing strategy, and data augmentation.
Proposed method
- Stage 1: pretrain a classic detector with one-to-many matching to initialize backbone and neck.
- Stage 2: freeze backbone and neck of the end-to-end detector and train the decoder from scratch.
- Use a purely convolutional encoder (neck-pretrained features) with a transformer decoder for one-to-one predictions.
- Adopt a decoupled bounding-box and embedding generation strategy to allow efficient feature projection.
- Incorporate a CDN component similar to DINO to improve precision.
- Train DEYO on COCO without extra data and evaluate with 640 input size for real-time variants; report AP and FPS on a 8GB RTX 4060/RTX-T4 setup.
Experimental results
Research questions
- RQ1Can step-by-step training eliminate the need for additional training data while improving DETR-style detectors?
- RQ2Does pretraining the neck with a one-to-many detector (YOLO) yield superior multi-scale features for end-to-end DETR-based pipelines?
- RQ3How does freezing backbone/neck in the second stage affect stability and convergence of the decoder?
- RQ4What are the speed-accuracy trade-offs of DEYO variants compared to existing real-time detectors and DETR-based end-to-end models?
- RQ5Is it possible to achieve state-of-the-art real-time performance with a purely convolutional encoder and NMS-free one-to-one predictions?
Key findings
- DEYO surpasses existing real-time detectors in speed and accuracy without extra training data.
- DEYO-tiny achieves 37.6 AP at 497 FPS on T4; DEYO-X reaches 53.7 AP at 65 FPS.
- DEYO variants show strong performance on COCO val2017 and CrowdHuman, with significant gains over YOLOv8 in certain scales.
- Freezing the backbone/neck in stage 2 improves performance by about 1.1 AP compared to fine-tuning.
- Step-by-step training with a pre-trained neck provides essential multi-scale features; relying solely on a pre-trained backbone yields lower performance (68.3 AP without neck pretraining).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.