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

deploy push for crime (deploy)

Browse files
Files changed (2) hide show
  1. miner.py +4 -3
  2. weights.onnx +2 -2
miner.py CHANGED
@@ -1,4 +1,4 @@
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,8 +108,9 @@ 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
- # 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):
 
1
+ # build-marker: v5-alfred-only-no-tta-rollback
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: v5 alfred ONNX is FP32. The 0.5 dtype check in deploy_agent.sh
112
+ # enforces this match. Keep in sync with weights.onnx export format.
113
+ return np.ascontiguousarray(x, dtype=np.float32), ratio, pad
114
 
115
  @staticmethod
116
  def _hard_nms(boxes, scores, iou_thresh):
weights.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:43155ab69593c1dd967e3e377665a281e71f431911e349af8d6227c7f94591b6
3
- size 19408880
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14cfd547ec7b6f2e675546492236b4ded323076bd72d38cf30591e2105c69ea0
3
+ size 19409670