scorevision: push artifact
Browse files
miner.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
"""
|
| 2 |
-
Score Vision SN44 — Unified miner v3.23.
|
| 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).
|
|
@@ -597,6 +597,10 @@ class Miner:
|
|
| 597 |
veh_weights,
|
| 598 |
providers=["CUDAExecutionProvider", "CPUExecutionProvider"],
|
| 599 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 600 |
self.veh_input_name = self.veh_session.get_inputs()[0].name
|
| 601 |
veh_shape = self.veh_session.get_inputs()[0].shape
|
| 602 |
self.veh_h = int(veh_shape[2])
|
|
@@ -934,6 +938,10 @@ class Miner:
|
|
| 934 |
see block 7905900), retries with FP32 model. Single-box results are
|
| 935 |
kept as-is — likely real sparse scenes, not INT8 degradation.
|
| 936 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
| 937 |
boxes = self._infer_vehicle_core(image_bgr, self.veh_session)
|
| 938 |
|
| 939 |
if len(boxes) == 0 and (self.veh_session_fp32 or self._veh_fp32_path):
|
|
|
|
| 1 |
"""
|
| 2 |
+
Score Vision SN44 — Unified miner v3.23.3 (2026-04-07). Diagnostic: vehicle provider logging. 4090 only. Lazy FP32, trigger 0 boxes. TTA consensus (person), parts_confirm on vehicle, car 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).
|
|
|
|
| 597 |
veh_weights,
|
| 598 |
providers=["CUDAExecutionProvider", "CPUExecutionProvider"],
|
| 599 |
)
|
| 600 |
+
veh_actual = self.veh_session.get_providers()
|
| 601 |
+
logger.warning(f"[init] Vehicle session ACTIVE providers: {veh_actual}")
|
| 602 |
+
if "CUDAExecutionProvider" not in veh_actual:
|
| 603 |
+
logger.error("[init] ⚠ VEHICLE IS ON CPU — CUDA EP NOT ACTIVE")
|
| 604 |
self.veh_input_name = self.veh_session.get_inputs()[0].name
|
| 605 |
veh_shape = self.veh_session.get_inputs()[0].shape
|
| 606 |
self.veh_h = int(veh_shape[2])
|
|
|
|
| 938 |
see block 7905900), retries with FP32 model. Single-box results are
|
| 939 |
kept as-is — likely real sparse scenes, not INT8 degradation.
|
| 940 |
"""
|
| 941 |
+
if not hasattr(self, '_veh_providers_logged'):
|
| 942 |
+
provs = self.veh_session.get_providers()
|
| 943 |
+
logger.warning(f"[vehicle] First inference — active providers: {provs}")
|
| 944 |
+
self._veh_providers_logged = True
|
| 945 |
boxes = self._infer_vehicle_core(image_bgr, self.veh_session)
|
| 946 |
|
| 947 |
if len(boxes) == 0 and (self.veh_session_fp32 or self._veh_fp32_path):
|