File size: 278 Bytes
eecd883
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
from torchvision import transforms as tt

# Define the transformations to be applied to the images
transforms = tt.Compose([
    tt.Resize((224, 224)),
    tt.RandomHorizontalFlip(p=0.5),
    tt.RandomVerticalFlip(p=0.5),
    tt.RandomRotation(20),
    tt.ToTensor()
])