What it does
Objects appear at many sizes, so detectors read features at several resolutions. A backbone CNN produces maps at strides 8, 16 and 32; a neck passes information from the coarse, semantic maps back down to the fine ones by upsampling and adding or concatenating (the feature pyramid). A small convolutional head then runs on every cell of every level and predicts, for each cell, class scores and a box (and, for faces, a few landmarks). Small objects are found on the fine level, large ones on the coarse level. The predictions are flattened into one list, thresholded and cleaned up with non-maximum suppression outside the network.
Formula
P5 = C5, Pℓ = Cℓ + Up(Pℓ+1)scoreℓ,y,x,k = σ(Headclsℓ(Pℓ)[k, y, x] + bk)boxℓ,y,x = decode(Headboxℓ(Pℓ)[:, y, x], strideℓ)Shapes and parameters
- Shapes
- Image [N, 3, 320, 320] → levels [N, C, 40, 40], [N, C, 20, 20], [N, C, 10, 10] → predictions [N, 2100, K + 4].
- Parameters
- Backbone plus a few small convolutions per level. NanoDet-Plus has about 1.2 million in total; YuNet about 75 thousand.
- Used for
- NanoDet-Plus objects, YuNet faces, BlazePose and palm detectors, PP-OCR text detection (a segmentation-style variant).
In WeightSpace
Detectors in the catalog are edited at the per-level biases of their heads: one class bias at each of the three strides (so you can favor small, medium or large people) or one landmark coordinate bias at each stride for faces, within ±8.