This commit is contained in:
Glenn Jocher 2019-12-06 11:02:02 -08:00
parent 6340074c2a
commit d00a91aa1b
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ def non_max_suppression(prediction, conf_thres=0.5, nms_thres=0.5):
(x1, y1, x2, y2, object_conf, class_conf, class) (x1, y1, x2, y2, object_conf, class_conf, class)
""" """
min_wh, max_wh = 2, 30000 # (pixels) minimum and maximium box width and height min_wh, max_wh = 2, 10000 # (pixels) minimum and maximium box width and height
output = [None] * len(prediction) output = [None] * len(prediction)
for image_i, pred in enumerate(prediction): for image_i, pred in enumerate(prediction):