
TorchGeo Data Pipelines Part 1 - How TorchGeo reads your data
This is part 1 of a 4-part series on data pipelines in TorchGeo. A slow training run often isn’t the model’s fault. The GPU is waiting on data, and how your files are stored, named, and aligned decides how long it waits.
Notes
This is part 1 of a 4-part series on data pipelines in TorchGeo. A slow training run often isn’t the model’s fault. The GPU is waiting on data, and how your files are stored, named, and aligned decides how long it waits.
This video looks at what TorchGeo does when it reads your data, and how to set up your files so reading stays fast and correct. You’ll see why a GeoDataset is an index over your files rather than a container, what happens during a single sample read, and why cloud optimized GeoTIFFs (COGs) beat striped GeoTIFFs for window-based training. It also covers the storage settings that matter most: tile size, compression, data type, nodata, and band layout. From there, it shows how filenames and a short RasterDataset subclass tell TorchGeo about your files. The last section covers what goes wrong when layers don’t line up: reprojection on every sample, half-pixel grid offsets, bilinear resampling on masks, and intersections that silently drop data.
Code and API details follow TorchGeo 0.9.
Series
Part 1: How TorchGeo reads your data (this video)
Part 2: Indexing, sampling, and speed
Part 3: Labels, splits, and normalization
Part 4: Versioning, serving, and inference