deploy push for crime (deploy)
Browse files- miner.py +4 -3
- weights.onnx +2 -2
miner.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# build-marker:
|
| 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:
|
| 112 |
-
|
|
|
|
| 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:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:14cfd547ec7b6f2e675546492236b4ded323076bd72d38cf30591e2105c69ea0
|
| 3 |
+
size 19409670
|