Skip to content

Commit

Permalink
Fixing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqwang committed Aug 20, 2021
1 parent e1efb7c commit 4a3b51c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yolort/utils/image_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def non_max_suppression(prediction, conf_thres=0.25, iou_thres=0.45, classes=Non
assert 0 <= iou_thres <= 1, f'Invalid IoU {iou_thres}, valid values are between 0.0 and 1.0'

# Settings
min_wh, max_wh = 2, 4096 # (pixels) minimum and maximum box width and height
max_wh = 4096 # (pixels) minimum and maximum box width and height
max_nms = 30000 # maximum number of boxes into torchvision.ops.nms()
time_limit = 10.0 # seconds to quit after
redundant = True # require redundant detections
Expand Down Expand Up @@ -238,6 +238,7 @@ def non_max_suppression(prediction, conf_thres=0.25, iou_thres=0.45, classes=Non

return output


def get_image_from_url(
url: str,
flags: int = cv2.IMREAD_COLOR,
Expand Down

0 comments on commit 4a3b51c

Please sign in to comment.