SilvioGiancola commited on
Commit
cbe9f37
·
verified ·
1 Parent(s): 0ec2275

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +44 -0
README.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ task_categories:
4
+ - other
5
+ ---
6
+
7
+ # SoccerNet Features
8
+
9
+ Pre-extracted per-game features for the [SoccerNet](https://www.soccer-net.org) benchmark, structured as `<league>/<season>/<game>/<file>`, one file per game half (`1_...`/`2_...`).
10
+
11
+ This `main` branch holds no data — each feature type lives on its own branch so you only download what you need:
12
+
13
+ | Branch | Files | Description |
14
+ |---|---|---|
15
+ | `baidu-soccer-embeddings` | `{1,2}_baidu_soccer_embeddings.npy` | Frame embeddings from [baidu-research/vidpress-sports](https://github.com/baidu-research/vidpress-sports), used by the Action Spotting and Dense Video Captioning 2023 challenges |
16
+ | `resnet-tf2` | `{1,2}_ResNET_TF2.npy` | ResNET features @2fps, extracted with TF2 ([SoccerNetv2-DevKit](https://github.com/SilvioGiancola/SoccerNetv2-DevKit)) |
17
+ | `resnet-tf2-pca512` | `{1,2}_ResNET_TF2_PCA512.npy` | Same as above, dimensionality-reduced to 512 with PCA |
18
+ | `player-boundingbox-maskrcnn` | `{1,2}_player_boundingbox_maskrcnn.json` | Player bounding boxes @2fps, extracted with MaskRCNN |
19
+ | `field-calib-ccbv` | `{1,2}_field_calib_ccbv.json` | Field camera calibration @2fps, extracted with CCBV |
20
+
21
+ ## Download
22
+
23
+ Using the [SoccerNet pip package](https://pypi.org/project/SoccerNet/) (recommended — matches the local folder layout used by the rest of the `SoccerNet.Downloader` API):
24
+
25
+ ```python
26
+ from SoccerNet.Downloader import SoccerNetDownloader
27
+ d = SoccerNetDownloader(LocalDirectory="path/to/soccernet")
28
+ d.downloadDataTask(task="spotting-2023", split=["train", "valid", "test", "challenge"])
29
+ d.downloadDataTask(task="caption-2023", split=["train", "valid", "test", "challenge"])
30
+ ```
31
+
32
+ Directly with `huggingface_hub`, picking a branch and (optionally) a subset of games via `allow_patterns`:
33
+
34
+ ```python
35
+ from huggingface_hub import snapshot_download
36
+ snapshot_download(
37
+ repo_id="SoccerNet/SN-Features",
38
+ repo_type="dataset",
39
+ revision="resnet-tf2-pca512", # one of the branches listed above
40
+ local_dir="path/to/soccernet",
41
+ )
42
+ ```
43
+
44
+ Corresponding labels (`Labels-v2.json`, `Labels-caption.json`) are in [`SoccerNet/SN-Labels`](https://huggingface.co/datasets/SoccerNet/SN-Labels). Held-out test/challenge ground truth is in the private [`SoccerNet/SN-GroundTruth`](https://huggingface.co/datasets/SoccerNet/SN-GroundTruth).