opensportslib 0.1.3.dev2__py3-none-any.whl → 0.1.3.dev3__py3-none-any.whl
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.3.dev2.dist-info → opensportslib-0.1.3.dev3.dist-info}/METADATA +85 -4
- {opensportslib-0.1.3.dev2.dist-info → opensportslib-0.1.3.dev3.dist-info}/RECORD +7 -7
- {opensportslib-0.1.3.dev2.dist-info → opensportslib-0.1.3.dev3.dist-info}/WHEEL +0 -0
- {opensportslib-0.1.3.dev2.dist-info → opensportslib-0.1.3.dev3.dist-info}/entry_points.txt +0 -0
- {opensportslib-0.1.3.dev2.dist-info → opensportslib-0.1.3.dev3.dist-info}/licenses/LICENSE +0 -0
- {opensportslib-0.1.3.dev2.dist-info → opensportslib-0.1.3.dev3.dist-info}/licenses/LICENSE-COMMERCIAL +0 -0
- {opensportslib-0.1.3.dev2.dist-info → opensportslib-0.1.3.dev3.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: opensportslib
|
|
3
|
-
Version: 0.1.3.
|
|
3
|
+
Version: 0.1.3.dev3
|
|
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
|
|
@@ -57,6 +57,7 @@ OpenSportsLib is designed for **researchers, ML engineers, and sports analytics
|
|
|
57
57
|
## Quick links
|
|
58
58
|
|
|
59
59
|
- **Documentation:** https://opensportslab.github.io/opensportslib/
|
|
60
|
+
- **OSL JSON format:** https://opensportslab.github.io/opensportslib/data/osl-json-format/
|
|
60
61
|
- **PyPI:** https://pypi.org/project/opensportslib/
|
|
61
62
|
- **Issues:** https://github.com/OpenSportsLab/opensportslib/issues
|
|
62
63
|
|
|
@@ -116,7 +117,82 @@ Use it as the main entry point to find:
|
|
|
116
117
|
See the [Model Zoo](docs/model-zoo.md) for available pretrained models,
|
|
117
118
|
reported scores, datasets, and loading snippets.
|
|
118
119
|
|
|
119
|
-
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Dataset format
|
|
123
|
+
|
|
124
|
+
OpenSportsLib annotation files use the **OSL JSON v2.0** format. A dataset JSON
|
|
125
|
+
contains top-level metadata, a shared `labels` schema, and a `data` array where
|
|
126
|
+
each sample points to one or more inputs.
|
|
127
|
+
|
|
128
|
+
Minimal classification sample:
|
|
129
|
+
|
|
130
|
+
```json
|
|
131
|
+
{
|
|
132
|
+
"labels": {
|
|
133
|
+
"action": {
|
|
134
|
+
"type": "single_label",
|
|
135
|
+
"labels": ["pass", "shot"]
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"data": [
|
|
139
|
+
{
|
|
140
|
+
"id": "clip_0001",
|
|
141
|
+
"inputs": [
|
|
142
|
+
{
|
|
143
|
+
"type": "video",
|
|
144
|
+
"path": "clips/clip_0001.mp4",
|
|
145
|
+
"fps": 25.0
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"labels": {
|
|
149
|
+
"action": {
|
|
150
|
+
"label": "shot"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Minimal localization sample:
|
|
159
|
+
|
|
160
|
+
```json
|
|
161
|
+
{
|
|
162
|
+
"labels": {
|
|
163
|
+
"action": {
|
|
164
|
+
"type": "single_label",
|
|
165
|
+
"labels": ["pass", "shot"]
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"data": [
|
|
169
|
+
{
|
|
170
|
+
"id": "game_0001",
|
|
171
|
+
"inputs": [
|
|
172
|
+
{
|
|
173
|
+
"type": "video",
|
|
174
|
+
"path": "games/game_0001.mp4",
|
|
175
|
+
"fps": 25.0
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
"events": [
|
|
179
|
+
{
|
|
180
|
+
"head": "action",
|
|
181
|
+
"label": "pass",
|
|
182
|
+
"position_ms": 1240
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
}
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
Relative paths in `inputs[].path` are resolved from the split media root in the
|
|
191
|
+
YAML config, for example `DATA.train.video_path`. See the full
|
|
192
|
+
[OSL JSON format guide](docs/data/osl-json-format.md) for field definitions,
|
|
193
|
+
multi-modal examples, prediction payloads, and conversion notes.
|
|
194
|
+
|
|
195
|
+
---
|
|
120
196
|
|
|
121
197
|
## Quickstart
|
|
122
198
|
|
|
@@ -223,8 +299,8 @@ from opensportslib.tools import (
|
|
|
223
299
|
### Scripts
|
|
224
300
|
|
|
225
301
|
```bash
|
|
226
|
-
python tools/download_osl_hf.py --repo-id <org/repo> --revision main --split test --format parquet --output-dir downloaded_data
|
|
227
|
-
python tools/upload_osl_hf.py --repo-id <org/repo> --json-path <local_dataset.json> --split test --revision main
|
|
302
|
+
python tools/download/download_osl_hf.py --repo-id <org/repo> --revision main --split test --format parquet --output-dir downloaded_data
|
|
303
|
+
python tools/download/upload_osl_hf.py --repo-id <org/repo> --json-path <local_dataset.json> --split test --revision main
|
|
228
304
|
```
|
|
229
305
|
|
|
230
306
|
Downloads are placed under `<output-dir>/<revision>/<split>`.
|
|
@@ -241,9 +317,13 @@ Predict when key events happen in long untrimmed sports videos.
|
|
|
241
317
|
|
|
242
318
|
### Action Retrieval
|
|
243
319
|
Search and retrieve relevant clips or moments from a collection of sports videos.
|
|
320
|
+
This is part of the roadmap and OSL data model, not a first-class OpenSportsLib
|
|
321
|
+
training workflow yet.
|
|
244
322
|
|
|
245
323
|
### Action Description / Captioning
|
|
246
324
|
Generate text descriptions for sports events and temporal segments.
|
|
325
|
+
This is part of the roadmap and OSL data model, not a first-class OpenSportsLib
|
|
326
|
+
training workflow yet.
|
|
247
327
|
|
|
248
328
|
---
|
|
249
329
|
|
|
@@ -263,6 +343,7 @@ Generate text descriptions for sports events and temporal segments.
|
|
|
263
343
|
Use the README for the fast start, then go deeper through:
|
|
264
344
|
|
|
265
345
|
- Full documentation: https://opensportslab.github.io/opensportslib/
|
|
346
|
+
- OSL JSON format: [docs/data/osl-json-format.md](docs/data/osl-json-format.md)
|
|
266
347
|
- High-level API guide: [opensportslib/apis/README.md](opensportslib/apis/README.md)
|
|
267
348
|
- Configuration guide: https://opensportslab.github.io/opensportslib/tni/config-guide/
|
|
268
349
|
- Example configs: [examples/configs/](examples/configs/)
|
|
@@ -75,8 +75,8 @@ opensportslib/tools/_common.py,sha256=CNSADAK8odNS0xUd2tNExoukrgKEbfNNwGbwIF5JJZ
|
|
|
75
75
|
opensportslib/tools/hf_transfer.py,sha256=wkVJc0iyJojJSV6XBAPtPVQ58NbrGNoEZG5c3-bkMEE,31275
|
|
76
76
|
opensportslib/tools/osl_json_to_parquet.py,sha256=VsEy7KF7x6PA5GPdiAFDgYlyfW9Cey-SvnOiRca2s74,15132
|
|
77
77
|
opensportslib/tools/parquet_to_osl_json.py,sha256=CcD4oYF8HTwJnANr81PerJXLRqTc6BZ6mVsKu7YNJw0,9259
|
|
78
|
-
opensportslib-0.1.3.
|
|
79
|
-
opensportslib-0.1.3.
|
|
78
|
+
opensportslib-0.1.3.dev3.dist-info/licenses/LICENSE,sha256=TfPDBt3ar0uv_f9cqCDMZ5rIzW3CY8anRRd4PkL6ejs,34522
|
|
79
|
+
opensportslib-0.1.3.dev3.dist-info/licenses/LICENSE-COMMERCIAL,sha256=dg9GjCyCFMcfDJPkZ-IFDDt3Z5x_IdTY3YY-yOC1Eo0,163
|
|
80
80
|
tests/conftest.py,sha256=sQPNSSlh2XuvWC3GZ-DM-OicKiDHZHJ7L7sgZ9D3TGY,12231
|
|
81
81
|
tests/test_classification_dataset_paths.py,sha256=lFyfSCl4hCBPmfsmIJVGXCXVucSoBoa6x_sgpPmHgFo,2876
|
|
82
82
|
tests/test_classification_trainer_dataloader.py,sha256=Z75lKH-smmHT_FxAK1actYq8fEiHHfXTjzNsUbmNEVM,3721
|
|
@@ -97,8 +97,8 @@ tools/download/download_osl_hf.py,sha256=4dd-Yei2g_lp7NKom8FQlR99PQkQO3DZpAyKmdY
|
|
|
97
97
|
tools/download/upload_osl_hf.py,sha256=YO-1uqxs-_6wdEdVYrJ7nqelpRDUOYsEmZW5HhpseiI,5777
|
|
98
98
|
tools/training/classification.py,sha256=cSMIMNfP08McYUOt17ONo4WVKjAmLDl20WYOidYjJ8k,1277
|
|
99
99
|
tools/training/localization.py,sha256=UC7liIEF_BrVtN8lnLZ5DOGEqSuwB_rNQgjoN_xEKuI,1271
|
|
100
|
-
opensportslib-0.1.3.
|
|
101
|
-
opensportslib-0.1.3.
|
|
102
|
-
opensportslib-0.1.3.
|
|
103
|
-
opensportslib-0.1.3.
|
|
104
|
-
opensportslib-0.1.3.
|
|
100
|
+
opensportslib-0.1.3.dev3.dist-info/METADATA,sha256=CJWfzVQbjxAo5GBtPH9Iy4TtAztlvCBiM1nPIunwMzw,10768
|
|
101
|
+
opensportslib-0.1.3.dev3.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
102
|
+
opensportslib-0.1.3.dev3.dist-info/entry_points.txt,sha256=8haQLjVcah3IRKrlsyeecr0cUB5eXH9UPgJ_DDdT4Zk,57
|
|
103
|
+
opensportslib-0.1.3.dev3.dist-info/top_level.txt,sha256=IJ6LnztNOeuEKQTiMTPPokBJr9ZxUCEIvbCjlPwUVEs,35
|
|
104
|
+
opensportslib-0.1.3.dev3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|