Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Deep learning›DETR (Detection Transformer)
Machine learningDeep Learning, Object Detection

DETR (Detection Transformer)

End-to-End Object Detection with Transformers · Also known as: Detection Transformer, DETR

DETR (Detection Transformer) is an end-to-end framework for object detection introduced by Carion et al. in 2020 that reformulates detection as a direct set prediction problem using transformers. Unlike traditional approaches that use hand-crafted post-processing like non-maximum suppression, DETR treats object detection as a sequence-to-sequence problem where the transformer predicts all objects at once.

ScholarGate
  1. Machine learning
  2. v1
  3. 1 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

DETR (Detection Transformer)
Masked AutoencodersSegment Anything ModelSwin TransformerVision MambaFew-Shot Object DetectionLatent Diffusion ModelsNeural Radiance Fields (…

When to use it

DETR is particularly useful when simplicity and end-to-end trainability are priorities, as it eliminates anchor box design and non-maximum suppression. It performs well on datasets with clear object boundaries and is especially suitable for research and educational contexts where interpretability of the pipeline is valued. Traditional object detectors like Faster R-CNN may be preferred for production systems requiring maximum speed, as DETR has higher latency. DETR excels in scenarios where the number of objects is small and relatively fixed.

Strengths & limitations

Strengths
  • Eliminates hand-crafted components like anchor boxes and non-maximum suppression, simplifying the detection pipeline
  • End-to-end differentiable training enables joint optimization of all components
  • Natural formulation as set prediction enables flexible modifications for related tasks
  • Transformer architecture naturally captures long-range dependencies useful for detecting occluded objects
Limitations
  • Inference speed is slower than optimized CNN-based detectors like Faster R-CNN due to transformer complexity
  • Requires significantly more training iterations and careful hyperparameter tuning to achieve convergence
  • Performance on small objects is notably worse than traditional detectors, reflecting the limited resolution of CNN backbones

Frequently asked

Why does DETR not use anchor boxes like Faster R-CNN?

Anchor boxes are a manual design choice requiring careful tuning of aspect ratios and scales. DETR reformulates detection as direct set prediction, allowing the model to learn to detect objects of any size and aspect ratio. This removes a source of hyperparameter complexity and makes the method more generalizable.

What is bipartite matching and why is it necessary?

Bipartite matching assigns each ground-truth object to exactly one prediction using the Hungarian algorithm. This ensures no duplicate detections of the same object and no wasteful training on duplicate predictions. The matching cost combines classification and localization losses.

Why is DETR slower than Faster R-CNN?

DETR processes the entire image through a transformer decoder for each of 100+ object queries. Each query must attend to all encoder features, requiring O(N²) operations. Faster R-CNN uses Region Proposal Networks that are more computationally efficient. Recent variants like Deformable DETR address this with sparse attention.

Sources

  1. Carion, N., Massa, F., Synnaeve, G., Usunier, N., Kirillov, A., & Zagoruyko, S. (2020). End-to-end object detection with transformers. In European Conference on Computer Vision (pp. 213-229). Springer, Cham. DOI: 10.1007/978-3-030-58452-8_13 ↗

How to cite this page

ScholarGate. (2026, June 3). End-to-End Object Detection with Transformers. ScholarGate. https://scholargate.app/en/deep-learning/detr

Related methods

Masked AutoencodersSegment Anything ModelSwin TransformerVision Mamba

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Masked AutoencodersDeep learning↔ compare
  • Segment Anything ModelDeep learning↔ compare
  • Swin TransformerDeep learning↔ compare
  • Vision MambaDeep learning↔ compare
Compare side by side →

Referenced by

Few-Shot Object DetectionLatent Diffusion ModelsNeural Radiance Fields (NeRF)Segment Anything ModelSwin Transformer

Similar methods

Object DetectionSelf-supervised Object DetectionSwin TransformerFaster R-CNNYOLOMultimodal Object DetectionMultimodal Vision TransformerFew-Shot Object Detection

Related reference concepts

Object Recognition and DetectionComputer VisionSequence-to-Sequence Models and TransformersImage SegmentationFeature Detection and DescriptionEdge and Contour Detection

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — DETR (Detection Transformer) (End-to-End Object Detection with Transformers). Retrieved 2026-07-21 from https://scholargate.app/en/deep-learning/detr · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Nicolas Carion
Subfamily
Deep Learning, Object Detection
Year
2020
Type
Neural network architecture
Related methods
Masked AutoencodersSegment Anything ModelSwin TransformerVision Mamba
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account