What do you want to do?
3 use cases
-
Train a satellite image classifier from the CLI
Use the built in LightningCLI to train and test a 13 band EuroSAT classifier from a YAML config, without writing a training loop.
View prompt
Using torchgeo/torchgeo, create the README's EuroSAT100 config.yaml, run `torchgeo fit --config config.yaml`, then run the test stage on the best checkpoint and report accuracy.
-
Build a crop mapping dataset from Landsat and CDL
Combine Landsat 7 and 8 with a union, intersect them with the Cropland Data Layer, and sample random patches for training.
View prompt
With torchgeo/torchgeo, write a script that unions my Landsat 7 and 8 scenes in <data folder>, intersects them with CDL, and prints the shapes of the first batch from a RandomPatchSampler DataLoader.
-
Fine-tune with Sentinel-2 pre-trained weights
Start from multispectral ResNet18 weights trained on Sentinel-2 instead of RGB ImageNet weights for better transfer.
View prompt
Using torchgeo/torchgeo, load ResNet18_Weights.SENTINEL2_ALL_MOCO into a timm resnet18 with the right in_chans and set num_classes for <my label count>, then show a forward pass on a dummy batch.
Quick start with Torchgeo
- Check you have what it needs: Python with `pip install torchgeo` (or `uv add torchgeo`); Enough disk space for the satellite datasets you download; A GPU for training, as with any PyTorch project.
- Open torchgeo/torchgeo on GitHub and read the README and license.
- Install with
pip install torchgeo - Write the README's config.yaml: Classification with resnet18, in_channels 13, num_classes 10, and EuroSAT100DataModule with download true
- Train and validate with
torchgeo fit --config config.yaml - Report test accuracy with
torchgeo test --config config.yaml --ckpt_path=...pointing at your checkpoint
These steps come from our top use case, Train a satellite image classifier from the CLI, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for torchgeo/torchgeo
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forML engineers and remote sensing scientists working with satellite and aerial imagery.
- Why it is hot4.2k stars, talked about in 2 AI sources we track
- LanguagePython
- Sourcegithub.com/torchgeo/torchgeo ยท Back to Hot repos
Requirements
- Python with `pip install torchgeo` (or `uv add torchgeo`)
- Enough disk space for the satellite datasets you download
- A GPU for training, as with any PyTorch project
Add this badge to your README
Maintain Torchgeo? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/torchgeo-torchgeo/?utm_source=github&utm_medium=badge&utm_campaign=torchgeo-torchgeo)
HTML
<a href="https://dedupedai.com/use-cases/torchgeo-torchgeo/?utm_source=github&utm_medium=badge&utm_campaign=torchgeo-torchgeo"><img src="https://dedupedai.com/badge/torchgeo/torchgeo.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Torchgeo
What is Torchgeo?
TorchGeo is a PyTorch domain library, like torchvision, for geospatial data. It provides geospatial datasets that combine with union and intersection operators, samplers that cut patches from huge rasters, benchmark datasets such as VHR-10 and EuroSAT, multispectral pre-trained weights, and Lightning tasks with a `torchgeo` command line for reproducible training. It is an open-source project on GitHub: https://github.com/torchgeo/torchgeo.
How do I use Torchgeo?
Install with pip install torchgeo; then write the README's config.yaml: Classification with resnet18, in_channels 13, num_classes 10, and EuroSAT100DataModule with download true; Train and validate with torchgeo fit --config config.yaml. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Torchgeo for?
ML engineers and remote sensing scientists working with satellite and aerial imagery.
What can I do with Torchgeo?
3 use cases so far, for example: Train a satellite image classifier from the CLI; Build a crop mapping dataset from Landsat and CDL; Fine-tune with Sentinel-2 pre-trained weights. Each has steps and a copy-paste agent prompt.
What do I need to run Torchgeo?
Python with `pip install torchgeo` (or `uv add torchgeo`); Enough disk space for the satellite datasets you download; A GPU for training, as with any PyTorch project.
What are alternatives to Torchgeo?
Other hot AI repos in Data and analytics: Auto Ontology, Marker, Datatrove, Chronos Forecasting, Apify MCP Server.
Is Torchgeo safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.