meaculpitt commited on
Commit
5a2aee2
·
verified ·
1 Parent(s): 2179416

scorevision: push artifact

Browse files
Files changed (1) hide show
  1. miner.py +6 -6
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. Person: DMSC19-inspired graduated consensus replaces soft-NMS (both=0.50, orig=0.60, flip=0.75). Vehicle: FP32 retry on ≤1 box, parts_confirm with empty person_boxes, plate 80px, car 0.60.
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 degraded INT8 output.
934
 
935
- Runs INT8 model first. If it returns ≤1 box (likely INT8 degradation,
936
- see block 7905900), retries with FP32 model and uses whichever
937
- produced more detections.
938
  """
939
  boxes = self._infer_vehicle_core(image_bgr, self.veh_session)
940
 
941
- if len(boxes) <= 1 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(
 
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(