Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 24, 2021
1 parent a6ecb2d commit 0c4e0ea
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions yolort/runtime/yolo_graphsurgeon.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,15 @@ def register_nms(
op = "BatchedNMS_TRT"
attrs = {
"plugin_version": "1",
'shareLocation': True,
'backgroundLabelId': -1, # no background class
'numClasses': self.num_classes,
'topK': 1024,
'keepTopK': detections_per_img,
'scoreThreshold': score_thresh,
'iouThreshold': nms_thresh,
'isNormalized': normalized,
'clipBoxes': False,
"shareLocation": True,
"backgroundLabelId": -1, # no background class
"numClasses": self.num_classes,
"topK": 1024,
"keepTopK": detections_per_img,
"scoreThreshold": score_thresh,
"iouThreshold": nms_thresh,
"isNormalized": normalized,
"clipBoxes": False,
}

# NMS Outputs
Expand Down

0 comments on commit 0c4e0ea

Please sign in to comment.