2026.08.03detection

Small objects: tile the image before reaching for a bigger model

Sliced inference recovers detail that downscaling throws away.

fig. 8: detection illustration

When objects are twenty pixels wide in a 4K frame, resizing the frame to the network input leaves about four pixels per object. No architecture change brings that information back.

Tiling does. Cut the frame into overlapping crops at native resolution, run the detector on each, shift the boxes back and merge. An overlap of about twenty percent of the tile size keeps objects on the seams intact.

The cost is linear in the number of tiles, so it pays to be selective. A cheap first pass on the downscaled frame, or simple motion detection, can decide which tiles are worth running.

Merging needs care: an object on a seam is detected twice with partial boxes. Suppress by intersection over the smaller box rather than by IoU, so that a fragment is absorbed by the complete detection.

It is not elegant, but it turned a model that missed most distant vehicles into one that found them, without retraining.