fix(plants): lower PlantCLEF confidence threshold to 0.1; use bundled class map #445

Merged
chris merged 1 commit from fix/plantclef-classmap into main 2026-06-22 22:20:36 +02:00
Owner

Changes

  1. Confidence threshold: _CONFIDENCE_THRESHOLD reduced from 0.4 to 0.1 in both code paths (scope_bbox + whole-image). PlantCLEF 2024 model calibrates lower than PlantNet300k — 0.4 blocked all valid identifications.

  2. Bad class map deleted: Downloaded class map had numeric taxon IDs instead of species names. Deleted from host volume so registry falls back to bundled copy (/app/class_maps/class_map_plantclef2024.json) which has real names like Lactuca virosa L..

Tests updated

  • Updated 4 tests that asserted against old 0.4 threshold to use values < 0.1 for "low confidence" cases.
  • All 127 tests pass.
## Changes 1. **Confidence threshold**: `_CONFIDENCE_THRESHOLD` reduced from 0.4 to 0.1 in both code paths (scope_bbox + whole-image). PlantCLEF 2024 model calibrates lower than PlantNet300k — 0.4 blocked all valid identifications. 2. **Bad class map deleted**: Downloaded class map had numeric taxon IDs instead of species names. Deleted from host volume so registry falls back to bundled copy (`/app/class_maps/class_map_plantclef2024.json`) which has real names like `Lactuca virosa L.`. ## Tests updated - Updated 4 tests that asserted against old 0.4 threshold to use values < 0.1 for "low confidence" cases. - All 127 tests pass.
fix(plants): lower PlantCLEF confidence threshold to 0.1; use bundled class map
All checks were successful
Build and Deploy / Detect changed services and test scopes (push) Successful in 44s
Build and Deploy / Run scoped PR tests (push) Has been skipped
Build and Deploy / Smoke API and media worker (push) Has been skipped
Build and Deploy / Smoke web (push) Has been skipped
Build and Deploy / Smoke ML worker (push) Has been skipped
Build and Deploy / Build plants worker image (push) Has been skipped
Build and Deploy / Build people worker image (push) Has been skipped
Build and Deploy / Build converter worker image (push) Has been skipped
Build and Deploy / Build API image (push) Has been skipped
Build and Deploy / Build media worker image (push) Has been skipped
Build and Deploy / Build web image (push) Has been skipped
Build and Deploy / Build ML worker image (push) Has been skipped
Build and Deploy / Deploy API (push) Has been skipped
Build and Deploy / Deploy web (push) Has been skipped
Build and Deploy / Deploy media worker (push) Has been skipped
Build and Deploy / Deploy ML worker (push) Has been skipped
Build and Deploy / Deploy plants worker (push) Has been skipped
Build and Deploy / Deploy people worker (push) Has been skipped
Build and Deploy / Deploy converter worker (push) Has been skipped
Build and Deploy / Clean Docker build artifacts (push) Has been skipped
9d461b5586
chris merged commit 9fdd2de838 into main 2026-06-22 22:20:36 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
chris/memories!445
No description provided.