DETRs Beat YOLOs on Real-time Object Detection (RT-DETR)

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/20

flashcard set

Earn XP

Description and Tags

Vocabulary practice flashcards covering the key concepts, modules, equations, figures, and benchmark metrics of RT-DETR.

21 Terms

1
New cards

RT-DETR (Real-Time DEtection TRansformer)

The first real-time end-to-end object detector based on Transformer architecture that matches or surpasses YOLO models in both speed and accuracy while eliminating the need for NMS post-processing.

2
New cards

Non-Maximum Suppression (NMS)

A heuristic post-processing algorithm used in YOLO detectors to filter out redundant overlapping bounding boxes, which introduces hyperparameter sensitivity and inference latency bottlenecks.

3
New cards
<p>Box Filtering Sensitivity in NMS</p>

Box Filtering Sensitivity in NMS

The characteristic observed in YOLO models where lowering the confidence threshold from 0.250.25 to 0.0010.001 causes remaining candidate boxes to explode (over 90009000 for YOLOv5 and over 35003500 for YOLOv8), significantly increasing NMS execution time.

4
New cards

End-to-end Speed Benchmark

A standardized benchmarking method conducted on COCO val2017 using TensorRT FP16 on an NVIDIA T4 GPU that evaluates detector runtime by including NMS post-processing execution time while excluding I/O and MemoryCopy operations.

5
New cards

Efficient Hybrid Encoder

An encoder architecture designed for RT-DETR that eliminates multi-scale computational bottlenecks by decoupling intra-scale feature interaction and cross-scale feature fusion.

6
New cards
<p>Hybrid Encoder Structural Variants (A through E)</p>

Hybrid Encoder Structural Variants (A through E)

A series of ablation structures proving that decoupling intra-scale interaction (SSE) and cross-scale fusion (CSF) into separate Attention-based (AIFI) and CNN-based (CCFF) modules reduces latency by 24%24\% while increasing AP by 1.5%1.5\% compared to coupled variants.

7
New cards

Attention-based Intra-scale Feature Interaction (AIFI)

A component in the hybrid encoder that applies single-scale Transformer self-attention exclusively to high-level features (S5S_5) because high-level features contain rich semantic concepts, avoiding unnecessary computational redundancy on lower-level features.

8
New cards

CNN-based Cross-scale Feature Fusion (CCFF)

A module in RT-DETR's hybrid encoder that optimizes cross-scale feature integration by inserting convolutional fusion blocks composed of 1×11 \times 1 convolutions and RepBlocks along the fusion path.

9
New cards
<p>CCFF Fusion Block</p>

CCFF Fusion Block

A structural block within CCFF containing two branches with 1×11 \times 1 convolutions, one equipped with NN RepBlocks, whose outputs are combined via element-wise addition before flattening.

10
New cards

Uncertainty-minimal Query Selection

A query initialization method that explicitly models epistemic uncertainty as the discrepancy between classification and localization prediction distributions, selecting features with minimal uncertainty as decoder initial queries.

11
New cards

Feature Uncertainty (U(X^)U(\hat{X}))

A metric formulated as U(X^)=∥P(X^)−C(X^)∥U(\hat{X}) = \|P(\hat{X}) - C(\hat{X})\|, where PP and CC denote the predicted localization and classification distributions for encoder feature X^\hat{X}, integrated into the training loss function.

12
New cards
<p>Query Quality Distribution Comparison</p>

Query Quality Distribution Comparison

A distribution visualization demonstrating that uncertainty-minimal query selection produces 120%120\% more high-quality queries with both classification and IoU scores above 0.50.5 (concentrated in the top right) compared to vanilla query selection.

13
New cards

Flexible Speed Tuning

An operational capability in RT-DETR allowing users to trade small amounts of accuracy for higher inference speed by simply reducing the number of active decoder layers during inference without retraining.

14
New cards

Bipartite Matching

A direct set-prediction assignment algorithm used by DETR models that forces a one-to-one match between ground truth objects and model predictions, naturally eliminating duplicated boxes and the need for NMS.

15
New cards

RT-DETR-R50

The ResNet-50 backed RT-DETR model achieving 53.1%53.1\% AP on COCO val2017 and 108 FPS108\text{ FPS} on a T4 GPU, outperforming DINO-Deformable-DETR-R50 by 2.2%2.2\% AP in accuracy and approximately 21×21\times in FPS.

16
New cards

RT-DETR-R101

The ResNet-101 backed RT-DETR model achieving 54.3%54.3\% AP on COCO val2017 and 74 FPS74\text{ FPS} on a T4 GPU, exceeding comparable large/extra-large real-time detectors.

17
New cards

Scaled RT-DETR

Variants of RT-DETR constructed with smaller backbones (ResNet-18, ResNet-34) and halved RepBlock channel widths that outperform small (SS) and medium (MM) YOLO models in both speed and accuracy.

18
New cards

Objects365 Pre-training

A large-scale pre-training phase for 1212 epochs on the Objects365 dataset that elevates fine-tuned COCO val2017 AP by 2.7%2.7\% on RT-DETR-R18, 2.2%2.2\% on RT-DETR-R50 (55.3%55.3\% AP), and 1.9%1.9\% on RT-DETR-R101 (56.2%56.2\% AP).

19
New cards

Small Object Detection Limitation

A known limitation in RT-DETR where performance on small objects (APSAP_S) remains slightly inferior to advanced YOLO detectors (0.5%0.5\% lower than YOLOv8-L and 0.9%0.9\% lower than YOLOv7-X).

20
New cards
<p>RT-DETR Overall Architecture</p>

RT-DETR Overall Architecture

The complete network layout comprising a CNN backbone extracting stages {S3,S4,S5}\{S_3, S_4, S_5\}, an Efficient Hybrid Encoder (AIFI and CCFF), Uncertainty-minimal Query Selection, and a Transformer Decoder with auxiliary prediction heads.

21
New cards
<p>End-to-end Latency vs. COCO AP Trade-off</p>

End-to-end Latency vs. COCO AP Trade-off

The Pareto-optimal trade-off frontier illustrating RT-DETR models consistently operating above and to the left of YOLOv5, PP-YOLOE, YOLOv6, YOLOv7, and YOLOv8 on the MS COCO dataset under TensorRT FP16 on a T4 GPU.