{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "torchgeo-torchgeo--train-a-satellite-image-classifier-from-the-cli-with-torchge",
 "repo": "torchgeo/torchgeo",
 "repo_url": "https://github.com/torchgeo/torchgeo",
 "repo_slug": "torchgeo-torchgeo",
 "title": "Train a satellite image classifier from the CLI",
 "page_title": "How to train a satellite image classifier from the CLI with Torchgeo",
 "summary": "Use the built in LightningCLI to train and test a 13 band EuroSAT classifier from a YAML config, without writing a training loop.",
 "who": "An ML engineer benchmarking land cover classification.",
 "problem": "Reproducing remote sensing results usually means a lot of boilerplate.",
 "outcome": "A trained checkpoint and a reported test accuracy.",
 "steps": [
  "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"
 ],
 "agent_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.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "Use `torchgeo fit --help` and `torchgeo fit --data.help EuroSAT100DataModule` to see valid options before editing the config.",
 "category": "Data and analytics",
 "tags": [
  "Data and analytics"
 ],
 "lang": "python",
 "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/torchgeo-torchgeo/train-a-satellite-image-classifier-from-the-cli-with-torchge/",
 "md": "https://dedupedai.com/use-cases/torchgeo-torchgeo/train-a-satellite-image-classifier-from-the-cli-with-torchge/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/torchgeo-torchgeo--train-a-satellite-image-classifier-from-the-cli-with-torchge.json",
 "api_version": "v1"
}
