PadToMultiplesOf#

class deeptrack.augmentations.PadToMultiplesOf(multiple: int | Callable[[...], int] = 1, **kwargs)#

Bases: Pad

Pad images until their height/width is a multiple of a value.

Parameters#

multipleint or tuple of (int or None)

Images will be padded until their width is a multiple of this value. If a tuple, it is assumed to be a multiple per axis. A value of None or -1 indicates to skip that axis.