Downloads · 30 days
0
kjfk/tennis-court-keypoints-mirror
tennis-court-keypoints-mirror is a keypoint detection model from kjfk. Use it for the keypoint detection task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Not trained by me. Mirrored from the abdullahtarek/tennisanalysis baseline so my pipeline's weights live in one place. Credit for the model and its training belongs to the original author.
Downloads · 30 days
0
Access
Public
Updated Aug 18, 2026
Repo size
94.6 MB
Likes
0
Public
Click a slice to open those files.
.pth94.6 MB · 100%
From the Hugging Face model README
Not trained by me. Mirrored from the abdullahtarek/tennis_analysis baseline so my pipeline's weights live in one place. Credit for the model and its training belongs to the original author.
A ResNet-based regressor that predicts the 14 tennis court landmarks - doubles corners, singles corners, service line intersections, centre marks - from a single frame. Fitting a homography to those gives an image-to-court mapping in metres.
Its reprojection error is not a measure of accuracy. Reprojection asks only whether one homography explains the model's own 14 points, so a model that mislocates all 14 in a mutually consistent way scores perfectly.
Measured on two clips: reprojection held steady at ~0.77 px while the corners sat a median 14 px and 68 px from the actual painted lines, once as far as 129 px. The two numbers are uncorrelated.
Fix, which needs no retraining: take this model as an initial guess, then optimise the homography so the projected court lines land on detected line pixels in the frame. Held out on lines the fit never saw, that took the worst corner from 14 px to 3.6 px, and from 68 px to 7.6 px.