fix: review pass — atomic busy-guard, exact FCP mode filters, docs
- _ANALYZE_LOCK: busy-check through enqueue is atomic; overlapping
POSTs can no longer both pass the busy guard (one-GPU contract)
- fcp.mode_models now {letter: {stem: engine_classes}} mirroring FCP
models.modes engines[].classes exactly: B/D use v4-best truck-only
role (not truck-detector), C filters yolo11n to box only — prevents
sack double-count and truck-ROI divergence vs FCP batches
- CHANGELOG: document /api/analyze + stem filter fix
- handoff doc: correct precedence (fcp_mode wins over model_stems),
correct B/D mapping note
- tests: 4 new (mode B/C/D filters, concurrent-submit race) — 195 pass
This commit is contained in:
1 parent
ca0583b734
commit
371e9593d8
6 files changed
+210
-56
No files matched your search
@@ -34,9 +34,17 @@ curl -X POST http://localhost:9050/api/analyze \
|
||||
set on the recounter process. Unset = open (current default in
|
||||
`start_dashboard.sh` — set it before exposing beyond LAN).
|
||||
- **`fcp_mode`** = FCP model-mode letter `A|B|C|D`, mapped server-side via
|
||||
recounter `config.yaml → fcp.mode_models` (mirrors FCP `models.modes`;
|
||||
`C` = FCP's current `active_mode`). Explicit `model_stems` (multipart,
|
||||
repeatable) + `format_<stem>`/`filter_<stem>` still work as override.
|
||||
recounter `config.yaml → fcp.mode_models` — a mapping of
|
||||
`{letter: {stem: engine_classes}}` that mirrors FCP `models.modes`
|
||||
`engines[].classes` **exactly** (verified against FCP config 2026-10-20;
|
||||
note FCP B/D use **v4-best in the truck-only role**, NOT the
|
||||
`truck-detector` weights, and mode letters set per-stem class filters
|
||||
e.g. C: `v4-best:[truck,sack]`, `yolo11n…:[box]`). `C` = FCP's current
|
||||
`active_mode`.
|
||||
- **Field precedence:** if both `fcp_mode` and `model_stems` are sent,
|
||||
**`fcp_mode` wins and `model_stems` is ignored**. Use `model_stems`
|
||||
(multipart, repeatable) + `format_<stem>`/`filter_<stem>` only when
|
||||
`fcp_mode` is absent (manual/custom selection).
|
||||
- **Busy policy:** 409 not a queue. Caller retries. One job at a time =
|
||||
one GPU.
|
||||
- **Results:** poll `status_url` → `{"status":"COMPLETED","results":[
|
||||
@@ -154,9 +162,10 @@ and retry poll after a few seconds; do not auto-loop >3 retries.
|
||||
| FCP mode endpoint | `GET /api/model-modes` (fresh-read active_mode) |
|
||||
| Mode → engines detail | FCP `config.yaml models.modes` (C = combined v4-best + box model) |
|
||||
|
||||
**Model stem parity confirmed:** recounter `models/` has the same weight
|
||||
stems FCP modes reference (`v4-best`, `truck-detector`, `best`,
|
||||
`yolo11n-bbox-100ep-sack+box-20260909-best`).
|
||||
**Model stem parity confirmed:** recounter `models/` has the weight stems
|
||||
FCP mode presets use (`v4-best`, `best`, `yolo11n-bbox-100ep-sack+box-20260909-best`;
|
||||
FCP defines `truck-detector` path but **no mode uses it** — B/D give
|
||||
truck duty to v4-best, engine `classes` act as the per-stem filter).
|
||||
|
||||
## 6. Known limitations / deferred
|
||||
|
||||
|
||||
Reference in new issue
Block a user