FiveCrop
- class torchvision.transforms.FiveCrop(size)[source]
Crop the given image into four corners and the central crop. If the image is torch Tensor, it is expected to have […, H, W] shape, where … means an arbitrary number of leading dimensions
- Parameters:
size (sequence) – Desired output size of the crop. If size is an instead of sequence like (h, w), a square crop of size (size, size) is made. If provided a sequence of length 1, it will be interpreted as (size[0], size[0]).