DETR
6 memberslucid.models.vision.detrDETR — DEtection TRansformer (Carion et al., ECCV 2020).
Paper: "End-to-End Object Detection with Transformers"
Carion, Nicolas, et al. "End-to-End Object Detection with Transformers." Proceedings of the European Conference on Computer Vision, 2020, pp. 213–229.
DETR (DEtection TRansformer) reframes object detection as a direct set prediction problem. A CNN backbone produces a feature map , which is flattened, projected to , augmented with 2-D sinusoidal positional encodings, and fed into a standard Transformer encoder–decoder. The decoder additionally takes learnable object queries; each query produces one detection through FFN heads (class logits + normalised box with a sigmoid output).
Training enforces a one-to-one assignment between predictions and ground-truth objects via the Hungarian algorithm. The optimal permutation over slots minimises
where the per-pair cost combines class probability and a box-similarity term (an distance plus generalised IoU). Given the matched assignment, the final training loss is
Because each query is matched to at most one ground-truth object, DETR needs neither anchor priors, nor a separate proposal stage, nor non-maximum suppression at inference — duplicates are suppressed by the bipartite matching during training. The result is the first fully end-to-end detector with a Transformer trunk; later variants (Deformable DETR, DAB-DETR, DINO, …) build on this set-prediction framing while accelerating convergence.