Repository navigation
Whirld 0.4.0 brings a simpler first result and more consistent workflows for local geospatial foundation-model inference.
Highlights
- Local GeoTIFF streaming: windowed embedding, classification and segmentation disk workflows now accept local rasters alongside STAC and direct remote COG inputs.
- First-run setup:
whirld doctorreports actionable environment/model checks;whirld demoruns real RemoteCLIP RN50 on a bundled, attributed Sentinel-2 crop and writes an offline browser preview, GeoJSON and provenance. - Labeled evaluation: a small hash-pinned HLS burn-scar suite records separate validation/test metrics and model/data/config identities.
- Provider contracts: typed provider definitions share metadata, dependencies and lazy construction. Unsupported tasks fail consistently before expensive work; backend inputs and actual outputs receive stronger validation.
Install and try the demo
Use Python 3.13.7 in a new directory, with uv installed:
uv venv --python 3.13.7 .venv
uv pip install --python .venv/bin/python --torch-backend cpu \
-r https://raw.githubusercontent.com/cercanasystems/whirld/99a500df11e94e919dbe2c35bf61bb9c92c1bcb1/requirements-quickstart.txt \
'whirld[remoteclip] @ https://github.com/cercanasystems/whirld/releases/download/v0.4.0/whirld-0.4.0-py3-none-any.whl'
.venv/bin/whirld doctor
.venv/bin/whirld demo --output quickstart-resultsOpen quickstart-results/preview.html. The first demo downloads 408.4 MB of verified model weights, plus Python/runtime dependencies; allow at least 4 GB RAM and sufficient disk space. CPU is sufficient for the demo. Scores are relative to its four prompts, not calibrated land-cover confidence.
For a base-only installation, download the wheel and run .venv/bin/python -m pip install ./whirld-0.4.0-py3-none-any.whl. The deterministic clay-v1 reference model works without a trained-model runtime. Trained models and the REST server use separate extras; checkpoints are separate downloads.
Download the attached wheel, source archive and SHA256SUMS, then verify with shasum -a 256 -c SHA256SUMS (Linux: sha256sum -c SHA256SUMS).
Compatibility and limits
Supported inference arithmetic and output formats remain unchanged. Unsupported operations now raise UnsupportedOperationError, an InvalidInputError subclass (CLI exit 7 / HTTP 422). Direct backend inputs must follow the documented normalized float32 NCHW contract. Invalid metadata, shapes, nonfinite values or class counts fail earlier; BackendContractError retains ValueError compatibility.
Streaming requires compatible north-up projected grids in metres; STAC assets share a CRS. General reprojection, STAC search/mosaics, REST remote-input/streaming bodies and quantization remain deferred. Model/framework/decoder buffers still contribute to memory usage. The four-case evaluation is reproducibility evidence for those cases, not a broad accuracy claim.
Verification and provenance
Published from manually reviewed merge commit 99a500df11e94e919dbe2c35bf61bb9c92c1bcb1 (PR #34), with passing merged-main CI. Release preparation verified 1,472 tests passed / 12 skipped, 93.53% coverage, formatting/lint/types, seven registry entries, fresh wheel/source/starter installs and the real model examples. RN50 scores, Clay embeddings and Prithvi masks match prior baselines; the labeled evaluation reproduces its prediction hashes/counts/metrics. Final artifacts were rebuilt from a clean checkout and checked against the approved source and tested candidates.
Application code is Apache-2.0. Bundled imagery contains modified Copernicus Sentinel data 2024, via Element 84; imagery, model and vendored-code terms remain separate and ship with their notices. This is a GitHub release; PyPI publication is separate.