SuperBitDev commited on
Commit
6542365
·
verified ·
1 Parent(s): 3cce570

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. miner.py +2 -2
miner.py CHANGED
@@ -181,7 +181,7 @@ class Miner:
181
  boxes: np.ndarray,
182
  scores: np.ndarray,
183
  sigma: float = 0.5,
184
- score_thresh: float = 0.01,
185
  ) -> tuple[np.ndarray, np.ndarray]:
186
  """
187
  Soft-NMS: Gaussian decay of overlapping scores instead of hard removal.
@@ -264,7 +264,7 @@ class Miner:
264
  boxes = self._clip_boxes(boxes, (orig_w, orig_h))
265
 
266
  if apply_optional_dedup and len(boxes) > 1:
267
- keep_idx, scores = self._soft_nms(boxes, scores)
268
  boxes = boxes[keep_idx]
269
  cls_ids = cls_ids[keep_idx]
270
 
 
181
  boxes: np.ndarray,
182
  scores: np.ndarray,
183
  sigma: float = 0.5,
184
+ score_thresh: float = 0.2,
185
  ) -> tuple[np.ndarray, np.ndarray]:
186
  """
187
  Soft-NMS: Gaussian decay of overlapping scores instead of hard removal.
 
264
  boxes = self._clip_boxes(boxes, (orig_w, orig_h))
265
 
266
  if apply_optional_dedup and len(boxes) > 1:
267
+ keep_idx, scores = self._soft_nms(boxes, scores, sigma=self.iou_thres, score_thresh=self.conf_thres)
268
  boxes = boxes[keep_idx]
269
  cls_ids = cls_ids[keep_idx]
270