licensy commited on
Commit
54d9d00
·
verified ·
1 Parent(s): 3dc0690

scorevision: push artifact

Browse files
Files changed (1) hide show
  1. miner.py +15 -15
miner.py CHANGED
@@ -3,16 +3,15 @@
3
  Base weights: plate_v3 (YOLO26s fine-tuned on Roboflow-filtered + 10x live pseudo-GT,
4
  resumed from plate_v2). fp16 end2end ONNX, static 1x3x1280x1280, ~19.4 MB.
5
 
6
- Inference pipeline (recall-biased, latency-optimized):
7
- - Single full-image forward pass + soft-NMS (NO hflip TTA drop saves ~1s
8
- to reduce p95 variance; TEE chute sees 10s gate, we need headroom)
9
- - Recall-biased preset: conf=0.22, iou=0.41, sigma=0.685, max_det=22
10
- - No tile fallback
11
-
12
- Bench (c=0.22 without TTA, estimated): gated ≈ 0.436, mAP ≈ 0.975
13
- Trade +0.005 gated for ~1s faster median / safer p95 vs 10s validator gate.
14
- Prior LAT events (p95 11.4s and 99s cold-start) showed tail events dominate
15
- when median is 2-3s; cutting 1 forward pass pulls median to ~1.5s.
16
  Compared to:
17
  plate_v2 best: gated=0.424
18
  hermestech best: gated=0.422
@@ -124,11 +123,12 @@ class Miner:
124
  # missed borderline plates on shards where competitors scored 0.318.
125
  # Trade: slightly higher fp/img on easy shards (capped by max_det), but
126
  # recovers recall on hard shards where it matters most.
127
- self.conf_thres = 0.22
128
- self.iou_thres = 0.41
129
- self.sigma = 0.685
130
- self.max_det = 22
131
- self.use_tta = False # disabled: single forward pass, half the latency
 
132
 
133
  print(f"ONNX model loaded from: {model_path}")
134
  print(f"ONNX providers: {self.session.get_providers()}")
 
3
  Base weights: plate_v3 (YOLO26s fine-tuned on Roboflow-filtered + 10x live pseudo-GT,
4
  resumed from plate_v2). fp16 end2end ONNX, static 1x3x1280x1280, ~19.4 MB.
5
 
6
+ Weights: plate_v4 (resumed from plate_v3 + heavier CCTV aug + live×15 + 10× epochs).
7
+ Bench on 221-shard pool: gated 0.436, mAP 0.980 (highest of all tested models).
8
+ Beats plate_v3 (0.431), smile0123/m4 (0.406), 5GRAm (0.401), hermestech (0.418).
9
+
10
+ Inference pipeline (bench-winner preset):
11
+ - Single full-image pass + hflip TTA + soft-NMS + hard-NMS
12
+ - softnms(conf=0.30, iou=0.45, sigma=0.5, max_det=16)
13
+ - Bench: gated 0.436, fp/img 0.51, ms_p95 ~160 locally (A4000)
14
+ - On pro_6000 + TEE: expect ~2-3s p95 including network/attest overhead
 
15
  Compared to:
16
  plate_v2 best: gated=0.424
17
  hermestech best: gated=0.422
 
123
  # missed borderline plates on shards where competitors scored 0.318.
124
  # Trade: slightly higher fp/img on easy shards (capped by max_det), but
125
  # recovers recall on hard shards where it matters most.
126
+ # plate_v4 bench winner: softnms(c30,md16) at gated=0.436, mAP=0.980
127
+ self.conf_thres = 0.30
128
+ self.iou_thres = 0.45
129
+ self.sigma = 0.5
130
+ self.max_det = 16
131
+ self.use_tta = True # hflip TTA — bench-verified for mAP gain
132
 
133
  print(f"ONNX model loaded from: {model_path}")
134
  print(f"ONNX providers: {self.session.get_providers()}")