Repository navigation
CanopyGIS v1.8.2 — ToS-Clean Local GeoTIFF Ingestion, CPU Verification Suite, FAIR Citation Metadata & CI
CanopyGIS v1.8.2 packages the frozen v1.8.1 pure zero-shot planar individual tree crown evaluator (src/canopygis_v18_eval.py, bit-identical math — 0 B diff) into a clean, ToS-compliant, academic-ready MIT release with automated CPU verification and Zenodo archival metadata.
What's Changed in v1.8.2
- ToS-Clean Local-First Imagery Ingestion: Removed third-party satellite tile scraping (
POST /fetch_imageryand helper routines insrc/main.pyandsrc/script.js) and deleted cached tile preview JPEGs (vhr_*_preview.jpg). Imagery ingestion now operates exclusively on user-supplied georeferenced GeoTIFF / UAV orthomosaic / open-licensed RGB imagery (POST /upload) alongside the pre-computed interactive GeoJSON demo sessions (On Nut2,987crowns,Nong Khaem2,110crowns,Ramintra Sports Park1,462crowns). - Automated CPU Test Suite (
26/26pytestPASS) & GitHub Actions CI: Added comprehensive CPU unit/regression tests (tests/test_canopygis_v18_eval.py,tests/test_no_google_scraper.py,tests/test_canopy_v2.py) and.github/workflows/ci.ymlverifyingflake8+pytestacross Python3.10–3.12on every push and PR. - FAIR Academic Metadata & Packaging: Added
CITATION.cff(cff-version: 1.2.0, MIT, ORCID0009-0006-4143-3162),CONTRIBUTING.md, and updatedpyproject.toml(version = "1.8.2", optional extrassam3,web,dev) for reproduciblepip installand Zenodo DOI archiving.
Frozen MillionTrees v0.25 TreePolygons Pure Zero-Shot Benchmark Summary
All benchmark metrics below are produced strictly by standalone pure zero-shot src/canopygis_v18_eval.py (facebook/sam3 + Compact Geodesic Watershed + 3-Pass Region-Adjacency-Graph coalescing, score_threshold=0.10, 0 forestry training hours, < 5 GB peak GPU VRAM, zero DeepForest dependency):
Official MillionTrees v0.25 Split |
Tiles (n) |
MaskRecall | MaskAwareP | F1 | AP40 | AP60 | Topology (Euler == 1) |
|---|---|---|---|---|---|---|---|
out-of-distribution Test (6 held-out sources) |
4,133 |
0.617 |
0.936 |
0.744 |
0.439 |
0.350 |
0 overlaps / 0 violations |
within-distribution Test (24 sources) |
1,623 |
0.459 |
0.882 |
0.604 |
0.243 |
0.156 |
0 overlaps / 0 violations |
Held-Out TLS Complete-59 Validation |
59 |
— | 0.5060 macro / 0.5275 pooled (Plain P) |
0.6268 (official) / 0.4770 macro (0.4939 pooled) (Plain F1) |
0.3544 (macro) |
0.1596 (macro) / 0.0628 (Allen) |
0 overlaps / 0 violations |
- Cumulative Planar Topology Guarantee (
5,815tiles /458,851predicted crowns):overlap_px = 0(max_stack_depth = 1),empty_masks = 0,multi_comp = 0,holes = 0,Euler != 1 = 0. - Honest Scope & Limitations: Standalone
canopygis_v18_eval.pytrails forestry-pretrainedCanopyRS (thr 0.30)on overall OOD F1 (0.744vs0.839) and WD F1 (0.604vs0.789), and under-recalls sparse arid/savanna shrubs and dense tropical scenes (Bohlman et al. 2008Recall0.168). OptionalWeecology DeepForest 2.1.0nadir treetop seeding (src/canopy_v2.py) is portal-only and never used inMillionTreesevaluation.
Quick Install
# Core planar geometry & CPU evaluation:
pip install "canopygis @ git+https://github.com/napattan/CanopyGIS.git@v1.8.2"
# With Meta SAM 3 transformers backend:
pip install "canopygis[sam3] @ git+https://github.com/napattan/CanopyGIS.git@v1.8.2"Citation
See CITATION.cff (MIT License; Author: Napat Phasundhiae, ORCID 0009-0006-4143-3162).