From 27b61ab4a32d7e2195dcdd9401bef6778bbeac8b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 23:31:30 +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 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervision/detection/core.py b/supervision/detection/core.py index 9a284775..6b2d01f6 100644 --- a/supervision/detection/core.py +++ b/supervision/detection/core.py @@ -331,7 +331,7 @@ class Detections: confidence=mmdet_results.pred_instances.scores.cpu().numpy(), class_id=mmdet_results.pred_instances.labels.cpu().numpy().astype(int), mask=mmdet_results.pred_instances.masks.cpu().numpy() - if 'masks' in mmdet_results.pred_instances + if "masks" in mmdet_results.pred_instances else None, )