Resize(size[, interpolation, max_size, ...])
| Resize the input image to the given size. |
RandomCrop(size[, padding, pad_if_needed, ...])
| Crop the given image at a random location. |
RandomResizedCrop(size[, scale, ratio, ...])
| Crop a random portion of image and resize it to a given size. |
CenterCrop(size)
| Crops the given image at the center. |
FiveCrop(size)
| Crop the given image into four corners and the central crop. |
TenCrop(size[, vertical_flip])
| Crop the given image into four corners and the central crop plus the flipped version of these (horizontal flipping is used by default). |
Pad(padding[, fill, padding_mode])
| Pad the given image on all sides with the given "pad" value. |
RandomRotation(degrees[, interpolation, ...])
| Rotate the image by angle. |
RandomAffine(degrees[, translate, scale, ...])
| Random affine transformation of the image keeping center invariant. |
RandomPerspective([distortion_scale, p, ...])
| Performs a random perspective transformation of the given image with a given probability. |
ElasticTransform([alpha, sigma, ...])
| Transform a tensor image with elastic transformations. |
RandomHorizontalFlip([p])
| Horizontally flip the given image randomly with a given probability. |
RandomVerticalFlip([p])
| Vertically flip the given image randomly with a given probability. |