Spaces:
Runtime error
Runtime error
Commit History
-
Fix example button: resolve relative path before chdir
James BallEXAMPLE_FILE is a relative path ("./example_danum_tile.tif") but run_detectree2 does os.chdir(workdir) before shutil.copy2, so the relative path resolves against the temp directory instead of /app. os.path.abspath() before the chdir fixes this. Made-with: Cursor25fc09d
-
Use clean_crowns with built-in containment check, drop remove_contained_crowns
clean_crowns now handles nested crowns natively — most confident wins. post_clean fills gaps left when a large less-confident crown is replaced by a small confident one. No separate removal step needed. Pins detectree2 to 1af7f9f. Co-authored-by: Cursor <cursoragent@cursor.com>ce8e246 -
Add remove_contained_crowns as final cleanup step
Adds a final pass after post_clean that removes small crowns nested inside larger ones. The core clean_crowns pipeline is untouched -- confidence still wins. This just cleans up visual clutter in the final output. Pins detectree2 to fdb3973. Co-authored-by: Cursor <cursoragent@cursor.com>26a4e9a -
Add post_clean step to reduce crowns-within-crowns artefacts
Adds an iterative post_clean gap-filling pass after clean_crowns. This fills in missed crowns while removing nested/overlapping duplicates that looked poor in the demo output. Pins detectree2 to commit a8a19da with the optimised post_clean. Co-authored-by: Cursor <cursoragent@cursor.com>6db9c74 -
Enable full_coverage tiling for complete edge prediction
Uses the new full_coverage=True parameter in tile_data so that edge pixels of the input raster are no longer missed during inference. Also pins detectree2 to commit e241c71 which adds this feature. Co-authored-by: Cursor <cursoragent@cursor.com>096a852 -
Fix overlay image 500 error: restore CWD before cleaning workdir
Co-authored-by: Cursor <cursoragent@cursor.com>3880959 -
Rich stats table, fix overlay, clearer download, default confidence 0.3
- Stats now display as a markdown table with: trees detected, mean confidence, median/total crown area, raster area, crown density - Default confidence threshold changed from 0.5 to 0.3 - GPKG download label now has download icon and clearer text - Error returns use empty string for markdown component compatibility Co-authored-by: Cursor <cursoragent@cursor.com>69b49c8 -
Add step-by-step progress bar during prediction
Shows: Validating → Tiling → Loading model → Predicting → Collecting → Projecting → Stitching → Generating overlay → Done Co-authored-by: Cursor <cursoragent@cursor.com>f1c933e -
Update processing guidance and add app creator credits
Co-authored-by: Cursor <cursoragent@cursor.com>1c410e5 -
Replace file size guidance with upper limit
Co-authored-by: Cursor <cursoragent@cursor.com>ecf4013 -
Fix example button: run prediction directly instead of populating inputs
Co-authored-by: Cursor <cursoragent@cursor.com>eecfc8d -
Fix: save outputs to separate dir before cleaning workdir
Co-authored-by: Cursor <cursoragent@cursor.com>b2f8dfd -
UX improvements: example tile, friendly errors, cleanup, processing note
1. Bundled example GeoTIFF (Danum Valley) with "Load example" button 2. User-friendly error messages (no internal paths exposed) 3. Temp directory cleanup after each prediction 4. Processing time estimate shown above inputs 5. Manage Weights tab hidden unless DTR2_SHOW_ADMIN env var is set Co-authored-by: Cursor <cursoragent@cursor.com>381f62e -
Update model dropdown info text
Co-authored-by: Cursor <cursoragent@cursor.com>78c210a -
Fix: remove unsupported info param from gr.File, move hint to label
Co-authored-by: Cursor <cursoragent@cursor.com>ed125e8 -
Improve UI: recommended model label, hover info, forestmap.ai branding
- Dropdown shows "Flexible (recommended)" with model descriptions - Info tooltips on file upload, model picker, and confidence slider - Header includes forestmap.ai credit, GitHub and paper links Co-authored-by: Cursor <cursoragent@cursor.com>aa745c6 -
Add null check for file upload to show clear error message
Co-authored-by: Cursor <cursoragent@cursor.com>f641304
-
Auto-download model weights from Zenodo on first boot
Co-authored-by: Cursor <cursoragent@cursor.com>555c20e
-
revert
4298555 -
padding
86477ce -
tiling debug
592792e -
padding fix
b470ccf -
padding fix
d663f07 -
padding fix
d352aa6 -
add padding
f74ef66 -
revert
18df9a4
-
tiling
f21a018 -
tiling
2c6124d -
tiling
4e466ee -
padding cutoff issue
be207af -
change weight file
2d58642 -
persistant upload
101609b -
persistant storage
3a08f1d -
persistant storage test
824527d
-
ui fix
250ad0d -
app cleanup
49e75a7 -
fix
84f1e4c -
fix
82a8552
-
app
673aea5 -
app
203d933
-
fix
b3b2242 -
app
28ae942
-
fix
76c7b4d -
fix
ff76b37 -
redo
9021e76 -
redo
0c8976a
-
app
76e69ce -
app
e993ff2 -
app
fcdd7ae -
app
cd6bf42