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.
This commit is contained in:
SkalskiP 2023-12-08 16:57:41 +01:00
parent ee697cad3e
commit e0c7c1fbf0
1 changed files with 1 additions and 1 deletions

View File

@ -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)
```
"""