Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

OpenSportsLib

Sports AI experiments, from data to released models.

OpenSportsLib brings classification, action localization/spotting and visual question answering into one configurable Python framework. Train, evaluate and run inference with task APIs; exchange datasets and predictions through OSL JSON.

Documentation · Datasets · Methods · Released models · Reproductions

Get started

Requires Python 3.12+. In your environment:

pip install opensportslib
opensportslib setup

For source development, use pip install -e . from this checkout. Optional PyTorch Geometric, DALI and VQA profiles are described in the installation guide.

Load a public Tennis swing checkpoint and supply your own video:

from opensportslib.apis import LocalizationModel

model = LocalizationModel.from_pretrained(
    "OpenSportsLab/OSL-loc-tennis-public",
    revision="a00b8454db0fd6b1f0d039274de8ecb541833b9b",
    device="cpu",
)
predictions = model.infer(video_path="clip.mp4", use_wandb=False)
model.save_predictions("predictions.json", predictions)

This earlier Tennis model has its own labels and protocol; it is distinct from the six-class precise event spotting benchmark. Choose a matching dataset, input representation and experiment revision in the model catalog. Some releases require authorized access.

Explore the library

Goal Start here
Train, infer and evaluate First workflow · Task API
Choose data Dataset catalog: sources, labels, pinned revisions and download examples
Compare algorithms Method catalog: papers, main studies and ablations
Use released artifacts Model catalog: weights, matching configs and experiment versions
Inspect predictions/results Dataset leaderboards link measured scores and Predictions (OSL JSON)
Reproduce a study Research guides · One-command Ibex campaigns
Extend a task or method Architecture · Extension guide
Serve a model Inference server

Released research experiments

The localization catalog includes completed T-DEED, NetVLAD/NetRVLAD and NetVLAD++/NetRVLAD++ experiments. Historical T-DEED FineDiving releases remain separate; the model catalog shows release counts for each method. Weights, configs and available predictions use immutable Hugging Face links; structured histories preserve the original first-epoch values. Browse the evidence index.

E2E-Spot paper recipes and ablations are registered. Ongoing experiments enter the catalog after evaluation and publication, without blocking other development. Existing Tennis, BAS and header artifacts keep their original scopes. Paper and library results are compared only when their evaluation protocols match.

Reproduce and extend

python tools/slurm/queue_experiments.py --campaign reproduction/localization.yaml --dry-run
python tools/slurm/queue_experiments.py --campaign reproduction/localization.yaml

The campaign declares methods, data, seeds and resource profiles. An ignored local profile supplies cluster paths and environment settings. The launcher prepares and verifies data, freezes source for running jobs, stages inputs on node-local storage and records each attempt. Model publication is configurable; future results are staged outside the development checkout for review.

Existing complete baselines select exact one-epoch regression checks from the original initialization. First-epoch equality is useful evidence of regression stability; it does not establish identical complete training or paper reproduction. Workflow and extension contract.

Contributing

We welcome contributions. Pull requests must target dev, and each GitHub-linked commit author must accept the Individual Contributor License Agreement when prompted by the CLA check.

See CONTRIBUTING.md for the contribution workflow and DEVELOPERS.md for architecture and extension guidance.


License

OpenSportsLib is available under dual licensing.

Open source license

AGPL 3.0 for research, academic, and community use.

Commercial license

For proprietary or commercial deployment, please refer to LICENSE-COMMERCIAL.


Citation

If you use OpenSportsLib in your research, please cite the project.

@misc{opensportslib,
  title={OpenSportsLib},
  author={OpenSportsLab},
  year={2026},
  howpublished={\url{https://github.com/OpenSportsLab/opensportslib}}
}

Acknowledgments

OpenSportsLib is developed within the broader OpenSportsLab effort for sports video understanding. Core contributors affiliated with KAUST include:

Metadata

Release files for opensportslib 0.3.4.dev2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opensportslib 0.3.4.dev2
File Size Uploaded Provenance Actions
opensportslib-0.3.4.dev2.tar.gz 881.6 kB Without provenance Details for opensportslib-0.3.4.dev2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for opensportslib 0.3.4.dev2
File Interpreter ABI Platform Actions
opensportslib-0.3.4.dev2-py3-none-any.whl Python 3 none any Details for opensportslib-0.3.4.dev2-py3-none-any.whl

Total release size: 2.2 MB

Release files / opensportslib-0.3.4.dev2.tar.gz

Download URL opensportslib-0.3.4.dev2.tar.gz
Size 881.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6b0258ce63212e517d7db3ee9e0f9c525bf6c9f4973fa84b9cf6fd18270c52e2
BLAKE2b-256 checksum
How to use checksums
d2a72dc0bdd12181172d8291c1e6241f606eec594fc07cbbda50827943bab2da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / opensportslib-0.3.4.dev2-py3-none-any.whl

Download URL opensportslib-0.3.4.dev2-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
95ca47978c576c1a77aa380722bc4c4b8e2fde0337ce28b94c9d725fdc3c29ac
BLAKE2b-256 checksum
How to use checksums
13320e8a006ae4ac913a56349a6cea0644bb614e1c168aff1e471b6e8f4d3e62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for opensportslib 0.3.4.dev2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page