RandomResizedCrop — Torchvision main documentation
pytorch.org › vision › mainclass torchvision.transforms.RandomResizedCrop(size, scale= (0.08, 1.0), ratio= (0.75, 1.3333333333333333), interpolation=<InterpolationMode.BILINEAR: 'bilinear'>) [source] Crop a random portion of image and resize it to a given size. If the image is torch Tensor, it is expected to have […, H, W] shape, where … means an arbitrary number of ...