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82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
---
pretty_name: "SportsMOT"
language:
- en
license: cc-by-nc-4.0
task_categories:
- object-detection
- other
tags:
- computer-vision
- video
- multi-object-tracking
- sports-tracking
- player-tracking
- object-detection
- sports-analytics
- basketball
- football
- soccer
- volleyball
- motchallenge-format
- tracking
- datasets
size_categories:
- 1M<n<10M
---

# SportsMOT

SportsMOT is a large-scale dataset for **single-camera multi-object tracking (MOT)** in sports videos. It focuses on tracking players in professional sports scenes, where targets exhibit fast and variable-speed motion, frequent occlusion, motion blur, camera motion, and similar team uniforms.

This Hugging Face repository provides SportsMOT in a MOTChallenge-style structure for research, benchmarking, training, and evaluation of multi-object tracking systems in sports analytics.

> This repository is a convenience mirror/repackaging of SportsMOT. Please cite the original SportsMOT paper and follow the original dataset license and terms.

## Dataset Details

### Dataset Description

- **Dataset name:** SportsMOT
- **Task:** Multi-object tracking, player tracking, object detection
- **Domain:** Sports video understanding and sports analytics
- **Sports categories:** Basketball, football/soccer, and volleyball
- **Data type:** Image sequences with MOT-style annotations
- **Original project:** [SportsMOT Dataset](https://deeperaction.github.io/datasets/sportsmot.html)
- **Official code / data repository:** [MCG-NJU/SportsMOT](https://github.com/MCG-NJU/SportsMOT)
- **Paper:** [SportsMOT: A Large Multi-Object Tracking Dataset in Multiple Sports Scenes](https://arxiv.org/abs/2304.05170)

SportsMOT was introduced for MOT in sports scenes, where the objective is to track **players on the playground/court**. Spectators, referees, coaches, balls, and other non-player objects are generally not the tracking targets.

The dataset contains 240 sports video clips from basketball, football/soccer, and volleyball. The official paper reports over 150K frames, over 1.6M bounding boxes, and 3,401 tracks. SportsMOT is designed to stress-test object association, especially under fast motion, camera movement, occlusion, and visually similar athletes.

### Supported Tasks

This dataset can be used for:

- Multiple Object Tracking (MOT)
- Player tracking in sports videos
- Athlete detection
- Tracking-by-detection research
- Appearance-based and motion-based association research
- Re-identification-assisted tracking
- Sports video analytics
- MOT benchmark conversion and evaluation pipelines

## Dataset Structure

A typical SportsMOT repository follows a MOTChallenge-style layout with additional split metadata and helper scripts:

```text
SportsMOT/
├── splits_txt/
│   ├── basketball.txt
│   ├── volleyball.txt
│   ├── football.txt
│   ├── train.txt
│   ├── val.txt
│   └── test.txt
├── scripts/
│   ├── mot_to_coco.py
│   └── sportsmot_to_trackeval.py
├── dataset/
│   ├── train/
│   │   ├── VIDEO_NAME_1/
│   │   │   ├── gt/
│   │   │   │   └── gt.txt
│   │   │   ├── img1/
│   │   │   │   ├── 000001.jpg
│   │   │   │   ├── 000002.jpg
│   │   │   │   └── ...
│   │   │   └── seqinfo.ini
│   │   └── ...
│   ├── val/
│   │   └── ...
│   └── test/
│       ├── VIDEO_NAME_1/
│       │   ├── img1/
│       │   │   ├── 000001.jpg
│       │   │   ├── 000002.jpg
│       │   │   └── ...
│       │   └── seqinfo.ini
│       └── ...
└── README.md
```

Training and validation sequences contain ground-truth annotations. Test sequences are intended for benchmark evaluation and may not include public ground-truth annotations.

Each sequence directory typically contains:

```text
VIDEO_NAME/
├── img1/          # Video frames as image files
├── gt/            # Ground-truth annotations; train/val splits only
│   └── gt.txt
└── seqinfo.ini    # Sequence metadata
```

A typical `seqinfo.ini` file contains fields such as:

```ini
[Sequence]
name=v_-6Os86HzwCs_c001
imDir=img1
frameRate=25
seqLength=825
imWidth=1280
imHeight=720
imExt=.jpg
```

## Splits

SportsMOT is split into training, validation, and test subsets:

| Split | Number of videos | Ground truth |
|---|---:|---|
| `train` | 45 | Included |
| `val` | 45 | Included |
| `test` | 150 | Usually withheld for benchmark evaluation |
| **Total** | **240** | — |

The official split files are provided under `splits_txt/`:

```text
splits_txt/train.txt
splits_txt/val.txt
splits_txt/test.txt
splits_txt/basketball.txt
splits_txt/volleyball.txt
splits_txt/football.txt
```

These text files map video sequence names to either dataset splits or sports categories.

## Dataset Statistics

The original SportsMOT paper reports the following overall dataset statistics:

| Statistic | Value |
|---|---:|
| Video sequences | 240 |
| Frames | 150,379 |
| Duration | 6,015 seconds |
| Bounding boxes | 1,629,490 |
| Tracks | 3,401 |
| Resolution | 720p |
| Frame rate | 25 FPS |

Category-level statistics reported by the paper are summarized below. These values are category averages reported by the authors.

| Category | Avg. frames | Avg. tracks | Avg. track gap | Avg. track length | Avg. boxes / frame |
|---|---:|---:|---:|---:|---:|
| Basketball | 845.4 | 10.0 | 68.7 | 767.9 | 9.1 |
| Volleyball | 360.4 | 12.0 | 38.2 | 335.9 | 11.2 |
| Football / Soccer | 673.9 | 20.5 | 116.1 | 422.1 | 12.8 |
| **Total** | **626.6** | **14.2** | **96.6** | **479.1** | **10.8** |

## Annotation Format

SportsMOT uses a MOTChallenge-style comma-separated annotation format.

### Ground Truth Format

Training and validation annotations are stored in:

```text
gt/gt.txt
```

Each row follows the standard MOT-style ground-truth format:

```text
<frame>, <id>, <bb_left>, <bb_top>, <bb_width>, <bb_height>, <conf>, <class>, <visibility>
```

Example:

```text
1,7,749,217,34,125,1,1,1
1,8,721,344,71,120,1,1,1
1,9,847,352,50,151,1,1,1
2,0,85,421,88,131,1,1,1
```

Field descriptions:

| Field | Description |
|---|---|
| `frame` | Frame index, starting from 1 |
| `id` | Player identity ID within the sequence |
| `bb_left` | Left coordinate of the bounding box |
| `bb_top` | Top coordinate of the bounding box |
| `bb_width` | Bounding-box width |
| `bb_height` | Bounding-box height |
| `conf` | Ground-truth confidence / validity flag |
| `class` | Object class label; players are the target class |
| `visibility` | Visibility value or flag, depending on the original annotation |

### Tracking Result Format

Many MOT evaluation tools expect tracker outputs in MOTChallenge result format:

```text
<frame>, <id>, <bb_left>, <bb_top>, <bb_width>, <bb_height>, <score>, <x>, <y>, <z>
```

For 2D tracking, the final world-coordinate fields are commonly filled with `-1` if unused:

```text
1,1,749,217,34,125,0.98,-1,-1,-1
```

Check the evaluation script or challenge instructions used for your experiment, because some SportsMOT conversion tools may expect a specific directory layout for TrackEval.

## Usage

### Download from Hugging Face

```python
from huggingface_hub import snapshot_download

repo_dir = snapshot_download(
    repo_id="YOUR_USERNAME_OR_ORG/SportsMOT",
    repo_type="dataset",
)

print(repo_dir)
```

Replace `YOUR_USERNAME_OR_ORG/SportsMOT` with the actual Hugging Face dataset repository ID.

### Example: Read MOT Annotations with Python

```python
from pathlib import Path
import pandas as pd

seq_dir = Path("SportsMOT/dataset/train/v_-6Os86HzwCs_c001")
gt_path = seq_dir / "gt" / "gt.txt"

gt = pd.read_csv(
    gt_path,
    header=None,
    names=[
        "frame",
        "id",
        "bb_left",
        "bb_top",
        "bb_width",
        "bb_height",
        "conf",
        "class",
        "visibility",
    ],
)

print(gt.head())
print(gt["id"].nunique(), "unique player tracks")
```

### Example: Convert Bounding Boxes to `xyxy`

```python
gt["x1"] = gt["bb_left"]
gt["y1"] = gt["bb_top"]
gt["x2"] = gt["bb_left"] + gt["bb_width"]
gt["y2"] = gt["bb_top"] + gt["bb_height"]

boxes_xyxy = gt[["frame", "id", "x1", "y1", "x2", "y2"]]
print(boxes_xyxy.head())
```

### Example: Iterate Over Frames and Annotations

```python
from pathlib import Path
import pandas as pd

seq_dir = Path("SportsMOT/dataset/train/v_-6Os86HzwCs_c001")
img_dir = seq_dir / "img1"
gt_path = seq_dir / "gt" / "gt.txt"

gt = pd.read_csv(
    gt_path,
    header=None,
    names=[
        "frame", "id", "bb_left", "bb_top", "bb_width",
        "bb_height", "conf", "class", "visibility"
    ],
)

for frame_path in sorted(img_dir.glob("*.jpg")):
    frame_idx = int(frame_path.stem)
    frame_boxes = gt[gt["frame"] == frame_idx]

    # Load frame_path with OpenCV, PIL, torchvision, etc.
    # Use frame_boxes for detection/tracking supervision.
```

### Example: Read Split Files

```python
from pathlib import Path

root = Path("SportsMOT")
train_sequences = (root / "splits_txt" / "train.txt").read_text().splitlines()
val_sequences = (root / "splits_txt" / "val.txt").read_text().splitlines()
test_sequences = (root / "splits_txt" / "test.txt").read_text().splitlines()

print(len(train_sequences), len(val_sequences), len(test_sequences))
```

## Evaluation

SportsMOT can be evaluated with MOT-style metrics such as HOTA, MOTA, IDF1, AssA, DetA, ID switches, and fragmentation. The official repository includes a conversion script for TrackEval-style evaluation:

```text
scripts/sportsmot_to_trackeval.py
```

For official benchmark reporting, use the evaluation protocol and challenge platform specified by the SportsMOT authors. For local experiments, keep these points in mind:

- Train and tune on the `train` and `val` splits only.
- Do not use test-set ground truth for model selection.
- Report the exact detector setup and whether detections are public, private, or generated by your own model.
- Ensure tracker outputs use the expected MOTChallenge-style frame indices and identity IDs.
- Keep video sequence boundaries separate; identity IDs are sequence-local.

## Dataset Creation

### Source Data

SportsMOT was built from professional sports videos covering basketball, football/soccer, and volleyball. The paper describes the videos as 720p, 25 FPS clips collected from sports sources such as NCAA, Premier League, Olympics, and NBA content. Clips were manually selected to avoid shot changes within a sequence.

### Annotation Guidelines

The original annotation process follows player-centric MOT rules:

- Annotate the athlete’s visible limbs and torso.
- Exclude objects touching the athlete, such as balls.
- Predict the full bounding box under partial occlusion when part of the athlete remains visible.
- Skip an athlete when a large portion of the torso is outside the view.
- Keep a unique identity ID for each player throughout a clip.
- Remove extremely small boxes, such as boxes with width or height below 5 pixels.

### Intended Use

SportsMOT is intended for research and benchmarking in:

- Sports multi-object tracking
- Player localization and identity association
- Motion and appearance modeling
- Sports video analytics
- Robust tracking under camera motion and occlusion

### Out-of-Scope Use

This dataset should not be used for:

- Identifying private individuals outside the dataset context
- Surveillance or biometric identification
- Commercial use that violates the dataset license
- Redistribution that violates the original SportsMOT terms
- Claims of official benchmark results without following the official evaluation protocol

## Limitations and Biases

SportsMOT is focused on professional sports videos and may not generalize to all sports, amateur footage, broadcast styles, camera viewpoints, resolutions, or frame rates. The target objects are players on the playground/court; spectators, referees, coaches, and balls are generally not tracking targets.

The dataset emphasizes player association rather than generic human tracking. Models trained only on SportsMOT may overfit to sports uniforms, field/court layouts, broadcast camera motion, and the three included sports categories.

## License and Terms

SportsMOT is licensed under the **Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0)** according to the official repository.

The official repository also states that users should not redistribute the SportsMOT dataset without prior written permission. Please consult the original SportsMOT repository and challenge terms before redistributing, modifying, or using the dataset commercially.

## Citation

If you use SportsMOT, please cite the original paper:

```bibtex
@inproceedings{cui2023sportsmot,
  title={SportsMOT: A Large Multi-Object Tracking Dataset in Multiple Sports Scenes},
  author={Cui, Yutao and Zeng, Chenkai and Zhao, Xiaoyu and Yang, Yichun and Wu, Gangshan and Wang, Limin},
  booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
  pages={9921--9931},
  year={2023}
}
```

## Acknowledgements

SportsMOT was created by researchers from the Multimedia Computing Group at Nanjing University. Please refer to the original project page and paper for full author information, benchmark details, and official updates.