Skip to content
Back to skills

Models And Transforms

ASecurity

"Use for TorchGeo model registry, pretrained weights, model

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
businessapibackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill models-and-transforms --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Models And Transforms?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Models And Transforms
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-models-and-transforms/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-models-and-transforms)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: models-and-transforms
description: "Use for TorchGeo model registry, pretrained weights, model
  builders, timm/SMP integration, and spectral/SAR/color/spatial/temporal
  transforms."
metadata:
  disco-role: operating
disable-model-invocation: true
license: MIT
---

# TorchGeo models and transforms

Use this sub-skill for pre-trained geospatial models, weight enums, model registry queries, transform composition, spectral indices, and optional model dependency troubleshooting.

## Model registry

`torchgeo.models.api` registers named model builders and weights. Core helpers:

- `list_models()` returns registered model names.
- `get_model(name, *args, **kwargs)` instantiates a registered model builder.
- `get_model_weights(name_or_builder)` returns the `WeightsEnum` class associated with a model.
- `get_weight(full_enum_string)` returns one concrete weight enum value by its string representation.

Registered families at the distilled commit include Aurora, CopernicusFM, CROMA, DEO, DOFA, EarthLoc, OlmoEarth, Panopticon, Presto, ResNet, SatCLIP, ScaleMAE, Swin, Tessera, TileNet, UNet, and ViT variants.

## Weight and dependency rules

- Use `weights=None` for construction-only smoke tests.
- Passing a TorchGeo weight enum or enum string may download checkpoints through `get_state_dict`; check network/cache policy first.
- Some model families require optional extras (`microsoft-aurora`, `olmoearth-pretrain-minimal`, or other upstream packages). Guard optional imports with clear user guidance.
- When changing input channel counts, update both model construction parameters and any weight-loading adaptation logic.

## Transform families

- `torchgeo.transforms.indices` appends spectral indices such as NDVI, NBR, NDBI, NDSI, NDWI, MNDWI, and related normalized-difference features.
- SAR, color, spatial, and temporal transforms are in neighboring modules and are built around tensor/Kornia-style batch operations.
- Verify channel ordering before applying a spectral index. For example, NDVI needs NIR and red channel indexes in the image tensor.
- In Lightning workflows, put GPU-compatible Kornia augmentations in `on_after_batch_transfer` through datamodule augmentation fields.

## Read next

- [reference](references/models-and-transforms.md) for examples and verification candidates.
- Root [backend plan](../../references/backend-verification-plan.md) before running model/task smoke checks.

Files in this skill

  • SKILL.md2.4 KB
  • references/models-and-transforms.md2.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.