forked from andrew/feedmill-recounter
- _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
57 lines
2.2 KiB
YAML
57 lines
2.2 KiB
YAML
# config.yaml — tunable pipeline parameters (single source of truth).
|
|
# Edit values here instead of the code. Restart the web app / re-run CLI to apply.
|
|
# Zones (polygons) live in zones.json. Tracker hyperparams live in cfg/tracker.yaml.
|
|
# Missing keys fall back to built-in defaults — partial files are fine.
|
|
|
|
detection:
|
|
sack_conf: 0.4 # detector confidence for sack
|
|
box_conf: 0.35 # detector confidence for box
|
|
truck_conf: 0.45 # truck detector confidence
|
|
|
|
# Per-class minimum bbox area (px^2) — authored in platform's 1280x720
|
|
# reference space; pipeline scales to actual frame size (physical parity).
|
|
min_bbox_area:
|
|
sack: 1500
|
|
box: 1500
|
|
truck: 5000
|
|
|
|
iou:
|
|
dedup: 0.5 # cross-model duplicate merge threshold
|
|
suppress_sack_box: 0.4 # drop sack overlapping a box (box label wins)
|
|
synthetic: 0.3 # synthetic track ID matching
|
|
sticky_truck: 0.3 # keep previous main truck pick
|
|
|
|
roi:
|
|
ema_alpha: 0.15 # truck ROI smoothing
|
|
deadband_px: 10 # skip EMA when all edges moved less than this
|
|
freeze_after: 3 # consecutive detections before freeze mode locks
|
|
|
|
stabilizer:
|
|
ema_alpha: 0.35
|
|
max_hold: 25 # frames to hold occluded tracks (platform parity: 25 = ~1s @25fps)
|
|
|
|
pipeline:
|
|
detect_interval: 1 # detection+tracking every N frames (1 = every frame, most accurate)
|
|
sup_det_interval: 5 # supplementary models every N frames
|
|
truck_det_interval: 15 # truck ROI detection every N frames
|
|
preview_every_n: 5 # preview JPEG every N frames
|
|
|
|
fcp:
|
|
# FCP model-mode letter -> {model stem: engine-contributed classes}, for
|
|
# POST /api/analyze. Mirrors karung_counter_semarang config.yaml
|
|
# models.modes engines[].classes exactly (v4-best serves the truck-only
|
|
# role in B/D — NOT the truck-detector weights). C = active_mode.
|
|
mode_models:
|
|
A:
|
|
v4-best: [truck, sack]
|
|
B:
|
|
v4-best: [truck]
|
|
"yolo11n-bbox-100ep-sack+box-20260909-best": [sack, box]
|
|
C:
|
|
v4-best: [truck, sack]
|
|
"yolo11n-bbox-100ep-sack+box-20260909-best": [box]
|
|
D:
|
|
v4-best: [truck]
|
|
best: [sack]
|
|
"yolo11n-bbox-100ep-sack+box-20260909-best": [box]
|