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."