CoolFace
Modelpublic

koppolusameer/yolo11n-basketball-court-keypoints

sourceHugging Faceagpl-3.0updated 3mo agoView on Hugging Face
0likes90downloads
Model Card

YOLO11n basketball court keypoint detector

Fine-tuned yolo11n-pose.pt on koppolusameer/basketball-keypoint-detection-yolov8 (48-slot court skeleton) to detect court landmarks in broadcast frames.

Outputs keypoints in PIXEL coordinates. Converting to court coordinates (homography) is a separate downstream step requiring an index->court-location map.

Load & run

python
from ultralytics import YOLO
from huggingface_hub import hf_hub_download
weights = hf_hub_download("koppolusameer/yolo11n-basketball-court-keypoints", "best.pt")
model = YOLO(weights)
r = model("frame.jpg")[0]
kxy   = r.keypoints.xy[0].cpu().numpy()    # (48,2) pixel coords
kconf = r.keypoints.conf[0].cpu().numpy()  # (48,) confidence