Skip to content

Brief History of CV

Key Takeaways

  • Until about 2012, vision systems were built from hand-designed features (edges, gradients, keypoints) fed to a small classifier; deep convolutional networks replaced the hand-design by learning the features from labeled images
  • From 2013 to 2019, object detection became fast by sharing computation: R-CNN ran a network on about 2,000 crops per image, Fast R-CNN shared one pass, Faster R-CNN learned the proposals, and YOLO and SSD dropped the proposal step altogether
  • Almost all of those detectors still ended in non-maximum suppression (NMS), and most of them from Faster R-CNN on also used hand-designed anchor boxes; these are the parts detection transformers removed
  • Vision transformers let every part of an image look at every other part in a single layer; DETR turned that into a detector with no NMS, and Deformable DETR, DINO, RT-DETR and LW-DETR made it fast and accurate
  • RF-DETR combines the two lineages that matter most today: a DETR-style set-prediction decoder and a pretrained vision transformer (DINOv2 for Nano to 2XLarge) as its backbone

This page tells the story in three roughly equal parts: the basics of computer vision, early object detection, and vision transformers. Each part ends where the next one begins. If you want the mechanics of RF-DETR itself, go to How It Works; if you only want numbers, go to Benchmarks.

Animated timeline in four lines. Line 1, classical vision, 1998 to 2012: LeNet-5, SIFT, Viola-Jones, HOG, the ImageNet challenge and AlexNet. Line 2, early object detection, 2013 to 2019: R-CNN (learned features), Faster R-CNN (learned proposals), YOLO (no proposal step), Mask R-CNN, RetinaNet, and FCOS with CenterNet (no anchors). The path then forks into two parallel lines on one shared year axis: line 3, later classical detectors, with YOLOv10 (no NMS) and YOLOv12 (attention-centric), and line 4, transformer detectors, from the 2017 Transformer through DETR (no NMS, no anchors), Deformable DETR, ViT, DINO, DINOv2, RT-DETR, LW-DETR and D-FINE to RF-DETR in 2025. Diamonds mark breaks where a hand-made part was dropped or replaced by something learned. The playhead rests on each early milestone and each diamond while a small pop-up explains it, then the pop-up shrinks back and the timeline continues.

How years are counted

The path forks after early object detection. The two lines below the fork share one year axis, so what happened in the classical line and in the transformer line in the same year sits one above the other; each diamond marks a break, a model that dropped a hand-made part or replaced it with something learned, and the timeline pauses at each diamond and at each early milestone for a short pop-up with a tiny schematic that points to the matching explanation further down the page. For recent papers the year is that of the first public version on arXiv, the same convention as the DETR family table in How It Works. Journal and conference dates can be a year later; R-CNN, for instance, appeared on arXiv in November 2013 and at CVPR in 2014.

Part 1: Seeing before learning (until 2012)

What a computer actually sees

To a computer, a photo is a grid of numbers: one value per pixel for a grayscale image, three (red, green, blue) for a color one. Nothing in those numbers says "cat". Computer vision is the work of turning that grid into something useful, and three tasks carry most of the field:

  • Classification answers "what is in this image?" with one label for the whole picture.
  • Object detection answers "what is where?" with a box and a label for every object. This is the task RF-DETR is built for.
  • Segmentation answers "which pixels belong to which object?" with a mask per object. RF-DETR also does this, and keypoints too.

Detection is scored with two ideas worth knowing. IoU (intersection over union) measures how well a predicted box overlaps a true one, from 0 for no overlap to 1 for a perfect match. AP (average precision) summarizes how well a detector's ranked predictions match the true objects; How AP is computed walks through it.

Filters, edges and hand-made features

The first useful idea was the filter. Slide a small grid of weights, a kernel, over an image, multiply it with the pixels underneath, add the products and write the result into an output map. Different weights respond to different patterns, and the simplest ones respond to edges, the borders where brightness changes.

Animated example of a convolution. A 3 by 3 kernel with weights minus 1, 0 and 1 slides over a 6 by 6 image that is dark on its left half and bright on its right half. The output map is 0 on flat areas and 27 in the two columns whose window straddles the border, so the edge shows up as a bright stripe.

Two properties of a filter matter for everything that follows. The same nine weights are reused at every position, so a pattern is found wherever it appears. And each output value depends only on a small neighborhood, so a single filter knows nothing about the rest of the image. Keep the second point in mind: it comes back in Part 3.

For roughly two decades the recipe was to design the filters by hand and stack a learned classifier on top:

The detectors among them (Viola–Jones, HOG and deformable part models) worked the same way: slide a window over the image at many positions and sizes, score every window, keep the good ones. Hold on to that "score everything, then filter" pattern too.

Benchmarks and the return of neural networks

Progress needed a common yardstick. The PASCAL VOC challenges ran from 2005 to 2012 and standardized datasets, annotations and evaluation. The ImageNet challenge, run annually from 2010, did the same at the scale of millions of images, and COCO (2014) added complex everyday scenes with 91 proposed object categories, of which the 2014 release has per-instance segmentation masks for 80. COCO AP is still the headline detection metric.

