XSpaceCoderX commited on
Commit
cf9e6a1
·
verified ·
1 Parent(s): e9fa931

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +30 -1
README.md CHANGED
@@ -47,4 +47,33 @@ The seven numpy arrays store the spatial, temporal, and pose data for the rally:
47
  * **`r_img.npy`**: A [T x 3] array containing the 2D ball tracking data per frame. The three columns represent the **`u`** (horizontal) coordinate, the **`v`** (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.
48
  * **`2dPoseEstimation.npy`**: A [17 x 3] array containing the 2D human pose estimation of the hitting player. The rows correspond to the 17 [COCO-WholeBody keypoints](https://arxiv.org/abs/2007.11858), and the columns represent the **`u`** coordinate, **`v`** coordinate, and a model confidence **`score`**. For whole rallies, 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).
49
  * **`spin_class_per_shot.npy` & `spin_class_per_frame.npy`**: These files map the initial ball spin of the shots. The classes are categorized as **1 (topspin)**, **2 (backspin)**, and **0 (no spin)**, with 0 typically used for the initial ball toss. `spin_class_per_shot` provides an array of length [S] mapping one spin class to each of the *S* shots in the rally. spin_class_per_frame.npy has the length [T], which assigns each frame of the video a spin class according to the initial spin value for the respective shot.
50
- * **`new_trajectory_frame_idx.npy`**: An array of length [S] providing the exact frame indices (time steps) at which each new trajectory begins and the corresponding new spin value can be measured.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  * **`r_img.npy`**: A [T x 3] array containing the 2D ball tracking data per frame. The three columns represent the **`u`** (horizontal) coordinate, the **`v`** (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.
48
  * **`2dPoseEstimation.npy`**: A [17 x 3] array containing the 2D human pose estimation of the hitting player. The rows correspond to the 17 [COCO-WholeBody keypoints](https://arxiv.org/abs/2007.11858), and the columns represent the **`u`** coordinate, **`v`** coordinate, and a model confidence **`score`**. For whole rallies, 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).
49
  * **`spin_class_per_shot.npy` & `spin_class_per_frame.npy`**: These files map the initial ball spin of the shots. The classes are categorized as **1 (topspin)**, **2 (backspin)**, and **0 (no spin)**, with 0 typically used for the initial ball toss. `spin_class_per_shot` provides an array of length [S] mapping one spin class to each of the *S* shots in the rally. spin_class_per_frame.npy has the length [T], which assigns each frame of the video a spin class according to the initial spin value for the respective shot.
50
+ * **`new_trajectory_frame_idx.npy`**: An array of length [S] providing the exact frame indices (time steps) at which each new trajectory begins and the corresponding new spin value can be measured.
51
+
52
+ ## Download and Usage
53
+
54
+ 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.
55
+
56
+ ### Installation
57
+ ``` bash
58
+ pip install huggingface_hub numpy
59
+ ```
60
+
61
+ ### Dowload the full dataset
62
+ ```
63
+ from huggingface_hub import snapshot_download
64
+
65
+ snapshot_download(
66
+ repo_id="XSpaceCoderX/ACE-Rallies",
67
+ repo_type="dataset",
68
+ local_dir="./data"
69
+ )
70
+ ```
71
+
72
+ ### Loading the data
73
+
74
+ import numpy as np
75
+ ```
76
+ # Example: Loading a specific file after download
77
+ data = np.load("./data/path/to/file.npy", allow_pickle=True)
78
+ print(f"Data shape: {data.shape}")
79
+ ```