From 1e87a992593a843054ecb79e6a6dfd17a53f6d43 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 3 Feb 2024 03:19:56 +0000 Subject: [PATCH] =?UTF-8?q?fix(pre=5Fcommit):=20=F0=9F=8E=A8=20auto=20form?= =?UTF-8?q?at=20pre-commit=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supervision/detection/core.py | 2 +- supervision/detection/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/supervision/detection/core.py b/supervision/detection/core.py index 4df3b560..2e6572d5 100644 --- a/supervision/detection/core.py +++ b/supervision/detection/core.py @@ -1002,7 +1002,7 @@ class Detections: self, threshold: float = 0.5, class_agnostic: bool = False ) -> Detections: """ - Perform non-maximum suppression on the current set + Perform non-maximum suppression on the current set of object detections or segmentation prediction. Args: diff --git a/supervision/detection/utils.py b/supervision/detection/utils.py index e5633423..d581aed3 100644 --- a/supervision/detection/utils.py +++ b/supervision/detection/utils.py @@ -113,7 +113,7 @@ def mask_non_max_suppression( non-maximum suppression. Raises: - AssertionError: If `iou_threshold` is not within the closed + AssertionError: If `iou_threshold` is not within the closed range from `0` to `1`. """ assert 0 <= iou_threshold <= 1, (