From 25ea63042df1d0fd32c228bb6c405448e2987bf8 Mon Sep 17 00:00:00 2001 From: SkalskiP Date: Tue, 6 Aug 2024 15:51:06 +0200 Subject: [PATCH] small bug fix --- supervision/detection/tools/inference_slicer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervision/detection/tools/inference_slicer.py b/supervision/detection/tools/inference_slicer.py index 941922ab..84f36d4a 100644 --- a/supervision/detection/tools/inference_slicer.py +++ b/supervision/detection/tools/inference_slicer.py @@ -100,7 +100,7 @@ class InferenceSlicer: iou_threshold: float = 0.5, thread_workers: int = 1, ): - if overlap_ratio_wh is None: + if overlap_ratio_wh is not None: warn_deprecated( "`overlap_ratio_wh` in `InferenceSlicer.__init__` is deprecated and " "will be remove in `supervision-0.27.0`. Use `overlap_wh` instead."