From 8f6887d9942230ec30b0c8c40f2a624729dda80c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 7 Feb 2024 08:21:35 +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/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervision/detection/utils.py b/supervision/detection/utils.py index 9fd9d16e..62a297c3 100644 --- a/supervision/detection/utils.py +++ b/supervision/detection/utils.py @@ -215,7 +215,7 @@ def mask_non_max_suppression_2( for i in range(num_predictions): if keep[i]: condition = (ious[i] > iou_threshold) & (categories == category) - keep[i + 1:] = np.where(condition[i + 1:], False, keep[i + 1:]) + keep[i + 1 :] = np.where(condition[i + 1 :], False, keep[i + 1 :]) return keep