deploy push for beverage (deploy)
Browse files
miner.py
CHANGED
|
@@ -25,25 +25,6 @@ OLD v7 (kept for context, see miner.py.v7_backup_*):
|
|
| 25 |
- alfred-aligned: conf=0.55, iou=0.5, TTA=union-then-NMS-then-boost
|
| 26 |
- yolo26n FP32 (~10.3 MB)
|
| 27 |
"""
|
| 28 |
-
|
| 29 |
-
Changes from v4:
|
| 30 |
-
- Input resolution 640 -> 1280. Stadium-CCTV frames have 30-70 px objects
|
| 31 |
-
that go below the detector head's effective stride at 640. At 1280 they
|
| 32 |
-
stay detectable. Confirmed: 0 detections at 640 vs >=1 at 1280 on the
|
| 33 |
-
actual challenge-61525 frame from manako.scoredata.me.
|
| 34 |
-
- cv2.INTER_CUBIC for upscale (linear for downscale): preserves small-object
|
| 35 |
-
pixels when scaling 1408x768 -> 1280-letterbox.
|
| 36 |
-
- TTA enabled: horizontal flip + per-class hard NMS merge + confidence boost
|
| 37 |
-
(each kept box gets max conf among overlapping cluster). Boost pushes
|
| 38 |
-
consensus detections higher in the rank-ordered conf curve, helping mAP.
|
| 39 |
-
- Cross-class dedup at IoU 0.7 (after per-class NMS, in single-frame path).
|
| 40 |
-
- ort.preload_dlls() instead of manual nvidia-* ctypes preload.
|
| 41 |
-
- Single postproc handler (no raw fallback) since our export is e2e [1,300,6].
|
| 42 |
-
|
| 43 |
-
v7 model is trained natively in validator class order [cup, bottle, can] on
|
| 44 |
-
merged_v7_aug (38k v1+OI images + 10k CCTV-degraded augmentations, 30% ratio),
|
| 45 |
-
so cls_remap is identity. Compare to v5 emu which used [1,2,0] remap.
|
| 46 |
-
"""
|
| 47 |
import math
|
| 48 |
from pathlib import Path
|
| 49 |
|
|
|
|
| 25 |
- alfred-aligned: conf=0.55, iou=0.5, TTA=union-then-NMS-then-boost
|
| 26 |
- yolo26n FP32 (~10.3 MB)
|
| 27 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
import math
|
| 29 |
from pathlib import Path
|
| 30 |
|