scorevision: push artifact
Browse files
miner.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
"""
|
| 2 |
-
Score Vision SN44 — Unified miner v3.23 (2026-04-06). TTA consensus (person), FP32 fallback (vehicle), parts_confirm on vehicle challenges, car conf 0.60, VEH_MIN_WH=20.
|
| 3 |
Tri-model: vehicle (YOLO11m INT8 1280) + person (YOLO12s FP16 960 TRT) + petrol (end2end 640).
|
| 4 |
Pose model: YOLOv8n-pose FP16 640 for false-positive filtering + keypoint box refinement.
|
| 5 |
Vehicle weights loaded from secondary HF repo (meaculpitt/ScoreVision-Vehicle).
|
|
@@ -930,15 +930,15 @@ class Miner:
|
|
| 930 |
return out
|
| 931 |
|
| 932 |
def _infer_vehicle(self, image_bgr):
|
| 933 |
-
"""Vehicle detection with FP32 fallback on
|
| 934 |
|
| 935 |
-
Runs INT8 model first. If it returns
|
| 936 |
-
see block 7905900), retries with FP32 model
|
| 937 |
-
|
| 938 |
"""
|
| 939 |
boxes = self._infer_vehicle_core(image_bgr, self.veh_session)
|
| 940 |
|
| 941 |
-
if len(boxes)
|
| 942 |
boxes_fp32 = self._infer_vehicle_core(image_bgr, self.veh_session_fp32)
|
| 943 |
if len(boxes_fp32) > len(boxes):
|
| 944 |
logger.warning(
|
|
|
|
| 1 |
"""
|
| 2 |
+
Score Vision SN44 — Unified miner v3.23.1 (2026-04-06). Hotfix: FP32 fallback trigger 0 boxes only (was ≤1). TTA consensus (person), FP32 fallback (vehicle), parts_confirm on vehicle challenges, car conf 0.60, VEH_MIN_WH=20.
|
| 3 |
Tri-model: vehicle (YOLO11m INT8 1280) + person (YOLO12s FP16 960 TRT) + petrol (end2end 640).
|
| 4 |
Pose model: YOLOv8n-pose FP16 640 for false-positive filtering + keypoint box refinement.
|
| 5 |
Vehicle weights loaded from secondary HF repo (meaculpitt/ScoreVision-Vehicle).
|
|
|
|
| 930 |
return out
|
| 931 |
|
| 932 |
def _infer_vehicle(self, image_bgr):
|
| 933 |
+
"""Vehicle detection with FP32 fallback on catastrophic INT8 failure.
|
| 934 |
|
| 935 |
+
Runs INT8 model first. If it returns 0 boxes (true catastrophic failure,
|
| 936 |
+
see block 7905900), retries with FP32 model. Single-box results are
|
| 937 |
+
kept as-is — likely real sparse scenes, not INT8 degradation.
|
| 938 |
"""
|
| 939 |
boxes = self._infer_vehicle_core(image_bgr, self.veh_session)
|
| 940 |
|
| 941 |
+
if len(boxes) == 0 and self.veh_session_fp32:
|
| 942 |
boxes_fp32 = self._infer_vehicle_core(image_bgr, self.veh_session_fp32)
|
| 943 |
if len(boxes_fp32) > len(boxes):
|
| 944 |
logger.warning(
|