From 9938c1d2adf6594e770628532f0d95ef8c7ef209 Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Mon, 24 Feb 2025 11:38:21 +0300 Subject: [PATCH] =?UTF-8?q?docs:=20=F0=9F=93=9D=20Update=20documentation?= =?UTF-8?q?=20for=20ultralytics=20KeyPoints=20to=20include=20YOLO11-pose?= =?UTF-8?q?=20and=20adjust=20example=20to=20latest=20model?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Onuralp SEZER --- supervision/keypoint/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/supervision/keypoint/core.py b/supervision/keypoint/core.py index a625527f..6167f4bb 100644 --- a/supervision/keypoint/core.py +++ b/supervision/keypoint/core.py @@ -23,8 +23,8 @@ class KeyPoints: === "Ultralytics" Use [`sv.KeyPoints.from_ultralytics`](/latest/keypoint/core/#supervision.keypoint.core.KeyPoints.from_ultralytics) - method, which accepts [YOLOv8](https://github.com/ultralytics/ultralytics) - pose result. + method, which accepts [YOLOv8-pose](https://docs.ultralytics.com/models/yolov8/), [YOLO11-pose](https://docs.ultralytics.com/models/yolo11/) + [pose](https://docs.ultralytics.com/tasks/pose/) result. ```python import cv2 @@ -32,7 +32,7 @@ class KeyPoints: from ultralytics import YOLO image = cv2.imread() - model = YOLO('yolov8s-pose.pt') + model = YOLO('yolo11s-pose.pt') result = model(image)[0] key_points = sv.KeyPoints.from_ultralytics(result)