Spaces:
Sleeping
Sleeping
File size: 313 Bytes
541501b b426c59 |
1 2 3 4 5 6 7 8 9 |
import torchvision.transforms as transforms
import torch
# Define the transformation pipeline
transform = transforms.Compose([
transforms.Resize((224,224)),
transforms.ToTensor(), # Convert the images to PyTorch tensors
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
]) |