Skip to content

CanopyGIS v1.8.2 — Zero-Shot Planar Tree Crown Delineation (Euler==1)

Latest

Choose a tag to compare

@napattan napattan released this 03 Dec 22:47
· 2 commits to main since this release

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_imagery and helper routines in src/main.py and src/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 Nut 2,987 crowns, Nong Khaem 2,110 crowns, Ramintra Sports Park 1,462 crowns).
  • Automated CPU Test Suite (26/26 pytest PASS) & 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.yml verifying flake8 + pytest across Python 3.10–3.12 on every push and PR.
  • FAIR Academic Metadata & Packaging: Added CITATION.cff (cff-version: 1.2.0, MIT, ORCID 0009-0006-4143-3162), CONTRIBUTING.md, and updated pyproject.toml (version = "1.8.2", optional extras sam3, web, dev) for reproducible pip install and 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,815 tiles / 458,851 predicted 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.py trails forestry-pretrained CanopyRS (thr 0.30) on overall OOD F1 (0.744 vs 0.839) and WD F1 (0.604 vs 0.789), and under-recalls sparse arid/savanna shrubs and dense tropical scenes (Bohlman et al. 2008 Recall 0.168). Optional Weecology DeepForest 2.1.0 nadir treetop seeding (src/canopy_v2.py) is portal-only and never used in MillionTrees evaluation.

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).