meaculpitt commited on
Commit
08e1204
·
verified ·
1 Parent(s): f06e913

deploy push for crime (deploy)

Browse files
Files changed (2) hide show
  1. README.md +0 -2
  2. miner.py +3 -2
README.md CHANGED
@@ -19,5 +19,3 @@ manako:
19
  type: detections
20
  description: List of detections (balaclava / hoodie / glove / bat / spray paint / graffiti) with bbox + confidence
21
  ---
22
-
23
- <!-- rev_bump: 20260506T080131Z v6 deploy retry -->
 
19
  type: detections
20
  description: List of detections (balaclava / hoodie / glove / bat / spray paint / graffiti) with bbox + confidence
21
  ---
 
 
miner.py CHANGED
@@ -1,4 +1,4 @@
1
- # build-marker: v6-yolo26s-1280-cctv-aug-spray
2
  """SN44 crime detection miner — ALFRED ONLY, no TTA, no RF-DETR.
3
 
4
  v5 (2026-05-04): drops the RF-DETR branch entirely. Component benchmarks showed
@@ -108,7 +108,8 @@ class Miner:
108
  canvas, ratio, pad = self._letterbox(image_bgr)
109
  rgb = cv2.cvtColor(canvas, cv2.COLOR_BGR2RGB)
110
  x = (rgb.astype(np.float32) / 255.0).transpose(2, 0, 1)[None, ...]
111
- return np.ascontiguousarray(x, dtype=np.float32), ratio, pad
 
112
 
113
  @staticmethod
114
  def _hard_nms(boxes, scores, iou_thresh):
 
1
+ # build-marker: v6-yolo26s-fp16-dtype-fix
2
  """SN44 crime detection miner — ALFRED ONLY, no TTA, no RF-DETR.
3
 
4
  v5 (2026-05-04): drops the RF-DETR branch entirely. Component benchmarks showed
 
108
  canvas, ratio, pad = self._letterbox(image_bgr)
109
  rgb = cv2.cvtColor(canvas, cv2.COLOR_BGR2RGB)
110
  x = (rgb.astype(np.float32) / 255.0).transpose(2, 0, 1)[None, ...]
111
+ # NOTE: ONNX export uses half=True → tensor(float16) input. Must match.
112
+ return np.ascontiguousarray(x, dtype=np.float16), ratio, pad
113
 
114
  @staticmethod
115
  def _hard_nms(boxes, scores, iou_thresh):