Repository navigation
Releases
Releases · iscvlab/CanopyGIS
CanopyGIS v1.8.1 - Pure Zero-Shot Planar Tree-Crown Evaluator (MillionTrees v0.25 OOD F1 0.744)
CanopyGIS v1.8.1 - Pure Zero-Shot Planar Tree-Crown Evaluator (MillionTrees v0.25 OOD F1 0.744)
Latest
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.
Within-Distribution Visual Regimes & Honest Failure Modes (Urban, CIR, Boreal, Arid Savanna, Tropical)
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 CanopyGISForestry-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 retention79.7% retention (2.00x raw SAM3)+0.118 over FT Mask R-CNN+0.128 over detectree2Same 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,851Cumulative Crowns):overlap_px = 0,empty_masks = 0,multi_comp = 0,holes = 0,Euler != 1 = 0, andrect_fill <= 0.915(max = 0.914778). Strictly planar masks eliminate greedy matching ambiguity (Greedy > 0.40 == Hungarian > 0.40 = 75,783TPs across all4,133OOD tiles) and are GIS-ready without downstream NMS (MergeCommission = 0.003OOD /0.004WD /0.002TLS-59). - Unforgiving Plain Precision (
P off,img / crown-pooled): OOD0.386 / 0.245(F1_plain = 0.475), WD0.337 / 0.232(F1_plain = 0.389), and#1overall on held-out TLSComplete-59(0.528tile-mean /0.448crown-pooled;0.50602-source macro /0.527559-tile img-mean viarescore_validation_ap.py,F1_plain = 0.494/0.4770macro,#1overallAllen AP60 = 0.0628). - Single-GPU Efficiency & Bit-Exact Determinism:
4.27 GiB(4,374 MiB) peak GPU VRAM on a singleRTX 5060 Ti 16 GB(12.73 s/tileOOD /13.19 s/tileWD) with0count, score, or RLE mask differences across all481overlappingWD ∩ OODtest tiles.
What's Included in v1.8.1
pyproject.toml: Clean PEP 621 MIT package exportingcanopygis_v18_evalandcanopy_v2directly viapiporuv.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.33AP40 /+1.53..+2.12AP60 on native cached splits;+3.10 / +0.90on pooled1024Complete-59), zero import-timestdoutmutation, and< 5 GBpeak 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

