SilvioGiancola's picture
Update README.md
cf501c2 verified
metadata
license: gpl-3.0

Download the SoccerNet Ball Action Spotting dataset in the OSL Action Spotting JSON format

from huggingface_hub import snapshot_download
snapshot_download(repo_id="OpenSportsLab/SoccerNet-BallActionSpotting-Videos", 
                  repo_type="dataset", revision="main",
                  local_dir="SoccerNet-BallActionSpotting-Videos")

Download specific subsets

Download 224p/720p versions

from huggingface_hub import snapshot_download

# Download the 224p version of the dataset
snapshot_download(repo_id="OpenSportsLab/SoccerNet-BallActionSpotting-Videos", 
                  repo_type="dataset", revision="main",
                  local_dir="SoccerNet-BallActionSpotting-Videos",
                  allow_patterns="224p/*")

# Download the 720p version of the dataset
snapshot_download(repo_id="OpenSportsLab/SoccerNet-BallActionSpotting-Videos", 
                  repo_type="dataset", revision="main",
                  local_dir="SoccerNet-BallActionSpotting-Videos",
                  allow_patterns="720p/*")

Download a split (train/valid/test/challenge) only

from huggingface_hub import snapshot_download

# Download the 224p version of the train subset
snapshot_download(repo_id="OpenSportsLab/SoccerNet-BallActionSpotting-Videos", 
                  repo_type="dataset", revision="main",
                  local_dir="SoccerNet-BallActionSpotting-Videos",
                  allow_patterns="224p/train*")

# Download the 224p version of the valid subset
snapshot_download(repo_id="OpenSportsLab/SoccerNet-BallActionSpotting-Videos", 
                  repo_type="dataset", revision="main",
                  local_dir="SoccerNet-BallActionSpotting-Videos",
                  allow_patterns="224p/valid*")

# Download the 224p version of the test subset
snapshot_download(repo_id="OpenSportsLab/SoccerNet-BallActionSpotting-Videos", 
                  repo_type="dataset", revision="main",
                  local_dir="SoccerNet-BallActionSpotting-Videos",
                  allow_patterns="224p/test*")

# Download the 224p version of the challenge subset
snapshot_download(repo_id="OpenSportsLab/SoccerNet-BallActionSpotting-Videos", 
                  repo_type="dataset", revision="main",
                  local_dir="SoccerNet-BallActionSpotting-Videos",
                  allow_patterns="224p/challenge*")