-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtask-bas.html
More file actions
429 lines (381 loc) · 13.4 KB
/
task-bas.html
File metadata and controls
429 lines (381 loc) · 13.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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
416
417
418
419
420
421
422
423
424
425
426
427
428
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BAS Task - SoccerTrack v2</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
color: #333;
background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
min-height: 100vh;
padding: 2rem;
}
.container {
max-width: 900px;
margin: 0 auto;
background: #ffffff;
border-radius: 12px;
box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
overflow: hidden;
}
header {
background: #1a1a1a;
color: white;
padding: 2rem;
border-bottom: 3px solid #3b82f6;
}
h1 {
font-size: 2rem;
margin-bottom: 0.5rem;
}
.breadcrumb {
font-size: 0.9rem;
opacity: 0.8;
}
.breadcrumb a {
color: #3b82f6;
text-decoration: none;
}
.breadcrumb a:hover {
text-decoration: underline;
}
main {
padding: 2rem;
}
h2 {
color: #3b82f6;
margin-top: 2rem;
margin-bottom: 1rem;
font-size: 1.5rem;
border-bottom: 2px solid #3b82f6;
padding-bottom: 0.5rem;
}
h2:first-child {
margin-top: 0;
}
h3 {
color: #1d4ed8;
margin-top: 1.5rem;
margin-bottom: 0.5rem;
}
table {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
background: #f8f9fa;
border-radius: 8px;
overflow: hidden;
}
th, td {
padding: 0.75rem;
text-align: left;
border-bottom: 1px solid #e0e0e0;
}
th {
background: #3b82f6;
color: white;
font-weight: 600;
}
tr:last-child td {
border-bottom: none;
}
code {
background: #f4f4f4;
padding: 0.2rem 0.5rem;
border-radius: 4px;
font-family: 'Courier New', monospace;
font-size: 0.9rem;
}
pre {
background: #2d2d2d;
color: #f8f8f2;
padding: 1.5rem;
border-radius: 8px;
overflow-x: auto;
margin: 1rem 0;
}
pre code {
background: none;
color: inherit;
padding: 0;
}
.highlight-box {
background: #eff6ff;
border-left: 4px solid #3b82f6;
padding: 1rem;
margin: 1rem 0;
border-radius: 4px;
}
.diff-box {
background: #fffbeb;
border-left: 4px solid #f59e0b;
padding: 1rem;
margin: 1rem 0;
border-radius: 4px;
}
ul {
margin-left: 2rem;
margin-top: 0.5rem;
}
li {
margin: 0.5rem 0;
}
footer {
background: #2d2d2d;
color: white;
padding: 1.5rem 2rem;
text-align: center;
font-size: 0.9rem;
}
footer a {
color: #3b82f6;
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
.kit-box {
background: #ecfdf5;
border-left: 4px solid #10b981;
padding: 1rem 1.25rem;
margin: 1rem 0;
border-radius: 4px;
}
.kit-box .btn-row {
margin-top: 0.75rem;
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
.kit-box a.btn-kit {
display: inline-block;
padding: 0.5rem 1rem;
background: #10b981;
color: white;
border-radius: 6px;
text-decoration: none;
font-weight: 600;
}
.kit-box a.btn-kit.alt {
background: #fff;
color: #10b981;
border: 1px solid #10b981;
}
.action-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 0.5rem;
margin: 1rem 0;
font-size: 0.95rem;
}
.action-grid div {
background: #f8f9fa;
padding: 0.5rem;
border-radius: 4px;
text-align: center;
}
</style>
</head>
<body>
<div class="container">
<header>
<p class="breadcrumb"><a href="index.html">SoccerTrack v2</a> / Tasks</p>
<h1>⚡ Ball Action Spotting (BAS)</h1>
</header>
<main>
<section id="overview">
<h2>Task Overview</h2>
<p>
<strong>Input:</strong> Panoramic 4K video (full match)<br>
<strong>Output:</strong> Temporal action labels for 12 ball event classes with global timestamps
</p>
<div class="highlight-box">
<strong>Alignment with SoccerNet Ball Action Spotting:</strong><br>
✅ <strong>Same:</strong> 12 action classes, temporal detection, team assignment<br>
⚠️ <strong>Different:</strong> Panoramic view + full match (not broadcast clips)
</div>
</section>
<section id="io">
<h2>Input / Output Definition</h2>
<h3>Input</h3>
<ul>
<li><code>videos/match_XXXXX.mp4</code> — Full match panoramic video (4K)</li>
</ul>
<h3>Output (per action)</h3>
<table>
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>time</code></td>
<td>float</td>
<td>Global timestamp in video (seconds)</td>
</tr>
<tr>
<td><code>event_class</code></td>
<td>string</td>
<td>One of 12 action classes (see below)</td>
</tr>
<tr>
<td><code>team</code></td>
<td>string</td>
<td>left / right / null</td>
</tr>
<tr>
<td><code>player_id</code></td>
<td>int/null</td>
<td>Track ID (when available)</td>
</tr>
</tbody>
</table>
<h3>12 Action Classes</h3>
<div class="action-grid">
<div>Pass</div>
<div>Drive</div>
<div>Header</div>
<div>High Pass</div>
<div>Out</div>
<div>Cross</div>
<div>Throw In</div>
<div>Shot</div>
<div>Ball Player Block</div>
<div>Player Successful Tackle</div>
<div>Free Kick</div>
<div>Goal</div>
</div>
</section>
<section id="layout">
<h2>File Layout</h2>
<pre><code>SoccerTrack-v2/
├── videos/
│ ├── 117093/
│ │ ├── 117093_panorama_1st_half.mp4
│ │ └── 117093_panorama_2nd_half.mp4
│ └── ...
├── gsr/
├── bas/
│ ├── 117093/
│ │ └── 117093_12_class_events.json
│ └── ...
├── mot/
└── raw/
└── ...</code></pre>
<p>
Each match ships <strong>one BAS annotation file covering both halves</strong>. The <code>gameTime</code> field encodes which half each event belongs to.
</p>
<p>
See <a href="format-bas.md">format-bas.md</a> for the full schema reference.
</p>
</section>
<section id="schema">
<h2>Schema & SoccerNet Mapping</h2>
<h3>Example JSON Structure</h3>
<pre><code>{
"UrlLocal": "117093",
"UrlYoutube": null,
"annotations": [
{
"gameTime": "1 - 12:30",
"position": "750000",
"label": "Pass",
"team": "left",
"player_id": "117093_L_9",
"visibility": "visible"
},
...
]
}</code></pre>
<p><code>position</code> is milliseconds from kickoff of the half encoded in <code>gameTime</code>, not from match start. Convert to a frame index with <code>round(int(position) / 40)</code> at 25 fps.</p>
<h3>SoccerNet BAS Correspondence</h3>
<table>
<thead>
<tr>
<th>SoccerTrack v2</th>
<th>SoccerNet BAS</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>time</code></td>
<td><code>timestamp</code></td>
<td>Global time in seconds</td>
</tr>
<tr>
<td><code>event_class</code></td>
<td><code>label</code></td>
<td>12 action classes</td>
</tr>
<tr>
<td><code>team</code></td>
<td><code>team</code></td>
<td>left / right</td>
</tr>
<tr>
<td><code>player_id</code></td>
<td>—</td>
<td>Unique to SoccerTrack v2</td>
</tr>
</tbody>
</table>
</section>
<section id="evaluation">
<h2>Evaluation / Metrics</h2>
<p>
Evaluation uses tolerant <strong>mean Average Precision</strong>, following the
SoccerNet Ball Action Spotting Challenge. Report two tolerances:
</p>
<ul>
<li><strong>mAP@1s</strong> — tight (precise temporal localisation)</li>
<li><strong>mAP@5s</strong> — loose (event-level detection)</li>
</ul>
<p>Reference CLI:</p>
<pre><code>python -m src.evaluation.bas_map \
--pred preds/bas --gt data/bas --matches 117099 117100 \
--tolerances 1 5</code></pre>
</section>
<section id="starter-kit">
<h2>Starter Kit</h2>
<div class="kit-box">
<strong>Get running fast.</strong> The BAS starter kit scaffolds clip features (MViT/I3D/CLIP) + a temporal spotter (T-DEED / ASTRA) with tolerant-mAP evaluation wired in.
<div class="btn-row">
<a class="btn-kit" href="https://github.com/AtomScott/SoccerTrack-v2/tree/main/baselines/bas">📦 baselines/bas/</a>
<a class="btn-kit alt" href="leaderboard.html">🏁 Leaderboard</a>
</div>
</div>
</section>
<section id="differences">
<h2>Differences vs SoccerNet BAS</h2>
<div class="diff-box">
<strong>Key Differences:</strong>
<ul>
<li><strong>Camera view:</strong> Panoramic (full-pitch visibility) vs. broadcast (partial/zoomed)</li>
<li><strong>Duration:</strong> Full match (~90 min) vs. half/clip segments</li>
<li><strong>Additional info:</strong> Player IDs available (linked to GSR tracks)</li>
<li><strong>Camera setup:</strong> Fixed panoramic vs. moving broadcast camera</li>
</ul>
</div>
</section>
</main>
<footer>
<p>
<a href="index.html">← Back to main page</a> |
<a href="https://www.soccer-net.org/tasks/ball-action-spotting">SoccerNet BAS Challenge</a>
</p>
</footer>
</div>
</body>
</html>