DETR and DINO-DETR
What it is
Detection as set prediction: a transformer decoder with learned object queries, matched by Hungarian loss. No anchors, no NMS.
When to use it
Clean, end-to-end detection and modern detection/SAM-style pipelines.
Caveats
The original DETR converges very slowly and is weak on small objects; later variants (Deformable DETR, DN-DETR, DINO) fix much of this at the cost of added complexity. Training is heavy in compute and memory compared with one-stage CNN detectors.
Key ideas
- Treats detection as set prediction: a fixed set of object queries, each outputting one box
- Hungarian matching pairs predictions with ground truth, so no anchors and no non-maximum suppression
- DINO adds denoising training and better query initialization for faster convergence
Related architectures
Original paper
End-to-End Object Detection with Transformers (2020, arXiv)