PadToMultiplesOf#

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

Bases: Pad

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

Parameters#

multiple: int or tuple of int or tuple of 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.