From dd80753b2b17389ca0645c067d7f218bc9caa762 Mon Sep 17 00:00:00 2001 From: fatih <34196005+fcakyon@users.noreply.github.com> Date: Tue, 26 Sep 2023 23:59:57 +0200 Subject: [PATCH] add sahi paper url into docstring (#382) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add sahi paper url into docstring * fix(pre_commit): 🎨 auto format pre-commit hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- supervision/detection/tools/inference_slicer.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/supervision/detection/tools/inference_slicer.py b/supervision/detection/tools/inference_slicer.py index 1fbd0697..dee01a80 100644 --- a/supervision/detection/tools/inference_slicer.py +++ b/supervision/detection/tools/inference_slicer.py @@ -23,9 +23,10 @@ def move_detections(detections: Detections, offset: np.array) -> Detections: class InferenceSlicer: """ InferenceSlicer performs slicing-based inference for small target detection. This - method, often referred to as Slicing Adaptive Inference (SAHI), involves dividing a - larger image into smaller slices, performing inference on each slice, and then - merging the detections. + method, often referred to as + [Slicing Adaptive Inference (SAHI)](https://ieeexplore.ieee.org/document/9897990), + involves dividing a larger image into smaller slices, performing inference on each + slice, and then merging the detections. Attributes: slice_wh (Tuple[int, int]): Dimensions of each slice in the format