Yes, I am using the RandomCrop transformation
Here is the code:
class ImageDataset(Dataset):
    def __init__(self, data, transform = None):
        self.data = data
        if transform != None:
            self.transform = transform
        else:
            self.transform = transforms.Compose([transforms.ToTensor()])
    def __len__(self):
        return len(self.data)
    def __getitem__(self, idx):
        image = Image.open(self.data['filename'][idx])
        image = self.transform(image)
        image = image.numpy().astype('float32')
        label = self.data['labels'][idx]
        return image, label
    
transform = transforms.Compose([
    transforms.ColorJitter(),
    transforms.RandomCrop(128),
    transforms.RandomHorizontalFlip(), 
    transforms.RandomVerticalFlip(),
    transforms.ToTensor()
])