File size: 404 Bytes
43abac3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | """
Shared image transformations for EcoPulse.
Consolidates the identical transforms.Compose block that was copy-pasted
across multiple modules into a single importable constant.
"""
from torchvision import transforms
EUROSAT_TRANSFORM = transforms.Compose([
transforms.Resize((64, 64)),
transforms.ToTensor(),
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
])
|