This commit is contained in:
Glenn Jocher 2019-12-29 15:31:57 -08:00
parent d13312b751
commit f3e87862a4
1 changed files with 1 additions and 1 deletions

View File

@ -507,7 +507,7 @@ def non_max_suppression(prediction, conf_thres=0.5, iou_thres=0.5, multi_cls=Tru
# NMS methods 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'
# Box constraints # Box constraints
min_wh, max_wh = 2, 4096 # (pixels) minimum and maximium box width and height min_wh, max_wh = 2, 4096 # (pixels) minimum and maximum 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):