updates
This commit is contained in:
parent
8a5c520291
commit
a96285870d
|
@ -466,8 +466,7 @@ def non_max_suppression(prediction, conf_thres=0.5, nms_thres=0.5, multi_cls=Tru
|
||||||
Returns detections with shape:
|
Returns detections with shape:
|
||||||
(x1, y1, x2, y2, object_conf, conf, class)
|
(x1, y1, x2, y2, object_conf, conf, class)
|
||||||
"""
|
"""
|
||||||
# NMS method https://github.com/ultralytics/yolov3/issues/679 'or', 'and', 'merge', 'vision', 'vision_batch'
|
# NMS methods https://github.com/ultralytics/yolov3/issues/679 'or', 'and', 'merge', 'vision', 'vision_batch'
|
||||||
# method = 'merge' if conf_thres <= 0.01 else 'vision' # MERGE is highest mAP, VISION is fastest
|
|
||||||
|
|
||||||
# Box constraints
|
# Box constraints
|
||||||
min_wh, max_wh = 2, 10000 # (pixels) minimum and maximium box width and height
|
min_wh, max_wh = 2, 10000 # (pixels) minimum and maximium box width and height
|
||||||
|
|
Loading…
Reference in New Issue