Skip to content

Commit cc28a51

Browse files
authored
Merge pull request #1797 from roboflow/docs/keypoints_yolo
docs: 📝 Update documentation for ultralytics KeyPoints to include YOLO11-pose and adjust example to latest model
2 parents e2cb82a + 9938c1d commit cc28a51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

supervision/keypoint/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ class simplifies data manipulation and filtering, providing a uniform API for
2323
=== "Ultralytics"
2424
2525
Use [`sv.KeyPoints.from_ultralytics`](/latest/keypoint/core/#supervision.keypoint.core.KeyPoints.from_ultralytics)
26-
method, which accepts [YOLOv8](https://github.com/ultralytics/ultralytics)
27-
pose result.
26+
method, which accepts [YOLOv8-pose](https://docs.ultralytics.com/models/yolov8/), [YOLO11-pose](https://docs.ultralytics.com/models/yolo11/)
27+
[pose](https://docs.ultralytics.com/tasks/pose/) result.
2828
2929
```python
3030
import cv2
3131
import supervision as sv
3232
from ultralytics import YOLO
3333
3434
image = cv2.imread(<SOURCE_IMAGE_PATH>)
35-
model = YOLO('yolov8s-pose.pt')
35+
model = YOLO('yolo11s-pose.pt')
3636
3737
result = model(image)[0]
3838
key_points = sv.KeyPoints.from_ultralytics(result)

0 commit comments

Comments
 (0)