multibox_prior

multibox_prior(data=None, sizes=_Null, ratios=_Null, clip=_Null, steps=_Null, offsets=_Null, out=None, name=None, **kwargs)

Generate prior(anchor) boxes from data, sizes and ratios.

Parameters:
data : ndarray

Input data.

sizes : tuple of <float>, optional, default=[1]

List of sizes of generated MultiBoxPriores.

ratios : tuple of <float>, optional, default=[1]

List of aspect ratios of generated MultiBoxPriores.

clip : boolean, optional, default=0

Whether to clip out-of-boundary boxes.

steps : tuple of <float>, optional, default=[-1,-1]

Priorbox step across y and x, -1 for auto calculation.

offsets : tuple of <float>, optional, default=[0.5,0.5]

Priorbox center offsets, y and x respectively

out : ndarray, optional

The output ndarray to hold the result.

Returns:
out : ndarray or list of ndarrays

The output of this function.