Papers / Vision
DETR (2020)
End-to-End Object Detection with Transformers
Framed object detection as direct set prediction with a Transformer, dropping anchors and non-maximum suppression.
Why it matters
For seven years every major detector relied on hand-designed anchor boxes, label-assignment rules and non-maximum suppression. DETR replaced the entire pipeline with a standard Transformer and a set loss whose inference fits in fifty lines of PyTorch, kicking off the line of Transformer detectors from Deformable DETR to RT-DETR.
- Year
- 2020
- Authors
- Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, Sergey Zagoruyko
- Venue
- ECCV 2020
- Data
- MS COCO
The idea
Pass CNN feature maps into a Transformer encoder–decoder together with a fixed set of learned object queries that attend to the image and to one another, outputting all boxes and classes in parallel. During training, Hungarian bipartite matching assigns each ground-truth object to a unique prediction, so the model learns not to emit duplicates and needs no NMS post-processing.
The result
42.0 AP on COCO val2017 at 28 frames per second with ResNet-50 (44.9 AP with ResNet-101-DC5), matching a heavily tuned Faster R-CNN-FPN baseline while clearly ahead on large objects.
The data
Builds on
- Faster R-CNN (2015): Replaced the slow external region proposer with a small network that shares the detector's features.
- Transformer (2017): A translation model built only from attention, and the architecture behind every large language model since.
- ResNet (2015): Skip connections that let networks grow from about 20 layers to more than 150.
Led to
- Mask2Former (2021): Unified semantic, instance and panoptic segmentation into one mask-predicting Transformer with masked cross-attention.
- SAM (2023): A model that cuts out whatever you point at, in any image, trained on a billion masks.




