opensportslib 0.1.1.dev5__tar.gz → 0.1.1.dev6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {opensportslib-0.1.1.dev5/opensportslib.egg-info → opensportslib-0.1.1.dev6}/PKG-INFO +33 -9
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/README.md +32 -8
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/utils/data.py +2 -4
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/datasets/classification_dataset.py +6 -10
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/backbones/builder.py +3 -5
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6/opensportslib.egg-info}/PKG-INFO +33 -9
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/pyproject.toml +1 -1
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/LICENSE +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/LICENSE-COMMERCIAL +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/MANIFEST.in +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/examples/quickstart/basic_classification.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/examples/quickstart/basic_localization.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/__init__.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/apis/__init__.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/apis/classification.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/apis/localization.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/cli.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/config/classification.yaml +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/config/localization-e2e-ocv.yaml +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/config/localization-json_calf_resnetpca512.yaml +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/config/localization-json_netvlad++_resnetpca512.yaml +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/config/localization.yaml +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/config/sngar-frames.yaml +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/config/sngar-tracking.yaml +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/__init__.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/loss/__init__.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/loss/builder.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/loss/calf.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/loss/ce.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/loss/combine.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/loss/nll.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/optimizer/__init__.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/optimizer/builder.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/sampler/weighted_sampler.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/scheduler/__init__.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/scheduler/builder.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/trainer/__init__.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/trainer/classification_trainer.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/trainer/localization_trainer.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/utils/checkpoint.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/utils/config.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/utils/ddp.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/utils/default_args.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/utils/lightning.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/utils/load_annotations.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/utils/seed.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/utils/video_processing.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/utils/wandb.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/datasets/__init__.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/datasets/builder.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/datasets/localization_dataset.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/datasets/utils/__init__.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/datasets/utils/tracking.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/metrics/classification_metric.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/metrics/localization_metric.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/__init__.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/base/contextaware.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/base/e2e.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/base/learnablepooling.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/base/tracking.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/base/vars.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/base/video.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/base/video_mae.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/builder.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/heads/builder.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/neck/builder.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/utils/common.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/utils/impl/__init__.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/utils/impl/asformer.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/utils/impl/calf.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/utils/impl/gsm.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/utils/impl/gtad.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/utils/impl/tsm.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/utils/litebase.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/utils/modules.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/utils/shift.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/utils/utils.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/setup/setup.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib.egg-info/SOURCES.txt +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib.egg-info/dependency_links.txt +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib.egg-info/entry_points.txt +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib.egg-info/requires.txt +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib.egg-info/top_level.txt +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/setup.cfg +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/tests/conftest.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/tests/test_config_utils_smoke.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/tests/test_package_smoke.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/tests/test_public_apis_smoke.py +0 -0
- {opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/tests/test_subset_train_infer_integration.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: opensportslib
|
|
3
|
-
Version: 0.1.1.
|
|
3
|
+
Version: 0.1.1.dev6
|
|
4
4
|
Summary: OpenSportsLib is the professional library, designed for advanced video understanding in sports. It provides state-of-the-art tools for action recognition, spotting, retrieval, and captioning, making it ideal for researchers, analysts, and developers working with sports video data.
|
|
5
5
|
Author: Jeet Vora
|
|
6
6
|
Requires-Python: >=3.12
|
|
@@ -60,7 +60,9 @@ OpenSportsLib is designed for **researchers, ML engineers, and sports analytics
|
|
|
60
60
|
|
|
61
61
|
## Installation
|
|
62
62
|
|
|
63
|
-
> Requires **Python 3.12+**.
|
|
63
|
+
> Requires **Python 3.12+**.
|
|
64
|
+
> Supports CUDA 12.6 / 12.8 / 13.0 (with CPU fallback).
|
|
65
|
+
> PyTorch Geometric is supported up to PyTorch 2.10.*.
|
|
64
66
|
|
|
65
67
|
### Stable release
|
|
66
68
|
|
|
@@ -74,6 +76,23 @@ pip install opensportslib
|
|
|
74
76
|
pip install --pre opensportslib
|
|
75
77
|
```
|
|
76
78
|
|
|
79
|
+
### Setup Environment (PyTorch, CUDA aware & Optional Dependencies)
|
|
80
|
+
```bash
|
|
81
|
+
# Install PyTorch (CPU/GPU auto-detected)
|
|
82
|
+
opensportslib setup
|
|
83
|
+
|
|
84
|
+
# Optional: install PyTorch Geometric support
|
|
85
|
+
opensportslib setup --pyg
|
|
86
|
+
|
|
87
|
+
# Optional: install for DALI support
|
|
88
|
+
opensportslib setup --dali
|
|
89
|
+
```
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
**Note:**
|
|
93
|
+
Run `opensportslib setup` to automatically configure dependencies.
|
|
94
|
+
If issues occur, manually install compatible versions of `torch`, `torchvision`, and related libraries according to your CUDA version or system compatibility.
|
|
95
|
+
|
|
77
96
|
---
|
|
78
97
|
|
|
79
98
|
## Data and pretrained models
|
|
@@ -197,13 +216,6 @@ cd opensportslib
|
|
|
197
216
|
pip install -e .
|
|
198
217
|
```
|
|
199
218
|
|
|
200
|
-
### With extras
|
|
201
|
-
|
|
202
|
-
```bash
|
|
203
|
-
pip install -e ".[localization]"
|
|
204
|
-
pip install -e ".[py-geometric]" -f https://pytorch-geometric.com/whl/torch-2.10.0+cu128.html
|
|
205
|
-
```
|
|
206
|
-
|
|
207
219
|
### Conda option
|
|
208
220
|
|
|
209
221
|
If you prefer conda:
|
|
@@ -214,6 +226,18 @@ conda activate osl
|
|
|
214
226
|
pip install -e .
|
|
215
227
|
```
|
|
216
228
|
|
|
229
|
+
### Setup Environment (PyTorch, CUDA aware & Optional Dependencies)
|
|
230
|
+
```bash
|
|
231
|
+
# Install PyTorch (CPU/GPU auto-detected)
|
|
232
|
+
opensportslib setup
|
|
233
|
+
|
|
234
|
+
# Optional: install PyTorch Geometric support
|
|
235
|
+
opensportslib setup --pyg
|
|
236
|
+
|
|
237
|
+
# Optional: install for DALI support
|
|
238
|
+
opensportslib setup --dali
|
|
239
|
+
```
|
|
240
|
+
|
|
217
241
|
### Git workflow
|
|
218
242
|
|
|
219
243
|
1. Make sure you are branching from `dev`
|
|
@@ -29,7 +29,9 @@ OpenSportsLib is designed for **researchers, ML engineers, and sports analytics
|
|
|
29
29
|
|
|
30
30
|
## Installation
|
|
31
31
|
|
|
32
|
-
> Requires **Python 3.12+**.
|
|
32
|
+
> Requires **Python 3.12+**.
|
|
33
|
+
> Supports CUDA 12.6 / 12.8 / 13.0 (with CPU fallback).
|
|
34
|
+
> PyTorch Geometric is supported up to PyTorch 2.10.*.
|
|
33
35
|
|
|
34
36
|
### Stable release
|
|
35
37
|
|
|
@@ -43,6 +45,23 @@ pip install opensportslib
|
|
|
43
45
|
pip install --pre opensportslib
|
|
44
46
|
```
|
|
45
47
|
|
|
48
|
+
### Setup Environment (PyTorch, CUDA aware & Optional Dependencies)
|
|
49
|
+
```bash
|
|
50
|
+
# Install PyTorch (CPU/GPU auto-detected)
|
|
51
|
+
opensportslib setup
|
|
52
|
+
|
|
53
|
+
# Optional: install PyTorch Geometric support
|
|
54
|
+
opensportslib setup --pyg
|
|
55
|
+
|
|
56
|
+
# Optional: install for DALI support
|
|
57
|
+
opensportslib setup --dali
|
|
58
|
+
```
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
**Note:**
|
|
62
|
+
Run `opensportslib setup` to automatically configure dependencies.
|
|
63
|
+
If issues occur, manually install compatible versions of `torch`, `torchvision`, and related libraries according to your CUDA version or system compatibility.
|
|
64
|
+
|
|
46
65
|
---
|
|
47
66
|
|
|
48
67
|
## Data and pretrained models
|
|
@@ -166,13 +185,6 @@ cd opensportslib
|
|
|
166
185
|
pip install -e .
|
|
167
186
|
```
|
|
168
187
|
|
|
169
|
-
### With extras
|
|
170
|
-
|
|
171
|
-
```bash
|
|
172
|
-
pip install -e ".[localization]"
|
|
173
|
-
pip install -e ".[py-geometric]" -f https://pytorch-geometric.com/whl/torch-2.10.0+cu128.html
|
|
174
|
-
```
|
|
175
|
-
|
|
176
188
|
### Conda option
|
|
177
189
|
|
|
178
190
|
If you prefer conda:
|
|
@@ -183,6 +195,18 @@ conda activate osl
|
|
|
183
195
|
pip install -e .
|
|
184
196
|
```
|
|
185
197
|
|
|
198
|
+
### Setup Environment (PyTorch, CUDA aware & Optional Dependencies)
|
|
199
|
+
```bash
|
|
200
|
+
# Install PyTorch (CPU/GPU auto-detected)
|
|
201
|
+
opensportslib setup
|
|
202
|
+
|
|
203
|
+
# Optional: install PyTorch Geometric support
|
|
204
|
+
opensportslib setup --pyg
|
|
205
|
+
|
|
206
|
+
# Optional: install for DALI support
|
|
207
|
+
opensportslib setup --dali
|
|
208
|
+
```
|
|
209
|
+
|
|
186
210
|
### Git workflow
|
|
187
211
|
|
|
188
212
|
1. Make sure you are branching from `dev`
|
|
@@ -57,10 +57,8 @@ def tracking_collate_fn(batch):
|
|
|
57
57
|
except ImportError as exc:
|
|
58
58
|
raise ImportError(
|
|
59
59
|
"torch-geometric is required for tracking_collate_fn. "
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"or (editable): pip install -e \".[py-geometric]\" "
|
|
63
|
-
"-f https://pytorch-geometric.com/whl/torch-2.10.0+cu128.html"
|
|
60
|
+
"Run: `opensportslib setup --pyg` to install the correct version "
|
|
61
|
+
"based on your system (PyTorch & CUDA compatible)."
|
|
64
62
|
) from exc
|
|
65
63
|
|
|
66
64
|
batch_size = len(batch)
|
|
@@ -500,11 +500,9 @@ class TrackingDataset(ClassificationDataset):
|
|
|
500
500
|
from torch_geometric.data import Data
|
|
501
501
|
except ImportError as exc:
|
|
502
502
|
raise ImportError(
|
|
503
|
-
"torch-geometric is required for
|
|
504
|
-
"
|
|
505
|
-
"
|
|
506
|
-
"or (editable): pip install -e \".[py-geometric]\" "
|
|
507
|
-
"-f https://pytorch-geometric.com/whl/torch-2.10.0+cu128.html"
|
|
503
|
+
"torch-geometric is required for tracking_collate_fn. "
|
|
504
|
+
"Run: `opensportslib setup --pyg` to install the correct version "
|
|
505
|
+
"based on your system (PyTorch & CUDA compatible)."
|
|
508
506
|
) from exc
|
|
509
507
|
|
|
510
508
|
from opensportslib.datasets.utils.tracking import normalize_features
|
|
@@ -546,11 +544,9 @@ class TrackingDataset(ClassificationDataset):
|
|
|
546
544
|
from torch_geometric.data import Data
|
|
547
545
|
except ImportError as exc:
|
|
548
546
|
raise ImportError(
|
|
549
|
-
"torch-geometric is required for
|
|
550
|
-
"
|
|
551
|
-
"
|
|
552
|
-
"or (editable): pip install -e \".[py-geometric]\" "
|
|
553
|
-
"-f https://pytorch-geometric.com/whl/torch-2.10.0+cu128.html"
|
|
547
|
+
"torch-geometric is required for tracking_collate_fn. "
|
|
548
|
+
"Run: `opensportslib setup --pyg` to install the correct version "
|
|
549
|
+
"based on your system (PyTorch & CUDA compatible)."
|
|
554
550
|
) from exc
|
|
555
551
|
|
|
556
552
|
from opensportslib.datasets.utils.tracking import (
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/backbones/builder.py
RENAMED
|
@@ -39,11 +39,9 @@ from opensportslib.models.utils.shift import make_temporal_shift
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
_PYG_IMPORT_ERROR_MSG = (
|
|
42
|
-
"torch-geometric is required for
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"or (editable): pip install -e \".[py-geometric]\" "
|
|
46
|
-
"-f https://pytorch-geometric.com/whl/torch-2.10.0+cu128.html"
|
|
42
|
+
"torch-geometric is required for tracking_collate_fn. "
|
|
43
|
+
"Run: `opensportslib setup --pyg` to install the correct version "
|
|
44
|
+
"based on your system (PyTorch & CUDA compatible)."
|
|
47
45
|
)
|
|
48
46
|
|
|
49
47
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: opensportslib
|
|
3
|
-
Version: 0.1.1.
|
|
3
|
+
Version: 0.1.1.dev6
|
|
4
4
|
Summary: OpenSportsLib is the professional library, designed for advanced video understanding in sports. It provides state-of-the-art tools for action recognition, spotting, retrieval, and captioning, making it ideal for researchers, analysts, and developers working with sports video data.
|
|
5
5
|
Author: Jeet Vora
|
|
6
6
|
Requires-Python: >=3.12
|
|
@@ -60,7 +60,9 @@ OpenSportsLib is designed for **researchers, ML engineers, and sports analytics
|
|
|
60
60
|
|
|
61
61
|
## Installation
|
|
62
62
|
|
|
63
|
-
> Requires **Python 3.12+**.
|
|
63
|
+
> Requires **Python 3.12+**.
|
|
64
|
+
> Supports CUDA 12.6 / 12.8 / 13.0 (with CPU fallback).
|
|
65
|
+
> PyTorch Geometric is supported up to PyTorch 2.10.*.
|
|
64
66
|
|
|
65
67
|
### Stable release
|
|
66
68
|
|
|
@@ -74,6 +76,23 @@ pip install opensportslib
|
|
|
74
76
|
pip install --pre opensportslib
|
|
75
77
|
```
|
|
76
78
|
|
|
79
|
+
### Setup Environment (PyTorch, CUDA aware & Optional Dependencies)
|
|
80
|
+
```bash
|
|
81
|
+
# Install PyTorch (CPU/GPU auto-detected)
|
|
82
|
+
opensportslib setup
|
|
83
|
+
|
|
84
|
+
# Optional: install PyTorch Geometric support
|
|
85
|
+
opensportslib setup --pyg
|
|
86
|
+
|
|
87
|
+
# Optional: install for DALI support
|
|
88
|
+
opensportslib setup --dali
|
|
89
|
+
```
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
**Note:**
|
|
93
|
+
Run `opensportslib setup` to automatically configure dependencies.
|
|
94
|
+
If issues occur, manually install compatible versions of `torch`, `torchvision`, and related libraries according to your CUDA version or system compatibility.
|
|
95
|
+
|
|
77
96
|
---
|
|
78
97
|
|
|
79
98
|
## Data and pretrained models
|
|
@@ -197,13 +216,6 @@ cd opensportslib
|
|
|
197
216
|
pip install -e .
|
|
198
217
|
```
|
|
199
218
|
|
|
200
|
-
### With extras
|
|
201
|
-
|
|
202
|
-
```bash
|
|
203
|
-
pip install -e ".[localization]"
|
|
204
|
-
pip install -e ".[py-geometric]" -f https://pytorch-geometric.com/whl/torch-2.10.0+cu128.html
|
|
205
|
-
```
|
|
206
|
-
|
|
207
219
|
### Conda option
|
|
208
220
|
|
|
209
221
|
If you prefer conda:
|
|
@@ -214,6 +226,18 @@ conda activate osl
|
|
|
214
226
|
pip install -e .
|
|
215
227
|
```
|
|
216
228
|
|
|
229
|
+
### Setup Environment (PyTorch, CUDA aware & Optional Dependencies)
|
|
230
|
+
```bash
|
|
231
|
+
# Install PyTorch (CPU/GPU auto-detected)
|
|
232
|
+
opensportslib setup
|
|
233
|
+
|
|
234
|
+
# Optional: install PyTorch Geometric support
|
|
235
|
+
opensportslib setup --pyg
|
|
236
|
+
|
|
237
|
+
# Optional: install for DALI support
|
|
238
|
+
opensportslib setup --dali
|
|
239
|
+
```
|
|
240
|
+
|
|
217
241
|
### Git workflow
|
|
218
242
|
|
|
219
243
|
1. Make sure you are branching from `dev`
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "opensportslib"
|
|
7
|
-
version = "0.1.1.
|
|
7
|
+
version = "0.1.1.dev6"
|
|
8
8
|
description = "OpenSportsLib is the professional library, designed for advanced video understanding in sports. It provides state-of-the-art tools for action recognition, spotting, retrieval, and captioning, making it ideal for researchers, analysts, and developers working with sports video data."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.12"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/examples/quickstart/basic_classification.py
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/examples/quickstart/basic_localization.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/config/classification.yaml
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/config/localization-e2e-ocv.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/config/localization.yaml
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/config/sngar-frames.yaml
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/config/sngar-tracking.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/optimizer/__init__.py
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/optimizer/builder.py
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/sampler/weighted_sampler.py
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/scheduler/__init__.py
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/scheduler/builder.py
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/trainer/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/utils/checkpoint.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/utils/default_args.py
RENAMED
|
File without changes
|
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/utils/load_annotations.py
RENAMED
|
File without changes
|
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/core/utils/video_processing.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/datasets/localization_dataset.py
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/datasets/utils/__init__.py
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/datasets/utils/tracking.py
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/metrics/classification_metric.py
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/metrics/localization_metric.py
RENAMED
|
File without changes
|
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/base/contextaware.py
RENAMED
|
File without changes
|
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/base/learnablepooling.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/base/video_mae.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/utils/impl/__init__.py
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/utils/impl/asformer.py
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/utils/impl/calf.py
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/utils/impl/gsm.py
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/utils/impl/gtad.py
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/utils/impl/tsm.py
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib/models/utils/litebase.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/opensportslib.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{opensportslib-0.1.1.dev5 → opensportslib-0.1.1.dev6}/tests/test_subset_train_infer_integration.py
RENAMED
|
File without changes
|