From e0c7c1fbf033b14b04ca25517c55e5f2c7d3e77b Mon Sep 17 00:00:00 2001 From: SkalskiP Date: Fri, 8 Dec 2023 16:57:41 +0100 Subject: [PATCH] Replace misspelled function name in detection.core.py Changed the function name from 'from_mmdet' to 'from_mmdetection'. This was done to correct a misspelling which might otherwise lead to confusion and potential errors when calling the function. --- 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 ecef5c78..70285c2d 100644 --- a/supervision/detection/core.py +++ b/supervision/detection/core.py @@ -326,7 +326,7 @@ class Detections: >>> inferencer = DetInferencer(model_name, checkpoint, device) >>> mmdet_result = inferencer(SOURCE_IMAGE_PATH, out_dir='./output', ... return_datasamples=True)["predictions"][0] - >>> detections = sv.Detections.from_mmdet(mmdet_result) + >>> detections = sv.Detections.from_mmdetection(mmdet_result) ``` """