game string | clip string | trajectory_in_clip string | start string | end string |
|---|---|---|---|---|
1 | 1 | 0 | 26 | 40 |
1 | 1 | 1 | 41 | 81 |
1 | 1 | 2 | 83 | 114 |
1 | 1 | 3 | 115 | 140 |
1 | 1 | 4 | 142 | 172 |
1 | 1 | 5 | 173 | 206 |
1 | 2 | 0 | 29 | 44 |
1 | 2 | 1 | 45 | 91 |
1 | 2 | 2 | 93 | 129 |
1 | 3 | 0 | 28 | 62 |
1 | 4 | 0 | 23 | 38 |
1 | 4 | 1 | 40 | 78 |
1 | 4 | 2 | 79 | 107 |
1 | 5 | 0 | 22 | 38 |
1 | 5 | 1 | 40 | 58 |
1 | 5 | 2 | 59 | 81 |
1 | 5 | 3 | 83 | 100 |
1 | 5 | 4 | 101 | 128 |
1 | 5 | 5 | 130 | 159 |
1 | 6 | 0 | 31 | 77 |
1 | 7 | 0 | 16 | 33 |
1 | 7 | 1 | 34 | 60 |
1 | 7 | 2 | 61 | 89 |
1 | 7 | 3 | 90 | 119 |
1 | 7 | 4 | 120 | 148 |
1 | 7 | 5 | 149 | 179 |
1 | 7 | 6 | 180 | 204 |
1 | 7 | 7 | 206 | 236 |
1 | 7 | 8 | 237 | 267 |
1 | 7 | 9 | 269 | 292 |
1 | 7 | 10 | 294 | 327 |
1 | 7 | 11 | 328 | 357 |
1 | 7 | 12 | 358 | 422 |
1 | 7 | 13 | 423 | 451 |
1 | 8 | 0 | 27 | 46 |
1 | 9 | 0 | 24 | 43 |
1 | 9 | 1 | 45 | 81 |
1 | 9 | 2 | 82 | 114 |
1 | 10 | 0 | 27 | 42 |
1 | 10 | 1 | 43 | 74 |
1 | 10 | 2 | 75 | 108 |
1 | 11 | 0 | 27 | 47 |
1 | 11 | 1 | 48 | 89 |
1 | 11 | 2 | 90 | 129 |
1 | 12 | 0 | 27 | 48 |
1 | 12 | 1 | 49 | 91 |
1 | 12 | 2 | 92 | 125 |
1 | 13 | 0 | 19 | 34 |
1 | 13 | 1 | 35 | 61 |
1 | 13 | 2 | 63 | 92 |
1 | 13 | 3 | 93 | 126 |
1 | 13 | 4 | 128 | 156 |
1 | 13 | 5 | 158 | 176 |
1 | 13 | 6 | 177 | 209 |
1 | 13 | 7 | 210 | 238 |
1 | 13 | 8 | 239 | 252 |
2 | 1 | 0 | 0 | 16 |
2 | 1 | 1 | 17 | 84 |
2 | 1 | 2 | 85 | 114 |
2 | 1 | 3 | 115 | 160 |
2 | 1 | 4 | 161 | 192 |
2 | 1 | 5 | 193 | 228 |
2 | 1 | 6 | 229 | 264 |
2 | 1 | 7 | 266 | 295 |
2 | 1 | 8 | 296 | 332 |
2 | 1 | 9 | 333 | 360 |
2 | 2 | 0 | 0 | 17 |
2 | 2 | 1 | 18 | 51 |
2 | 2 | 2 | 52 | 83 |
2 | 2 | 3 | 84 | 127 |
2 | 2 | 4 | 128 | 152 |
2 | 2 | 5 | 153 | 172 |
2 | 2 | 6 | 173 | 198 |
2 | 3 | 0 | 11 | 35 |
2 | 4 | 0 | 22 | 44 |
2 | 5 | 0 | 9 | 27 |
2 | 5 | 1 | 28 | 58 |
2 | 5 | 2 | 59 | 96 |
2 | 5 | 3 | 97 | 137 |
2 | 5 | 4 | 138 | 167 |
2 | 5 | 5 | 168 | 195 |
2 | 6 | 0 | 16 | 47 |
2 | 6 | 1 | 48 | 77 |
2 | 6 | 2 | 78 | 112 |
2 | 6 | 3 | 113 | 142 |
2 | 6 | 4 | 143 | 173 |
2 | 6 | 5 | 174 | 212 |
2 | 6 | 6 | 213 | 255 |
2 | 6 | 7 | 256 | 282 |
2 | 6 | 8 | 283 | 314 |
2 | 6 | 9 | 315 | 338 |
2 | 6 | 10 | 339 | 383 |
2 | 6 | 11 | 384 | 413 |
2 | 6 | 12 | 414 | 451 |
2 | 6 | 13 | 452 | 477 |
2 | 6 | 14 | 478 | 521 |
2 | 6 | 15 | 522 | 550 |
2 | 7 | 0 | 11 | 28 |
2 | 7 | 1 | 29 | 67 |
2 | 7 | 2 | 68 | 96 |
Paper in the making
ACE-Trajectories_noTosses Dataset
This dataset was created for the Master's thesis "From Broadcast to 3D: A Deep Learning Approach for Tennis Trajectory and Spin Estimation" by Alexandra Göppert at the University Augsburg, Chair of Machine Learning and Computer Vision.
This datasets serves as an enriched version of the original TrackNet Tennis dataset. It cuts the whole rallies included in the TrackNet dataset in single trajectories, based on TrackNets property “Trajectory Pattern”. It supplements the original broadcast TrackNet data with manual ball spin annotations and 2D human pose estimations for the hitting player. It was specifically designed to be used as a validation and test set (split 33% to 66% respectively) for the 2D-to-3D trajectory uplifting models available in the tennisuplifting GitHub repository. This dataset does not contain any images but uses primarily coordinates for indicating the position of the ball, the 16 court keypoints (see image) as well as the 17 COCO Whole Body keypoints (see end of file) of the hitting player on the respective image.
Serves in this dataset do not contain ball tosses. For included ball tosses go to ACE-Trajectories_withTosses.
Original TrackNet Data
The foundation of this dataset is the TrackNet dataset, which consists of broadcast tennis videos and 2D ball tracking data. The original dataset was introduced in this paper and downloaded from Kaggle.
Folder Structure
The repository is organized into 517 sequentially numbered folders, ranging from trajectory_0000 to trajectory_0516. Each folder represents a single, continuous tennis trajectory like groundstroke, volley, smash and serves (without the preceding ball toss).
Inside each trajectory_xxxx folder, you will find exactly eight separate .npy files and one info.json file containing the isolated data for that specific sequence.
ACE-Trajectories/
├── Readme.md
├── data/
│ ├── trajectory_0000/
│ │ ├── 2dPoseEstimation.npy
│ │ ├── Mext.npy
│ │ ├── Mint.npy
│ │ ├── hits.npy
│ │ ├── r_img.npy
│ │ ├── spin_class.npy
│ │ ├── start_serve.npy
│ │ ├── times.npy
│ │ └── info.json
│ ├── trajectory_0001/
│ │ ├── 2dPoseEstimation.npy
│ │ ├── Mext.npy
│ │ ├── Mint.npy
│ │ ├── hits.npy
│ │ ├── r_img.npy
│ │ ├── spin_class.npy
│ │ ├── start_serve.npy
│ │ ├── times.npy
│ │ └── info.json
│ │ ...
│ │ ...
│ └── trajectory_0516
│ │ ├── 2dPoseEstimation.npy
│ │ ├── Mext.npy
│ │ ├── Mint.npy
│ │ ├── hits.npy
│ │ ├── r_img.npy
│ │ ├── spin_class.npy
│ │ ├── start_serve.npy
│ │ ├── times.npy
│ │ └── info.json
The JSON File
info.json: This file contains the essential metadata linking this trajectory back to the original TrackNet data. The fields include the specific game and clip the trajectory was cut from, as well as the exact start frame number and end frame number relative to the original TrackNet video.
The NPY Files
The eight numpy arrays store the spatial, temporal, and pose data for the trajectory:
Mint.npy: A [3 x 3] array representing the reverse-engineered intrinsic camera matrix.Mext.npy: A [3 x 4] array representing the reverse-engineered extrinsic camera matrix (containing the rotation matrix and translation vector).times.npy: A 1D array of length [T] (where T is the total number of frames in the trajectory) containing the exact timestamps for each frame.r_img.npy: A [T x 3] array containing the 2D ball tracking data per frame. The three columns represent theu(horizontal) coordinate, thev(vertical) coordinate, and a visibility class. The visibility class is binary, where 0 means the ball is out of frame/occluded, 1 means visible or hard to spot. The visibility class was directly extracke out of the TrackNet Dataset.2dPoseEstimation.npy: A [17 x 3] array containing the 2D human pose estimation of the hitting player when the racket touches the ball. The rows correspond to the 17 COCO-WholeBody keypoints, and the columns represent theucoordinate,vcoordinate, and a model confidencescore. For whole serves, this pose is captured at the specific frame where the ball leaves the server's hand (or the first frame if the toss isn't visible).spin_class.npy: A 1D array of length [T] repeating the initial spin class for the length of the trajectory. The classes are categorized as 1 (topspin) and 2 (backspin)start_serve.npy: Only relevant for serves: A scalar giving the image number referencing the Tracknet dataset that corresponds to the frame where the rackets touches the ball. (relevant fo)hits.npy: An array of length [H] providing the time stamps when the ball bounces on the floor. Normally, this H = 1 or H = 0, but if the ball is the final in the rally H can be greater 1.
Download and Usage
This dataset utilizes Git LFS (Large File Storage) for binary .npy files. To ensure that the actual data is downloaded instead of small text pointers, please use the huggingface_hub library.
Installation
pip install huggingface_hub numpy
Dowload the full dataset
from huggingface_hub import snapshot_download
snapshot_download(
repo_id="XSpaceCoderX/ACE-Trajectories_noTosses",
repo_type="dataset",
local_dir="./data"
)
Loading the data
import numpy as np
# Example: Loading a specific file after download
data = np.load("./data/path/to/file.npy", allow_pickle=True)
print(f"Data shape: {data.shape}")

- Downloads last month
- 22