Skip to content

Commit

Permalink
Increase NMS time limit to 50 ms/img (ultralytics#7956)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher authored May 24, 2022
1 parent c215878 commit b5ebd47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ def non_max_suppression(prediction,
# min_wh = 2 # (pixels) minimum box width and height
max_wh = 7680 # (pixels) maximum box width and height
max_nms = 30000 # maximum number of boxes into torchvision.ops.nms()
time_limit = 0.1 + 0.03 * bs # seconds to quit after
time_limit = 0.1 + 0.05 * bs # seconds to quit after
redundant = True # require redundant detections
multi_label &= nc > 1 # multiple labels per box (adds 0.5ms/img)
merge = False # use merge-NMS
Expand Down

0 comments on commit b5ebd47

Please sign in to comment.