TrackNet: A Deep Learning Network for Tracking High-speed and Tiny Objects in Sports Applications
Paper โข 1907.03698 โข Published โข 2
TrackNet V1 weights for high-speed tennis ball detection from broadcast video. The model takes 3 consecutive frames (resized to 640x360) and outputs a probability heatmap of the ball position.
import torch
from tracknet import BallDetectorV2
detector = BallDetectorV2(path_model="tracknet_weights.pth", device="mps")
ball_positions = detector.infer_model(frames, use_frame_diff=True)
This model is part of the Sports Commentator from Video project โ an automated tennis commentary pipeline using TrackNet, CatBoost, VideoMAE, Qwen2.5, RF-DETR, and F5-TTS.