The challenge: find every object, fast
Two kinds of answer for the same photo
Why it mattered
A camera delivers about 30 photos (frames) every second. A detector that needs seconds per photo is useless for a car, a robot or a drone. YOLO was the first detector that was both accurate enough and fast enough to watch live video.
Walk a photo through the network
The three ideas that made it work
The cell holding the centre is responsible
Click the photo to move the dog's centre.
IoU: overlap ÷ union
Non-max suppression
The defining rule: you only look once
Many looks or one look?
Suppose one run of the network takes 22 ms (that is YOLO's 45 fps). A region-by-region detector needs one run per region.
Illustration only: real two-step detectors later shared work between regions, but they still needed a separate region step.
The answer block
Shapes by hand and by eye
Worked example by hand: a 4 × 4 input and one 3 × 3 filter
Redo it on paper: put the stencil on the top-left corner, multiply each pair of numbers that sit on top of each other, add them up, then slide one step. The count of places is (4 − 3) ÷ 1 + 1 = 2 in each direction, so the output is 2 × 2.
The same rule for real layers
Where the parameters live
The arithmetic for that layer appears here.
Parameters
Work (multiply-adds)
The YOLO family
| version | year | conv layers | parameters | speed | score |
|---|
Scores: mAP on PASCAL VOC 2007 unless noted. Parameters marked "computed" come from this page's layer list; the Fast YOLO row is a simplified 9-layer sketch.
Pick a row.
After v3. From 2020 onward many teams released their own versions (v4, v5, v8 and more), mostly with "nano" to "extra-large" sizes so you can trade speed for accuracy.
The cost of looking
Assumes the GPU reaches 40 % of its peak, which is typical in practice. Training one photo costs about 3 × a forward pass (forward, then backward).
Reuse it instead of retraining it
Rule of thumb
Few photos (hundreds): freeze the backbone and train only the top. Thousands of photos: also unfreeze the detection layers. Always use a small learning rate for layers that were pretrained, so their knowledge is nudged, not erased.