DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to train a satellite image classifier from the CLI with Torchgeo

Use the built in LightningCLI to train and test a 13 band EuroSAT classifier from a YAML config, without writing a training loop.

Short answer: 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. All steps.

  • Top pick
  • Data and analytics
  • Intermediate
  • 1 hour
  • From the README
  • Claude Code
  • Codex
  • Cursor
  • Gemini CLI

Who it is forAn ML engineer benchmarking land cover classification.

The problemReproducing remote sensing results usually means a lot of boilerplate.

The outcomeA trained checkpoint and a reported test accuracy.

What you need first

  • 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

Steps

  1. Install with pip install torchgeo
  2. Write the README's config.yaml: Classification with resnet18, in_channels 13, num_classes 10, and EuroSAT100DataModule with download true
  3. Train and validate with torchgeo fit --config config.yaml
  4. Report test accuracy with torchgeo test --config config.yaml --ckpt_path=... pointing at your checkpoint

Prompt for your agent

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.

Caveat. Use `torchgeo fit --help` and `torchgeo fit --data.help EuroSAT100DataModule` to see valid options before editing the config.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for torchgeo/torchgeo and "Train a satellite image classifier from the CLI"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer