/ Модель

Характеристики

Лицензия
AGPL 3.0
Базовая модель
YOLO11
Библиотека
ultralytics
Опубликована
8 окт 2026

golf-club-detection-swingtrace

Поиск объектовИзображение → bounding_boxes3 профессии

Дообученная YOLO11m обнаруживает клюшку, её головку и руки в видео гольф-свинга для последующего построения траектории замаха.

337скачиваний за 30 дней10лайковвеса обновлены2 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

SwingTrace — дообученная модель компьютерного зрения на базе YOLO11m, созданная для обнаружения частей клюшки и рук в видео гольф-свинга. Она обрабатывает кадры и находит шафт клюшки, головку и кисти/хват; пакет SwingTrace может использовать эти детекции для восстановления непрерывной траектории головки клюшки. Модель рассчитана на анализ одиночного удара по видео с телефона, снятого неподвижной камерой, и работает через Ultralytics. Для клюшки или её шафта детекция есть в 93,4% кадров на тесте из семи ранее не виденных роликов; сама головка напрямую обнаруживалась в 71,6% кадров. Лицензия модели — AGPL-3.0.

Качество зависит от ракурса и условий съёмки: автор рекомендует одного игрока, полный свинг и неподвижную камеру, установленную спереди или позади игрока. Яркие тонкие объекты могут ошибочно приниматься за шафт, а восстановление головки по углу рамки шафта ненадёжно при почти вертикальном или горизонтальном положении клюшки. Перенос камеры и несколько людей в кадре не тестировались. Сглаживание и заполнение пропусков траектории выполняет пакет SwingTrace, а не сама модель детекции.

Сценарии применения

  • обнаружение головки клюшки в кадрах гольф-свинга
  • поиск шафта и хвата клюшки на видео с телефона
  • отслеживание клюшки во время замаха
  • анализ траектории головки клюшки по видеозаписи

Ограничения

Рассчитана на одного игрока и неподвижную камеру; работа с движущейся камерой и несколькими людьми не проверялась. Возможны ложные срабатывания на тонкие яркие объекты, а восстановление головки по шафту ненадёжно при почти вертикальном или горизонтальном положении клюшки.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

⛳ SwingTrace: Golf Club, Club Head & Shaft Detection (YOLO11m)

Open-source golf swing tracer. Drop in any phone video, get the club path.

Open in Colab GitHub License

Same swing, two views. Left: what the model detects (shaft, head, hands). Right: the club-head path rebuilt from those detections. Face blurred for privacy.

Raw per-frame detections (yellow) vs the smoothed, gap-filled path (green).

This model finds the club shaft, club head and hands in every frame of a golf swing video. The SwingTrace package uses it to rebuild the club-head path through the whole swing, including the top of the backswing and impact, where the head turns into a blur and normal detectors lose it. Use it for golf club detection, club head tracking and golf swing path analysis from a single phone video.

  • 🎯 Tracks the club in 93% of frames on phone videos it has never seen
  • 📱 One phone camera. No sensors, no launch monitor, no markers
  • ⚡ Runs on a laptop: CPU, NVIDIA GPU or Apple silicon
  • 🆓 Weights, code, training setup and evaluation are all open

🚀 Try it in 10 seconds

1. In your browser (no install): open the Colab notebook, upload a swing clip, press run. Free GPU, nothing to install.

2. On your machine:

pip install git+https://github.com/nishsm/golf-club-detection-swingtrace.git
swingtrace my_swing.mp4                # boxes + club path → out/my_swing_both.mp4
swingtrace my_swing.mp4 --mode all     # all four modes

The 40 MB weights download automatically from this repo the first time you run it.

3. From Python:

import swingtrace

result = swingtrace.track("my_swing.mp4", mode="path", device="mps")  # "cpu", "cuda" or "mps"
print(result.summary())

4. Just the detector, with Ultralytics:

from huggingface_hub import hf_hub_download
from ultralytics import YOLO

model = YOLO(hf_hub_download("nishsm/golf-club-detection-swingtrace", "swingtrace-yolo11m.pt"))
results = model.predict("my_swing.mp4", conf=0.25)

Raw detections give you boxes only. For the reconstructed club path, use the swingtrace package or the Colab notebook.

Output modes

ModeWhat you get
both (default)Boxes for shaft, head and hands, plus the club-head path
pathJust the smoothed club-head path
boxesJust the detections
compareRaw detections (yellow) next to the smoothed path (green)

Tips for best results: one golfer, a full swing, a phone on a tripod or held still, filmed face-on or from behind the golfer.

🏷️ Classes

idlabel in modelmeaning
00club shaft
11club head
23hands / grip

The raw label strings come from the source dataset.

📊 How good is it?

On 7 unseen phone videos (3,018 frames):

Share of frames
Club head detected directly71.6%
Head or shaft detected, so the head can be recovered from the shaft93.4%

(conf 0.5. These clips have no hand labels, so counts include occasional false positives.)

Validation set: precision 0.930 · recall 0.849 · mAP@50 0.918 · mAP@50-95 0.674 (YOLO11m, 640 px, best of 556 epochs).

Treat the validation numbers as an upper bound, not a headline. The dataset is frames from swing videos split at random, and 91% of validation frames have a near-identical neighbour within 2 frames in the training set. That's why the unseen-video test above exists.

🧠 How the path is built

video ──► YOLO11m (shaft / head / hands) ──► per-frame boxes
                                                │
                head missed, shaft found? ──────┤  estimate head = shaft-box corner
                                                │  nearest the last known head
                                                ▼
                         cubic spline over frame index (fills remaining gaps)
                                                ▼
                         moving-average smoothing (5 frames)
                                                ▼
                         club path drawn on the video
  1. Detect. This model finds the shaft, club head and hands.
  2. Recover. The head is small and moves fastest at the top and at impact, so that's where detection drops out. The shaft is bigger and easier to see. When only the shaft is found, the head is placed at the corner of the shaft box closest to where the head was last seen.
  3. Fill and smooth. A cubic spline bridges remaining gaps, and a moving average smooths the result into one continuous path.

🏋️ Training

  • Base: YOLO11m (Ultralytics 8.3)
  • Data: golf-club-tracking by club-head-tracking on Roboflow Universe (CC BY 4.0)
  • Setup: 640 px, batch 2, mixed precision, early stopping (patience 100). Best epoch 456 of 556, about 48 h on an GTX 1650 laptop GPU (8 GB)

Training curves

⚠️ Limitations

  • Built for one golfer and one swing per clip, from a static camera. Moving cameras and multiple people haven't been tested.
  • It sometimes boxes thin bright objects (for example a ceiling light) as a shaft.
  • The shaft-corner head estimate breaks down when the shaft is close to vertical or horizontal.
  • Frames are held in memory for the drawing pass: fine for swing clips, not for long videos.

🗺️ Roadmap

  • Cut the path off when the swing ends, instead of tracing the walk-off
  • Swing metrics from the path: tempo, swing plane, club speed estimate
  • Live tracking with a Kalman filter
  • ONNX / CoreML export for on-phone use
  • Ball tracking

🙌 Credits & license

  • Dataset: golf-club-tracking by club-head-tracking on Roboflow Universe, CC BY 4.0.
  • Base model: Ultralytics YOLO11.
  • License: AGPL-3.0, following Ultralytics YOLO, which these weights are fine-tuned from.

If this is useful, a ❤️ here or a ⭐ on GitHub helps other people find it. Issues and PRs welcome, especially clips where it fails.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · ultralytics

Нельзя запустить

Модели Ultralytics YOLO требуют отдельного рантайма.

Ревизия весов
3cbd716

0 моделей