Increase NMS fixed time limit 300ms + 30ms/img (#7957)

* Increase NMS fixed time limit to 200ms

* Update general.py
pull/7959/head
Glenn Jocher 2022-05-24 14:11:03 +02:00 committed by GitHub
parent b5ebd47d64
commit 68ff6c9c08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.05 * bs # seconds to quit after
time_limit = 0.3 + 0.03 * 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