Neural networks were older than any of this. LeNet-5 (1998) was an early convolutional network trained with back-propagation, built for document recognition such as handwritten digits. Such networks needed data and compute that did not yet exist at scale. By 2012 both existed: ImageNet supplied the data and GPUs the compute, and AlexNet used them, a deep convolutional network trained on GPUs with five convolutional layers and 60 million parameters, trained on the 1.3 million images of the ImageNet 2010 training set. It reached 39.7% top-1 and 18.9% top-5 error on that challenge's test data, considerably better than the previous state of the art. The difference from the filters above is that AlexNet learned its kernels from the labeled images instead of having them designed by hand.

That is the turning point of Part 1. Features stopped being something people wrote down and became something a network learned, and the next question was how to find objects with such a network.

Part 2: Early object detection with CNNs (2013 to 2019)

From crops to one pass

A classification network answers one question per image, so the first deep detectors reduced detection to many classification questions. R-CNN (2013) extracts about 2,000 bottom-up region proposals per image, runs a CNN on each one and classifies the result. It improved mean average precision by more than 30% relative to the previous best on PASCAL VOC 2012, reaching 53.3%. It was also slow, because the network ran about 2,000 times per image.

The next two models removed that cost step by step:

  • Fast R-CNN runs the network once per image and lets every proposal read from the shared features. With the VGG16 network it trains 9 times faster than R-CNN and tests 146 times faster, or 213 times faster with truncated SVD compression of its fully connected layers; the test-time figures exclude the time spent generating proposals.
  • Faster R-CNN replaces the separate proposal algorithm with a Region Proposal Network that shares the image features, so proposals become nearly free. The network scores anchors: hand-designed boxes of fixed shapes and scales at every position. It ran at 5 frames per second on a GPU and its paper reports that it was the foundation of the first-place entries in several tracks of the 2015 ILSVRC and COCO competitions.

Animated comparison of four detectors. R-CNN runs a CNN on each of about 2,000 proposals. Fast R-CNN runs it once and reads proposals from the shared features, 146 times faster than R-CNN at test time with VGG16 (213 times with truncated SVD), excluding proposal generation. Faster R-CNN also learns the proposals and runs at 5 frames per second. YOLO needs no proposal step and runs at 45 frames per second. All four still end with non-maximum suppression.

One-stage detectors: the grid and the anchor

The other direction was to drop proposals altogether. YOLO (2015) framed detection as a regression problem: one network looks at the full image once and predicts boxes and class probabilities directly. The base model ran in real time at 45 frames per second and a smaller version at 155. SSD (2015) did the same with default boxes, a fixed set of boxes of several shapes and scales at every position of several feature maps, and reached 72.1% mAP on VOC2007 at 58 frames per second for 300 × 300 inputs.

Those default boxes are SSD's version of the anchors that Faster R-CNN had introduced months earlier, and anchors became one of two hand-made parts that most later detectors shared. The second is non-maximum suppression (NMS). Because a grid or an anchor set predicts a box at many neighboring positions, several of them fire on the same object, and a rule has to remove the duplicates: keep the highest-scoring box, delete every box that overlaps it by more than a threshold, repeat. How It Works explains why that threshold is a knob you must tune and why the network is never trained to avoid duplicates.

Refinements, 2016 to 2019

The following years polished the recipe rather than replacing it:

  • ResNet (2015) made much deeper networks trainable through residual connections, and an ensemble of residual networks up to 152 layers deep won the ILSVRC 2015 classification task. Deeper backbones lifted the detectors built on them.
  • FPN (2016) built a feature pyramid with lateral connections so that objects of all sizes are detected from suitable feature maps at marginal extra cost.
  • RetinaNet (2017) found that the central reason one-stage detectors trailed two-stage ones was the extreme imbalance between background and object examples during training. Its focal loss down-weights the easy background examples, and RetinaNet matched the speed of one-stage detectors while surpassing the accuracy of the two-stage detectors of its time.
  • Mask R-CNN (2017) added a mask branch to Faster R-CNN, turning a detector into an instance segmenter.
  • FCOS and CenterNet (2019) removed anchors. FCOS predicts per pixel with no anchor boxes and no proposals, and CenterNet models each object as a single center point and replaces IoU-based NMS with a simple 3 × 3 max-pooling peak search, though that is still a hand-written rule.

By 2019 detection was accurate and fast, and the YOLO family kept pushing the speed-accuracy frontier for years. But almost every model in this part still ended its pipeline with a hand-written duplicate-removal rule, usually NMS, and a network that must produce duplicates and have them removed by a hand-written rule is an awkward thing to train and deploy. The next idea came from somewhere else entirely.

Part 3: Vision transformers and detection (2017 to 2025)

Attention arrives from language

In 2017 the Transformer replaced recurrence and convolution in machine-translation models with attention alone: every element of a sequence compares itself with every other element and mixes in the ones that matter. Unlike a convolution, it is not limited to a small neighborhood.

