updates
This commit is contained in:
parent
9e9a6a1425
commit
340e0371f8
|
@ -511,8 +511,8 @@ def non_max_suppression(prediction, conf_thres=0.5, nms_thres=0.5):
|
||||||
if n == 1:
|
if n == 1:
|
||||||
det_max.append(dc) # No NMS required if only 1 prediction
|
det_max.append(dc) # No NMS required if only 1 prediction
|
||||||
continue
|
continue
|
||||||
elif n > 100:
|
elif n > 500:
|
||||||
dc = dc[:100] # limit to first 100 boxes: https://github.com/ultralytics/yolov3/issues/117
|
dc = dc[:500] # limit to first 100 boxes: https://github.com/ultralytics/yolov3/issues/117
|
||||||
|
|
||||||
# Non-maximum suppression
|
# Non-maximum suppression
|
||||||
if nms_style == 'OR': # default
|
if nms_style == 'OR': # default
|
||||||
|
|
Loading…
Reference in New Issue