PyTorch domain library for remote sensing

Geospatial deep learning, without the glue code.

Geospatial deep learning isn't just computer vision with larger images — satellite data is a distinct modality with its own geometry, statistics, and metadata.

TorchGeo provides CRS-aware datasets, spatial samplers, multispectral transforms, and pretrained models for satellite and aerial imagery — all as standard PyTorch primitives.

pip install torchgeoMIT · Python 3.12+ · OSGeo project
from torchgeo.datasets import EuroSAT
from torchgeo.samplers import RandomGeoSampler
from torchgeo.models import ResNet18_Weights, resnet18

dataset = EuroSAT(root="./data", download=True)
sampler = RandomGeoSampler(dataset, size=256, length=1000)
weights = ResNet18_Weights.SENTINEL2_ALL_MOCO
model = resnet18(weights=weights)

Library surface

Example datasets

Podcasts & tutorials

youtube.com/@TorchGeo