Animated one-dimensional illustration with nine tokens. Stacked 3-wide convolution layers let the highlighted token see 3, 5, 7 and finally all 9 tokens after four layers, while one self-attention layer connects it to all 9 at once.

The Vision Transformer (ViT, 2020) applied it to images with almost no change: cut the image into 16 × 16 patches, treat each patch as a "word" and feed the sequence to a standard transformer. Pre-trained on large amounts of data, ViT attained excellent results compared with state-of-the-art convolutional networks while requiring substantially fewer computational resources to train. The cost is that attention compares every pair of tokens, so it grows with the square of the number of tokens, and the later vision transformers are largely about managing that cost: Swin (2021) restricts attention to shifted local windows to get a hierarchical, general-purpose backbone that reached 58.7 box AP on COCO test-dev, and ViTDet (2022) showed that a plain ViT, without a hierarchical redesign, works as a detection backbone with only a simple feature pyramid.

DETR: detection without anchors and NMS

Attention also changed the head of the detector. DETR (2020) treats detection as direct set prediction. A fixed set of learned object queries attends to the image, and each query outputs one box or "no object". A set-based loss with bipartite matching assigns each true object to exactly one query during training, so duplicates are penalized and the model learns not to produce them. The abstract says this removes the need for hand-designed components such as NMS and anchor generation, while matching the accuracy and run time of a well-tuned Faster R-CNN on COCO.

A cost matrix scores every pair of predicted query and ground-truth object. The Hungarian algorithm picks the cheapest assignment in which each object gets exactly one query. Query 3 is close to object A but loses to query 2, so it is trained to predict no object.

DETR had real problems: slow convergence and limited feature resolution, both traced to attention over whole feature maps. Deformable DETR fixed them by letting each query attend to only a small set of sampling points around a reference, which improved results, especially for small objects, with 10 times fewer training epochs.

Left: in the original DETR every query attends to every location of the feature map. Right: in deformable attention a query reads a handful of learned sampling points around its reference box, and each decoder layer predicts a box from that same reference.

Real time and better pre-training

Two lines of work then made detection transformers practical:

  • Better training and faster decoders. DINO (2022) improved DETR training with contrastive denoising, mixed query selection and a look-forward-twice box scheme, reaching 49.4 AP in 12 epochs with a ResNet-50 backbone. RT-DETR (2023) observed that NMS hurts the speed and accuracy of YOLO detectors and built what its authors describe as the first real-time end-to-end detector, with an efficient hybrid encoder; its R50 model reaches 53.1% AP at 108 FPS on a T4 GPU. YOLOv10 (2024) brought NMS-free training to the YOLO family, following earlier NMS-free CNN detectors, so the most widely used classical line ended up at the same place from the other side. YOLOv12 (2025) borrowed from the transformer side too, with an attention-centric YOLO that, according to its abstract, matches the speed of earlier CNN-based YOLO models; its paper does not claim NMS-free inference for itself. D-FINE (2024) redefined box regression as refining probability distributions.
  • Better backbones. DINOv2 (2023) showed that self-supervised pre-training on enough curated data produces all-purpose visual features that work across tasks without fine-tuning. LW-DETR (2024) put a ViT encoder, a projector and a shallow DETR decoder together, with interleaved window and global attention to keep the encoder cheap, and outperformed YOLO detectors on COCO and other benchmarks.

Where RF-DETR fits

RF-DETR sits at the meeting point of those lines. From the DETR line it takes set prediction with one-to-one matching and a deformable decoder, so it needs neither hand-designed anchors nor NMS (its queries start from reference boxes chosen from the image, not from a fixed anchor grid). From the transformer-backbone line it takes the LW-DETR layout and swaps in a DINOv2 backbone (the Atto, Femto and Pico models use PE-Core-T instead), with mostly windowed and a few global attention blocks. What it adds is weight-sharing neural architecture search (NAS), which covers an accuracy-latency curve from one training run, a segmentation head that reads the same object queries and, beyond the paper, a keypoint head that adds keypoint queries to each object query.

The RF-DETR paper reports that its 2x-large model is, to the authors' knowledge, the first real-time detector to surpass 60 AP on COCO. For the measured accuracy and latency of every released size, see Benchmarks; for the per-model comparison with RT-DETR, LW-DETR and D-FINE, see RF-DETR in the DETR family.

A convergence, not a victory lap

Convolutional and transformer detectors have borrowed from each other: RT-DETR uses a convolutional backbone, YOLOv10 adopted NMS-free training, and RF-DETR's projector is convolutional. The history above is less a replacement of one family by another than a steady removal of hand-made parts, first the features, then the proposals, then the hand-designed anchors and NMS, in favor of things a network can learn.

Where to go next

  • How It Works: the same ideas in depth, following one image through RF-DETR
  • Benchmarks: accuracy and latency of every released model
  • Run Model: run a pretrained detector on your own images
  • Train Model: fine-tune on your own dataset