Skip to content

Releases

CanopyGIS v1.8.1 - Pure Zero-Shot Planar Tree-Crown Evaluator (MillionTrees v0.25 OOD F1 0.744)

Choose a tag to compare

@napattan napattan released this 22 Nov 12:34

CanopyGIS v1.8.1 - Pure Zero-Shot Planar Tree-Crown Delineation

v1.8.1 packages CanopyGIS's standalone pure zero-shot planar tree-crown delineation engine (canopygis_v18_eval) as an installable MIT Python package (pyproject.toml) verified across all three official MillionTrees v0.25 TreePolygons benchmark splits (5,815 tile evaluations / 458,851 predicted crowns) with zero forestry fine-tuning, zero external GSD/LiDAR metadata (gsd_m=None), and 100.000% planar topological validity (overlap_px = 0, Euler = 1) under < 5 GB peak GPU VRAM.

CanopyGIS v1.8.1 Official Out-of-Distribution Overlays Across All 6 Held-Out Sources (Paired Pred-Only vs GT+Pred)

Within-Distribution Visual Regimes & Honest Failure Modes (Urban, CIR, Boreal, Arid Savanna, Tropical)

CanopyGIS v1.8.1 Within-Distribution Regimes, Honest Failure Modes & Dataset QA


Highlights & Official MillionTrees v0.25 Benchmark Standing

Evaluation Dimension (OOD, 4,133 tiles) Model Configuration Visual Comparison Bar Measured Score & Delta
1. MaskAwarePrecision ↑ CanopyGIS v1.8.1 (Pure 0-Shot, 0.10)
Mask R-CNN Detectron2 (FT, 0.15)
CanopyRS DINO+SAM3 (0.30)
SAM3 (facebook/sam3, 0.10)
detectree2 (0.10)
███████████████████░ 0.936 (#1)
███████████████████░ 0.929
██████████████████░░ 0.878
█████████████░░░░░░░ 0.674
█████████████░░░░░░░ 0.640
#1 Overall (+0.058 vs CanopyRS)
0.007 behind CanopyGIS
Forestry-pretrained + tuned 0.30
+0.262 over raw SAM3
+0.296 over detectree2
2. Detection F1 ↑ CanopyRS DINO+SAM3 (0.30)
CanopyGIS v1.8.1 (Pure 0-Shot, 0.10)
detectree2 (0.10)
SAM3 (facebook/sam3, 0.10)
Mask R-CNN Detectron2 (FT, 0.15)
█████████████████░░░ 0.839
███████████████░░░░░ 0.744 (#2)
█████████████░░░░░░░ 0.628
████████████░░░░░░░░ 0.612
████████████░░░░░░░░ 0.601
#1 (forestry-pretrained + tuned 0.30)
#2 Overall / #1 Std Zero-Shot
+0.116 over detectree2
+0.132 over raw SAM3
+0.143 over FT Mask R-CNN
3. Strict Localization AP60 ↑ CanopyRS DINO+SAM3 (0.30)
CanopyGIS v1.8.1 (Pure 0-Shot, 0.10)
Mask R-CNN Detectron2 (FT, 0.15)
detectree2 (0.10)
SAM3 (facebook/sam3, 0.10)
████████████████████ 0.415
█████████████████░░░ 0.350 (#2)
███████████░░░░░░░░░ 0.232
███████████░░░░░░░░░ 0.222
████████░░░░░░░░░░░░ 0.175
81.2% AP60/AP40 retention
79.7% retention (2.00x raw SAM3)
+0.118 over FT Mask R-CNN
+0.128 over detectree2
Same facebook/sam3 weights

Unified 3-Split Summary (TreePolygons v0.25, image_size=1024, direct, gsd_m=None, score_threshold=0.10)

Official Split Tiles Pred / GT Crowns Recall MaskAwareP F1 AP40 / AP60
out-of-distribution (test) 4,133 309,049 / 124,786 0.617 0.936 (#1) 0.744 (#2) 0.439 / 0.350 (#2)
within-distribution (test) 1,623 146,168 / 85,625 0.459 0.882 (#2) 0.604 (#3) 0.243 / 0.156
validation (TLS Complete-59) 59 3,634 / 3,655 0.463 0.970 0.627 (#2) 0.354 / 0.160 (macro; pooled 0.329 / 0.118)
  • 100.000% Planar Topology (458,851 Cumulative Crowns): overlap_px = 0, empty_masks = 0, multi_comp = 0, holes = 0, Euler != 1 = 0, and rect_fill <= 0.915 (max = 0.914778). Strictly planar masks eliminate greedy matching ambiguity (Greedy > 0.40 == Hungarian > 0.40 = 75,783 TPs across all 4,133 OOD tiles) and are GIS-ready without downstream NMS (MergeCommission = 0.003 OOD / 0.004 WD / 0.002 TLS-59).
  • Unforgiving Plain Precision (P off, img / crown-pooled): OOD 0.386 / 0.245 (F1_plain = 0.475), WD 0.337 / 0.232 (F1_plain = 0.389), and #1 overall on held-out TLS Complete-59 (0.528 tile-mean / 0.448 crown-pooled; 0.5060 2-source macro / 0.5275 59-tile img-mean via rescore_validation_ap.py, F1_plain = 0.494 / 0.4770 macro, #1 overall Allen AP60 = 0.0628).
  • Single-GPU Efficiency & Bit-Exact Determinism: 4.27 GiB (4,374 MiB) peak GPU VRAM on a single RTX 5060 Ti 16 GB (12.73 s/tile OOD / 13.19 s/tile WD) with 0 count, score, or RLE mask differences across all 481 overlapping WD ∩ OOD test tiles.

What's Included in v1.8.1

  • pyproject.toml: Clean PEP 621 MIT package exporting canopygis_v18_eval and canopy_v2 directly via pip or uv.
  • src/canopygis_v18_eval.py: Self-contained pure zero-shot planar evaluator (CanopyGISv18Predictor) with post-carve watershed score remapping (DeltaMask = 0 px, +3.20..+3.33 AP40 / +1.53..+2.12 AP60 on native cached splits; +3.10 / +0.90 on pooled 1024 Complete-59), zero import-time stdout mutation, and < 5 GB peak VRAM.
  • scripts/verify_v181_parity_and_ap.py: Standalone parity and topological invariant test suite.
  • docs/assets/panel_v181_ood_official.jpg & docs/assets/panel_v181_wd_regimes.jpg: Official 6-source held-out OOD and 6-regime WD paired visual proof plates (Left: Pred Only | Right: Violet GT + Gold Pred).

Installation & Quick Start

pip install "canopygis @ git+https://github.com/napattan/CanopyGIS.git@v1.8.1"
from canopygis_v18_eval import CanopyGISv18Predictor

predictor = CanopyGISv18Predictor.from_pretrained(model_id="facebook/sam3", device="cuda")
pred = predictor.predict_tile(img_rgb_uint8, gsd_m=None, score_threshold=0.10)
# Returns {"y": uint8 Tensor[N, H, W], "scores": float32 Tensor[N], "labels": int64 Tensor[N]}

(Access to the gated facebook/sam3 checkpoint on Hugging Face is required.)

License: MIT