Skip to content

Commit

Permalink
Apply pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqwang committed Jan 24, 2022
1 parent 88a4c22 commit c72dd6a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions yolort/runtime/logits_decoder.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) 2021, yolort team. All rights reserved.
from typing import List, Tuple

import torch
from torch import nn, Tensor
from yolort.models.box_head import _concat_pred_logits, _decode_pred_logits
Expand Down
14 changes: 7 additions & 7 deletions yolort/runtime/yolo_graphsurgeon.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ def register_nms(

op = "EfficientNMS_TRT"
attrs = {
'plugin_version': "1",
'background_class': -1, # no background class
'max_output_boxes': detections_per_img,
'score_threshold': score_thresh,
'iou_threshold': nms_thresh,
'score_activation': False,
'box_coding': 0,
"plugin_version": "1",
"background_class": -1, # no background class
"max_output_boxes": detections_per_img,
"score_threshold": score_thresh,
"iou_threshold": nms_thresh,
"score_activation": False,
"box_coding": 0,
}

# NMS Outputs
Expand Down

0 comments on commit c72dd6a

Please sign in to comment.