SoccerNet SDK
Project description
SOCCERNETV2
conda create -n SoccerNet python pip
pip install SoccerNet
How to Download Games (Python)
from SoccerNet import SoccerNetDownloader
mySoccerNetDownloader = SoccerNetDownloader(LocalDirectory="/path/to/soccernet")
# Download SoccerNet labels and features
mySoccerNetDownloader.downloadGames(files=["Labels.json"], split=["train","valid","test"]) # download labels
mySoccerNetDownloader.downloadGames(files=["Labels-v2.json"], split=["train","valid","test"]) # download labels SN v2
mySoccerNetDownloader.downloadGames(files=["Labels-cameras.json"], split=["train","valid","test"]) # download labels for camera shot
mySoccerNetDownloader.downloadGames(files=["1_ResNET_TF2.npy", "2_ResNET_TF2.npy"], split=["train","valid","test"]) # download Features
# input password to download video (copyright protected)
mySoccerNetDownloader.password = input("Password for videos? (contact the author):\n")
mySoccerNetDownloader.downloadGames(files=["1.mkv", "2.mkv"], split=["train","valid","test"]) # download LQ Videos
mySoccerNetDownloader.downloadGames(files=["1_HQ.mkv", "2_HQ.mkv", "video.ini"], split=["train","valid","test"]) # download HQ Videos
How to read the list Games (Python)
from SoccerNet import getListGames
print(getListGames(split="train")) # return list of games recommended for training
print(getListGames(split="valid")) # return list of games recommended for validation
print(getListGames(split="test")) # return list of games recommended for testing
print(getListGames(split=["train", "valid", "test"])) # return list of games for training, validation and testing
print(getListGames(split="v1")) # return list of games from SoccerNetv1 (train/valid/test)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
SoccerNet-0.0.87.tar.gz
(22.0 kB
view hashes)
Built Distribution
Close
Hashes for SoccerNet-0.0.87-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d79590a5fe5e71e62952a18d3002f3711c226eb61118f5f0ac46473b916d90bd |
|
MD5 | 6994281c9aafb8a00c2ca76166938f7b |
|
BLAKE2b-256 | 645cf2eda581a50dfd9fcfd6aefe08315095b49c2058971cd0de33526618c11d |