Learn Before
Formula

Anchor Box Parameterization by Scale and Aspect Ratio

An anchor box centered on a pixel of an image with height hh and width ww is parameterized by two quantities: a scale s(0,1]s \in (0, 1] and an aspect ratio r>0r > 0, defined as the ratio of the box's width to its height. Given these parameters, the width of the anchor box is wsrws\sqrt{r} and the height is hs/rhs/\sqrt{r}. This formulation ensures that larger scales produce bigger boxes and that the aspect ratio controls the elongation of the box — values of r>1r > 1 yield wider boxes, while values of r<1r < 1 yield taller boxes. Since the scale is expressed relative to the image dimensions, the resulting anchor box dimensions are directly proportional to the image size.

0

1

Updated 2026-05-19

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L