scorevision: push artifact
Browse files
miner.py
CHANGED
|
@@ -60,7 +60,7 @@ class Miner:
|
|
| 60 |
|
| 61 |
# Box sanity filter: drop tiny / degenerate / image-spanning / extreme
|
| 62 |
# aspect ratio boxes.
|
| 63 |
-
# min_box_area =
|
| 64 |
# value of 64 (8x8) silently discarded narrow
|
| 65 |
# distant signs like a 10x6 px overhead chevron.
|
| 66 |
# min_side = 3 -> matches min_box_area; anything thinner is
|
|
@@ -144,8 +144,8 @@ class Miner:
|
|
| 144 |
# weights.onnx is exported at 1280x1280 (Ultralytics imgsz metadata),
|
| 145 |
# static (dynamic=False). The default is only the fallback for when the
|
| 146 |
# ONNX input dims aren't fixed; the real value is read from the session.
|
| 147 |
-
self.input_height = self._safe_dim(self.input_shape[2], default=
|
| 148 |
-
self.input_width = self._safe_dim(self.input_shape[3], default=
|
| 149 |
|
| 150 |
self.use_tta = False
|
| 151 |
self.use_tile_tta = False
|
|
|
|
| 60 |
|
| 61 |
# Box sanity filter: drop tiny / degenerate / image-spanning / extreme
|
| 62 |
# aspect ratio boxes.
|
| 63 |
+
# min_box_area = 8x8 -> 8x8 is the smallest credible sign. The old
|
| 64 |
# value of 64 (8x8) silently discarded narrow
|
| 65 |
# distant signs like a 10x6 px overhead chevron.
|
| 66 |
# min_side = 3 -> matches min_box_area; anything thinner is
|
|
|
|
| 144 |
# weights.onnx is exported at 1280x1280 (Ultralytics imgsz metadata),
|
| 145 |
# static (dynamic=False). The default is only the fallback for when the
|
| 146 |
# ONNX input dims aren't fixed; the real value is read from the session.
|
| 147 |
+
self.input_height = self._safe_dim(self.input_shape[2], default=640)
|
| 148 |
+
self.input_width = self._safe_dim(self.input_shape[3], default=640)
|
| 149 |
|
| 150 |
self.use_tta = False
|
| 151 |
self.use_tile_tta = False
|