Repository navigation
Releases
Whirld 0.4.0
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.
Whirld 0.3.0
Whirld 0.3.0 adds flood support, bounded-memory segmentation and additional RemoteCLIP models.
- Add Prithvi EO 2.0 flood segmentation with an explicit Sentinel-2 L1C
contract, pinned official checkpoint/config and documented metadata/padding
policy. Predicted water/flood is class 1; valid background is 0, nodata is 255. - Add
segment_to_disk()andsegment --streamfor native-tile bounded-memory
mask GeoTIFF output, retaining source validity and exact target grid/extent. - Add pinned RemoteCLIP RN50 and ViT-L/14 registry entries alongside existing
ViT-B/32, with actual preprocessing/checkpoint and eager/stream validation. - Require explicit L1C selection or unambiguous processing-level metadata for
flood detection; shared Sentinel-2 band names cannot distinguish L1C from L2A. - Clear inherited GDAL header files using a readable empty source, eliminating
spurious empty-filename warnings during remote example/raster reads while
preserving credential isolation and caller configuration restoration.
Validation: 800 passed / 12 skipped, 91.95% package/example
coverage, plus three opt-in actual-model checks. All three default real-world
examples, the alternate Clay reference and the classification-streaming snippet
execute with actual pinned weights/public imagery and independently validated
outputs/previews. Existing arrays/masks match prior output; model/geometry/version
contracts hold. Independent fresh source/wheel base-only installs pass existing
and new HTTP streaming workflows. Recorded details are in the example guides and
development log. Public IO/cache conditions affect timings.
Installation and limits
Use Python 3.13.7 or newer (verified with 3.13.7). Install the wheel or source archive from this release; model extras and checkpoint downloads are separate. No PyPI publication is included. Inputs still require north-up metric grids; REST/local raster streaming, overlap blending and reprojection remain deferred. CPU execution checks do not establish model accuracy or GPU performance.
Checksums
Verify downloaded files with shasum -a 256 -c SHA256SUMS (macOS) or sha256sum -c SHA256SUMS (Linux).
a1e380626f3a66c58b0fa8eac95eeecfa86215765fe89ac6fd84f5b65410aaf2 whirld-0.3.0-py3-none-any.whl
c082ca2a53929b4ae0e6b2e39265784ab01d1410353b6862f8651860f29d6ac9 whirld-0.3.0.tar.gz
Release source: 58b972701a2f9155fd3cc0bc523d693e84aa74fd, manually merged PR #29. Merged-main CI passed. Assets match the reviewed merged source and exclude subsequent feature-branch work.
Whirld 0.2.0
Bounded-memory classification is now available in Whirld.
- Add
classify_to_disk()and CLIclassify --streamfor bounded STAC/direct
COG classification with one backend and configurable batch/cache budgets. - Preserve eager GeoJSON fields, inclusive thresholds, global score ordering and
stable ties.top_k=None/--allemits every match using disk-backed sorting. - Stage completed features in SQLite and atomically publish the single GeoJSON
only after successful completion; failures preserve prior output. - Add classification streaming documentation, numerical/HTTP/CLI/failure and
memory checks, plus real RemoteCLIP eager/stream validation.
Validation: 704 tests passed, 9 opt-in checks skipped, 91.53% package/example
coverage; fresh wheel/source installs pass. Real RemoteCLIP batches 1 and 3 retain
all 16 pinned-scene chips with matching geometry/ranking and maximum score error
below 5.4e-6. Writer-only RSS remains about 70–71 MiB while output grows from
4,000 to 64,000 features (1.55–24.96 MB); raster memory is tested separately.
Existing eager classification defaults and REST behavior remain compatible.
Streaming requires a disk output and STAC/direct remote input; temporary disk
space grows with retained features. North-up/same-CRS requirements continue;
segmentation streaming and reprojection #21 remain deferred.
Usage
whirld classify item.json --model remoteclip --query "a satellite image of water" \
--stream --batch-size 4 --all --output scores.geojsonSee the classification streaming guide for Python usage, input constraints and memory/disk budgets. Install using the release wheel/source archive with Python 3.13.7 or newer; the tested interpreter is 3.13.7. Model extras/checkpoints are separate. PyPI publication remains separate.
Assets and checksums
Verify downloaded artifacts with shasum -a 256 -c SHA256SUMS (macOS) or sha256sum -c SHA256SUMS (Linux).
b9d34ac71e3d1e88d6c7f3e39124cdc6853634510b39ca3dd9ce6f0258dd2a1b whirld-0.2.0-py3-none-any.whl
8296310904237ff3086f529d4e9efd2ef8ab831c053433661871add8389d50e8 whirld-0.2.0.tar.gz
Release source: d4cb5f89d7308bcf928cf9d15b88b0f560511537, merged PR #27. The merged tree matches the verified artifact build inputs; hosted checks passed before tagging.
Whirld 0.1.0
First release of Whirld, a local-first CLI and Python library for geospatial
foundation-model inference. APIs and output contracts may evolve during 0.x;
future releases will document compatibility changes here.
Included
- Sensor-aware band selection, radiometry, mask/nodata handling, resampling,
chip geometry and acquisition/location metadata. - Real Clay v1.5 embeddings, RemoteCLIP text classification and Prithvi burn-scar
segmentation, with separately installed model extras and verified checkpoints. - An offline
clay-v1deterministic reference encoder for setup/tests; use
clay-v1.5for trained Clay model embeddings. - Local GeoTIFF, STAC item and direct HTTP(S) COG inputs in the library/CLI,
including bbox windows, explicit source band/unit metadata and scoped auth. - Bounded-memory embedding output to NPY plus JSON metadata, using window reads
and incremental writes. - CLI model management, a REST server for uploaded rasters, registry governance,
checkpoint integrity verification and local usage records. - Three runnable examples using pinned public imagery and real model weights.
Installation and verification
Download the wheel or source distribution from the GitHub release. Use Python
3.13.7 or newer; verification uses 3.13.7 on macOS ARM64 and Ubuntu 24.04 x86-64 CI.
Other Python versions/platforms have not been verified. Base installation uses
Rasterio's bundled GDAL. Real models require extras and separate checkpoint
retrieval (Clay v1.5: 5.16 GB; RemoteCLIP: 605 MB; Prithvi burn-scar: 1.30 GB).
Whirld is Apache-2.0; model weights and vendored code retain their upstream
licenses/notices. See README and whirld info MODEL before downloading.
Release baseline: 605 tests passed, 9 opt-in checks skipped, 90.98% coverage across
the package and examples. Additional public-data and real-model CPU runs verified
streaming/eager equivalence and all three examples; these are execution checks,
not claims of prediction accuracy or GPU performance.
Known limitations
- Inputs require north-up projected grids in meters. Streaming STAC assets must
share a CRS; reprojection is deferred in issue #21. - Only embeddings support bounded-memory output. Classification and segmentation
retain the selected region in memory; use a bbox for smaller eager reads. - Remote rasters require HTTP range support. Tiled COGs are recommended; source
strips can enlarge decoder buffers. Direct rasters require explicit sensor and
unambiguous source band identity. - REST endpoints accept uploads; remote-input request bodies and REST streaming
remain deferred. STAC search/mosaics, quantization, flood segmentation and remote
registry synchronization also remain deferred. - NPY/JSON output publication uses per-file replacement and rollback; the pair is
not crash-atomic. Concurrent runs must use distinct output destinations. - PyPI publication is separate from this GitHub release.
Assets and checksums
Download the wheel or source archive and SHA256SUMS. Verify with
shasum -a 256 -c SHA256SUMS (macOS) or sha256sum -c SHA256SUMS (Linux).
8536c0b6b42fc66d4a4eaa7425cc94563778556e77b0f10330289d737a8b94be whirld-0.1.0-py3-none-any.whl
2cc137263493f01ae9a716cddb735e84dd8bde0160acad203b8f1a3590e964c9 whirld-0.1.0.tar.gz
Release source: b66ee8f (merged preparation PR #26); the merged tree matches the artifact build inputs. Hosted preparation checks passed before tagging.