class documentation

class PatchSize(object): (source)

Constructor: PatchSize(patch_size)

View In Hierarchy

Transform that center crops the PIL image or torch Tensor, if necessary, so that its dimensions are multiples of the specified patch size.

Parameters
patch_sizethe patch size
Method __call__ Undocumented
Method __init__ Undocumented
Instance Variable patch_size Undocumented
def __call__(self, pil_image_or_tensor): (source)

Undocumented

def __init__(self, patch_size): (source)

Undocumented

patch_size = (source)

Undocumented