wangqiurui commited on
Commit
419dd46
·
verified ·
1 Parent(s): 108b540

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +461 -1
README.md CHANGED
@@ -1,3 +1,463 @@
1
  ---
2
- license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ pretty_name: TacSIm
3
+ task_categories:
4
+ - reinforcement-learning
5
+ tags:
6
+ - multi-agent
7
+ - imitation-learning
8
+ - football
9
+ - soccer
10
+ - trajectory
11
+ - tactical-imitation
12
+ - sequential-data
13
+ - google-research-football
14
+ - benchmark
15
+ configs:
16
+ - config_name: default
17
+ data_files:
18
+ - split: train
19
+ path: Train/**/*.csv
20
+ - split: validation
21
+ path: Validation/**/*.csv
22
+ - split: test
23
+ path: Test/**/*.csv
24
  ---
25
+
26
+ # TacSIm: A Dataset and Benchmark for Football Tactical Style Imitation
27
+
28
+ ## Dataset Description
29
+
30
+ **TacSIm** is a multi-agent football trajectory dataset designed for research on tactical style imitation, multi-agent imitation learning, trajectory generation, and long-horizon football simulation.
31
+
32
+ The dataset is organized into three predefined splits:
33
+
34
+ - **Train**
35
+ - **Validation**
36
+ - **Test**
37
+
38
+ These splits should be preserved when training and evaluating models so that reported results remain comparable.
39
+
40
+ > **Paper:** *TacSIm: A Dataset and Benchmark for Football Tactical Style Imitation*
41
+ > **Venue:** CVPR 2026
42
+ ---
43
+
44
+ ## Dataset Structure
45
+
46
+ ### Recommended Repository Layout
47
+
48
+ ```text
49
+ TacSIm/
50
+ ├── README.md
51
+ ├── Train/
52
+ │ ├── 00001.csv
53
+ │ ├── 00002.csv
54
+ │ └── ...
55
+ ├── Validation/
56
+ │ ├── 00001.csv
57
+ │ ├── 00002.csv
58
+ │ └── ...
59
+ └── Test/
60
+ ├── 00001.csv
61
+ ├── 00002.csv
62
+ └── ...
63
+ ```
64
+
65
+ Each CSV file represents one football trajectory segment.
66
+
67
+ ### Trajectory Length
68
+
69
+ In the released format:
70
+
71
+ - each file contains **100 time steps**;
72
+ - the sampling interval is **0.1 seconds**;
73
+ - each file therefore represents a **10-second trajectory**;
74
+ - rows are ordered chronologically.
75
+
76
+ A model may be evaluated at shorter horizons by using the first:
77
+
78
+ | Evaluation horizon | Number of rows |
79
+ |---|---:|
80
+ | 3 seconds | 30 |
81
+ | 5 seconds | 50 |
82
+ | 10 seconds | 100 |
83
+
84
+ ---
85
+
86
+
87
+ ### Player Positions
88
+
89
+ For each controlled player \(i \in \{1,\ldots,11\}\):
90
+
91
+ ```text
92
+ player_i_x
93
+ player_i_y
94
+ ```
95
+
96
+ These columns contain the player's normalized two-dimensional position at each time step.
97
+
98
+ `player_1` is treated as the goalkeeper in the TacSIm team-level evaluation protocol. Players `player_2` through `player_11` are treated as outfield players.
99
+
100
+
101
+ ### Complete Column List
102
+
103
+ ```text
104
+ player_1_x, player_1_y,
105
+ player_2_x, player_2_y,
106
+ player_3_x, player_3_y,
107
+ player_4_x, player_4_y,
108
+ player_5_x, player_5_y,
109
+ player_6_x, player_6_y,
110
+ player_7_x, player_7_y,
111
+ player_8_x, player_8_y,
112
+ player_9_x, player_9_y,
113
+ player_10_x, player_10_y,
114
+ player_11_x, player_11_y,
115
+ ball_x, ball_y,
116
+ player_1_action,
117
+ player_2_action,
118
+ player_3_action,
119
+ player_4_action,
120
+ player_5_action,
121
+ player_6_action,
122
+ player_7_action,
123
+ player_8_action,
124
+ player_9_action,
125
+ player_10_action,
126
+ player_11_action
127
+ ```
128
+
129
+ ---
130
+
131
+ ## Coordinate Convention
132
+
133
+ The coordinates follow the normalized Google Research Football field representation.
134
+
135
+ The nominal coordinate ranges are approximately:
136
+
137
+ ```text
138
+ x: [-1.00, 1.00]
139
+ y: [-0.42, 0.42]
140
+ ```
141
+
142
+ Small values outside these nominal limits may occur because of simulator dynamics, boundary behavior, or preprocessing. Users should avoid silently clipping coordinates unless clipping is explicitly part of their experimental protocol.
143
+
144
+ The released files contain only the two-dimensional coordinates used by the TacSIm benchmark. Ball height is not included in this CSV format.
145
+
146
+ ---
147
+
148
+ ## Loading the Dataset
149
+
150
+ ### Load with Hugging Face Datasets
151
+
152
+ ```python
153
+ from datasets import load_dataset
154
+
155
+ dataset = load_dataset("YOUR_USERNAME/TacSIm")
156
+
157
+ print(dataset)
158
+ print(dataset["train"][0])
159
+ ```
160
+
161
+ The YAML configuration at the top of this card maps the repository folders to the following Hugging Face splits:
162
+
163
+ ```text
164
+ Train -> train
165
+ Validation -> validation
166
+ Test -> test
167
+ ```
168
+
169
+ ### Important Note About Trajectory Boundaries
170
+
171
+ When multiple CSV files are loaded through `datasets.load_dataset`, Hugging Face may concatenate their rows within each split. The original source filename is not necessarily preserved as a feature.
172
+
173
+ For methods that require each 100-frame trajectory to remain a separate episode, download the repository while preserving its directory structure:
174
+
175
+ ```python
176
+ from pathlib import Path
177
+
178
+ import pandas as pd
179
+ from huggingface_hub import snapshot_download
180
+
181
+ dataset_root = Path(
182
+ snapshot_download(
183
+ repo_id="YOUR_USERNAME/TacSIm",
184
+ repo_type="dataset",
185
+ )
186
+ )
187
+
188
+ train_files = sorted((dataset_root / "Train").glob("*.csv"))
189
+ validation_files = sorted(
190
+ (dataset_root / "Validation").glob("*.csv")
191
+ )
192
+ test_files = sorted((dataset_root / "Test").glob("*.csv"))
193
+
194
+ trajectory = pd.read_csv(train_files[0])
195
+
196
+ print(train_files[0].name)
197
+ print(trajectory.shape)
198
+ ```
199
+
200
+ ### Load One Trajectory
201
+
202
+ ```python
203
+ import pandas as pd
204
+
205
+ trajectory = pd.read_csv("Train/02304.csv")
206
+
207
+ player_positions = trajectory[
208
+ [
209
+ column
210
+ for column in trajectory.columns
211
+ if column.startswith("player_")
212
+ and (
213
+ column.endswith("_x")
214
+ or column.endswith("_y")
215
+ )
216
+ ]
217
+ ]
218
+
219
+ ball_positions = trajectory[["ball_x", "ball_y"]]
220
+
221
+ player_actions = trajectory[
222
+ [
223
+ column
224
+ for column in trajectory.columns
225
+ if column.endswith("_action")
226
+ ]
227
+ ]
228
+ ```
229
+
230
+ ### Convert One File to Arrays
231
+
232
+ ```python
233
+ import numpy as np
234
+ import pandas as pd
235
+
236
+ trajectory = pd.read_csv("Train/02304.csv")
237
+
238
+ player_columns = []
239
+
240
+ for player_id in range(1, 12):
241
+ player_columns.extend(
242
+ [
243
+ f"player_{player_id}_x",
244
+ f"player_{player_id}_y",
245
+ ]
246
+ )
247
+
248
+ action_columns = [
249
+ f"player_{player_id}_action"
250
+ for player_id in range(1, 12)
251
+ ]
252
+
253
+ players = trajectory[player_columns].to_numpy(
254
+ dtype=np.float32
255
+ ).reshape(-1, 11, 2)
256
+
257
+ ball = trajectory[["ball_x", "ball_y"]].to_numpy(
258
+ dtype=np.float32
259
+ )
260
+
261
+ actions = trajectory[action_columns].to_numpy(
262
+ dtype=np.int64
263
+ )
264
+
265
+ print("Players:", players.shape) # (100, 11, 2)
266
+ print("Ball:", ball.shape) # (100, 2)
267
+ print("Actions:", actions.shape) # (100, 11)
268
+ ```
269
+
270
+ ---
271
+
272
+ ## Dataset Splits
273
+
274
+ The dataset contains fixed training, validation, and test partitions.
275
+
276
+ | Split | Purpose | Number of trajectory files |
277
+ |---|---|---:|
278
+ | Train | Model training | 10756 |
279
+ | Validation | Hyperparameter selection and model development | 2304 |
280
+ | Test | Final benchmark evaluation | 2304 |
281
+
282
+ The test set should not be used for model selection or hyperparameter tuning.
283
+
284
+ To count the files locally:
285
+
286
+ ```python
287
+ from pathlib import Path
288
+
289
+ for split in ["Train", "Validation", "Test"]:
290
+ count = len(list(Path(split).glob("*.csv")))
291
+ print(split, count)
292
+ ```
293
+
294
+ ---
295
+
296
+ ## Benchmark Tasks
297
+
298
+ TacSIm supports research on:
299
+
300
+ 1. **Multi-agent behavior cloning**
301
+ 2. **Multi-agent imitation learning**
302
+ 3. **Football trajectory prediction**
303
+ 4. **Tactical style imitation**
304
+ 5. **Long-horizon multi-agent simulation**
305
+ 6. **World-model learning**
306
+ 7. **Offline reinforcement learning**
307
+ 8. **Multi-agent action prediction**
308
+
309
+ Depending on the experimental setting, a model may use historical player positions, ball positions, and player actions to predict future trajectories or future joint actions.
310
+
311
+ ---
312
+
313
+ ## Benchmark Evaluation
314
+
315
+ The TacSIm benchmark evaluates generated trajectories at:
316
+
317
+ ```text
318
+ 3 seconds
319
+ 5 seconds
320
+ 10 seconds
321
+ ```
322
+
323
+ Ball-trajectory similarity is evaluated under multiple spatial grid resolutions:
324
+
325
+ ```text
326
+ 10 × 6
327
+ 15 × 10
328
+ 20 × 12
329
+ 30 × 20
330
+ 105 × 68
331
+ ```
332
+
333
+ The benchmark includes the following trajectory-level measurements:
334
+
335
+ - **Spatial Occupancy Similarity**
336
+ - **Movement Vector Similarity**
337
+
338
+ Extended team-level evaluation may additionally report:
339
+
340
+ - **Team Formation Compactness Similarity**
341
+ - **Team Speed Similarity**
342
+
343
+ For reproducible comparisons, all methods should use the same:
344
+
345
+ - train/validation/test split;
346
+ - temporal horizons;
347
+ - coordinate convention;
348
+ - grid resolutions;
349
+ - goalkeeper handling;
350
+ - aggregation procedure.
351
+
352
+ ---
353
+
354
+ ## Intended Uses
355
+
356
+ The dataset is intended for academic research in:
357
+
358
+ - multi-agent learning;
359
+ - sports analytics;
360
+ - football simulation;
361
+ - imitation learning;
362
+ - trajectory modeling;
363
+ - tactical behavior generation;
364
+ - world models;
365
+ - sequential decision making.
366
+
367
+ The dataset may also be used for teaching and reproducibility studies related to multi-agent football environments.
368
+
369
+ ---
370
+
371
+
372
+ ## Data Quality and Preprocessing
373
+
374
+ Each trajectory should be checked for:
375
+
376
+ - exactly 100 ordered time steps;
377
+ - all 35 required columns;
378
+ - finite coordinate values;
379
+ - action IDs within 0–18;
380
+ - consistent coordinate orientation;
381
+ - consistent player indexing.
382
+
383
+ A basic validation example is:
384
+
385
+ ```python
386
+ from pathlib import Path
387
+
388
+ import numpy as np
389
+ import pandas as pd
390
+
391
+ required_columns = [
392
+ item
393
+ for player_id in range(1, 12)
394
+ for item in (
395
+ f"player_{player_id}_x",
396
+ f"player_{player_id}_y",
397
+ )
398
+ ] + [
399
+ "ball_x",
400
+ "ball_y",
401
+ ] + [
402
+ f"player_{player_id}_action"
403
+ for player_id in range(1, 12)
404
+ ]
405
+
406
+ for csv_file in Path("Train").glob("*.csv"):
407
+ data = pd.read_csv(csv_file)
408
+
409
+ assert len(data) == 100
410
+ assert all(
411
+ column in data.columns
412
+ for column in required_columns
413
+ )
414
+ assert np.isfinite(
415
+ data[required_columns].to_numpy()
416
+ ).all()
417
+
418
+ actions = data[
419
+ [
420
+ f"player_{player_id}_action"
421
+ for player_id in range(1, 12)
422
+ ]
423
+ ].to_numpy()
424
+
425
+ assert actions.min() >= 0
426
+ assert actions.max() <= 18
427
+ ```
428
+
429
+ ---
430
+
431
+ ## Ethical Considerations
432
+
433
+ TacSIm contains simulated trajectories and does not contain personal information, biometric identifiers, or recordings of real individuals.
434
+
435
+ Researchers should clearly distinguish simulated findings from conclusions about real athletes or teams.
436
+
437
+ ---
438
+
439
+ ## Citation
440
+
441
+ Please cite the TacSIm paper when using this dataset:
442
+
443
+ ```bibtex
444
+ @inproceedings{wen2026tacsim,
445
+ title={TacSIm: A Dataset and Benchmark for Football Tactical Style Imitation},
446
+ author={Wen, Peng and Wang, Yuting and Wang, Qiurui},
447
+ booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
448
+ pages={20014--20023},
449
+ year={2026}
450
+ }
451
+ ```
452
+
453
+ ---
454
+
455
+ ## Contact
456
+
457
+ For questions, issues, or benchmark submissions, please contact:
458
+
459
+ ```text
460
+ Name:Peng Wen
461
+ Email: wenpengsc@gmail.com
462
+
463
+ ```