TorchGeo provides a comprehensive collection of pre-trained models and weights specifically designed for remote sensing and geospatial applications. These models support multispectral satellite imagery and leverage state-of-the-art self-supervised learning methods.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/torchgeo/torchgeo/llms.txt
Use this file to discover all available pages before exploring further.
Key Features
Pre-trained Weights for Multispectral Data
Unlike standard computer vision models trained on RGB images, TorchGeo models are pre-trained on multispectral satellite imagery including:- Sentinel-1 (SAR): 2 channels (VV, VH)
- Sentinel-2 (Optical): Up to 13 spectral bands
- Landsat: 6-11 channels depending on sensor (TM, ETM+, OLI/TIRS)
- Multi-sensor: Combined modalities for robust feature learning
Self-Supervised Learning Methods
Models are pre-trained using various SSL methods:- MoCo: Momentum Contrast for unsupervised learning
- SimCLR: Simple framework for contrastive learning
- MAE: Masked Autoencoders for self-supervised learning
- DINO: Self-distillation with no labels
- SeCo: Seasonal contrast for temporal understanding
- DeCUR: Decoupled contrastive learning
- SoftCon: Soft contrastive learning
Integration with timm
TorchGeo models leverage the timm library for model implementations, providing:- Consistent API across all models
- Easy weight loading and model creation
- Support for feature extraction and fine-tuning
- Flexible input channel configuration
Model Categories
Classification Backbones
Pre-trained encoders suitable for transfer learning:- ResNet (18, 50, 152)
- Vision Transformer (Small, Base, Large, Huge)
- Swin Transformer (Tiny, Small, Base)
- DOFA (Dynamic One-For-All)
- Presto (Pretrained Remote Sensing Transformer)
Segmentation Models
Models designed for dense prediction tasks:- U-Net with various encoders
- FCN (Fully Convolutional Network)
- FarSeg (Foreground-Aware Relation Network)
Change Detection Models
Specialized architectures for temporal analysis:- ChangeStar
- ChangeStarFarSeg
- FCSiamDiff, FCSiamConc
Foundation Models
Large-scale models trained on diverse geospatial data:- DOFA: Works with any spectral bands via dynamic convolutions
- Presto: Temporal transformer for Sentinel-1/2 time series
- CopernicusFM: Copernicus Foundation Model
- ScaleMAE: Scale-aware masked autoencoder
Quick Start
Loading Pre-trained Weights
Using the Weights API
Creating Models with Custom Channels
Training Datasets
Models are pre-trained on large-scale remote sensing datasets:- SSL4EO-S12: 250k+ Sentinel-1/2 image pairs
- SSL4EO-L: 500k+ Landsat images (TM, ETM+, OLI)
- SatlasPretrain: Global coverage Sentinel-2 imagery
- fMoW: Functional Map of the World satellite imagery
- Five-Billion-Pixels: Large-scale hyperspectral dataset
Pre-trained Weights
Browse all available weight classes and their metadata
Model Architectures
Explore model architectures and their implementations