opensportslib 0.3.0.dev8__py3-none-any.whl → 0.3.0.dev9__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/core/utils/hf_runtime.py +7 -3
- {opensportslib-0.3.0.dev8.dist-info → opensportslib-0.3.0.dev9.dist-info}/METADATA +1 -1
- {opensportslib-0.3.0.dev8.dist-info → opensportslib-0.3.0.dev9.dist-info}/RECORD +8 -8
- {opensportslib-0.3.0.dev8.dist-info → opensportslib-0.3.0.dev9.dist-info}/WHEEL +1 -1
- {opensportslib-0.3.0.dev8.dist-info → opensportslib-0.3.0.dev9.dist-info}/entry_points.txt +0 -0
- {opensportslib-0.3.0.dev8.dist-info → opensportslib-0.3.0.dev9.dist-info}/licenses/LICENSE +0 -0
- {opensportslib-0.3.0.dev8.dist-info → opensportslib-0.3.0.dev9.dist-info}/licenses/LICENSE-COMMERCIAL +0 -0
- {opensportslib-0.3.0.dev8.dist-info → opensportslib-0.3.0.dev9.dist-info}/top_level.txt +0 -0
|
@@ -234,12 +234,16 @@ def has_peft_adapter_artifacts(adapter_path: str | None) -> bool:
|
|
|
234
234
|
|
|
235
235
|
def load_peft_adapter_if_available(model, adapter_path: str | None):
|
|
236
236
|
"""Load a PEFT adapter into a model when real adapter artifacts exist."""
|
|
237
|
-
if not
|
|
237
|
+
if not adapter_path:
|
|
238
|
+
return model, "not_found"
|
|
239
|
+
is_local_dir = os.path.isdir(adapter_path)
|
|
240
|
+
if is_local_dir and not has_peft_adapter_artifacts(adapter_path):
|
|
238
241
|
return model, "not_found"
|
|
239
242
|
if not optional_package_available("peft"):
|
|
240
243
|
logger.warning(
|
|
241
|
-
"PEFT adapter
|
|
242
|
-
"continuing with base decoder."
|
|
244
|
+
"PEFT adapter requested but optional dependency 'peft' is not installed; "
|
|
245
|
+
"continuing with base decoder. adapter_path=%s",
|
|
246
|
+
adapter_path,
|
|
243
247
|
)
|
|
244
248
|
return model, "missing_peft"
|
|
245
249
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: opensportslib
|
|
3
|
-
Version: 0.3.0.
|
|
3
|
+
Version: 0.3.0.dev9
|
|
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
|
|
@@ -65,7 +65,7 @@ opensportslib/core/utils/config_normalize.py,sha256=0lZ6tuLzfrziTG6j7JXDha7oDJz1
|
|
|
65
65
|
opensportslib/core/utils/data.py,sha256=GH0PxdQwrI8AGv5oiB5e497IOhsAf4DQXOYjDvtQx_k,5924
|
|
66
66
|
opensportslib/core/utils/ddp.py,sha256=DvLHCFh6B9mUFe8Nvvbd-l7JMcu2rgsmOco5LuHs-3c,2343
|
|
67
67
|
opensportslib/core/utils/default_args.py,sha256=beEAkWJZ9ULgtYvhDzKft7sNV7jUONbMKWpkWxks4h4,4400
|
|
68
|
-
opensportslib/core/utils/hf_runtime.py,sha256=
|
|
68
|
+
opensportslib/core/utils/hf_runtime.py,sha256=p713MRG3I_MA1I_-qdCP9i2Nh63fPKePncwayMwcIdI,21744
|
|
69
69
|
opensportslib/core/utils/lightning.py,sha256=XZv20xYTnCcP1MnOmIaq-hrKtQhlUlKN9w7bUZR47yo,2026
|
|
70
70
|
opensportslib/core/utils/load_annotations.py,sha256=EtvuK4avceHF5WxRSJiMmIc-ei97HV0l9ENQE5Ntf2o,25271
|
|
71
71
|
opensportslib/core/utils/seed.py,sha256=0MXbMWQw2jaEfUf5QcWN5eXj6V2RtqrbwvWwbjxBXKY,788
|
|
@@ -126,8 +126,8 @@ opensportslib/tools/_common.py,sha256=CNSADAK8odNS0xUd2tNExoukrgKEbfNNwGbwIF5JJZ
|
|
|
126
126
|
opensportslib/tools/hf_transfer.py,sha256=yzqUOyYS7e5mUGdXUp3CN6o7y88cQ3HxtN_y8dySqlo,32793
|
|
127
127
|
opensportslib/tools/osl_json_to_parquet.py,sha256=VsEy7KF7x6PA5GPdiAFDgYlyfW9Cey-SvnOiRca2s74,15132
|
|
128
128
|
opensportslib/tools/parquet_to_osl_json.py,sha256=CcD4oYF8HTwJnANr81PerJXLRqTc6BZ6mVsKu7YNJw0,9259
|
|
129
|
-
opensportslib-0.3.0.
|
|
130
|
-
opensportslib-0.3.0.
|
|
129
|
+
opensportslib-0.3.0.dev9.dist-info/licenses/LICENSE,sha256=TfPDBt3ar0uv_f9cqCDMZ5rIzW3CY8anRRd4PkL6ejs,34522
|
|
130
|
+
opensportslib-0.3.0.dev9.dist-info/licenses/LICENSE-COMMERCIAL,sha256=dg9GjCyCFMcfDJPkZ-IFDDt3Z5x_IdTY3YY-yOC1Eo0,163
|
|
131
131
|
scripts/run_h5_header_rule_inference.py,sha256=uYOIDSuP7YnDY0wkelnQbNIOrmwKgjcjv0eVOEtW7n0,2183
|
|
132
132
|
scripts/run_header_spotting_eval.py,sha256=Qr2ijUy99ivSRP85uhXtlUOaB9STtF1z86FIqNDoRtE,17265
|
|
133
133
|
tests/conftest.py,sha256=kwcgk_lh0-b4r9ffr63pv3IrkHF0ONxDzfoqwOdvRcs,26805
|
|
@@ -170,8 +170,8 @@ tools/training/classification.py,sha256=cSMIMNfP08McYUOt17ONo4WVKjAmLDl20WYOidYj
|
|
|
170
170
|
tools/training/localization.py,sha256=UC7liIEF_BrVtN8lnLZ5DOGEqSuwB_rNQgjoN_xEKuI,1271
|
|
171
171
|
tools/training/vqa.py,sha256=yOm-6BQ6W-NVVvyAGgmTxjvioTtIw-24aKj7fMCtjCw,2126
|
|
172
172
|
tools/upload/upload_model_hf.py,sha256=3QQPyXv4fiyYRR7R-PFacUeCd8AcXfaIJBI6HkAnNtc,8812
|
|
173
|
-
opensportslib-0.3.0.
|
|
174
|
-
opensportslib-0.3.0.
|
|
175
|
-
opensportslib-0.3.0.
|
|
176
|
-
opensportslib-0.3.0.
|
|
177
|
-
opensportslib-0.3.0.
|
|
173
|
+
opensportslib-0.3.0.dev9.dist-info/METADATA,sha256=IhzHyW2IG2VRQ6RyGBOn2YiEaPsvoVrPjh5CECgLE-s,13543
|
|
174
|
+
opensportslib-0.3.0.dev9.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
175
|
+
opensportslib-0.3.0.dev9.dist-info/entry_points.txt,sha256=8haQLjVcah3IRKrlsyeecr0cUB5eXH9UPgJ_DDdT4Zk,57
|
|
176
|
+
opensportslib-0.3.0.dev9.dist-info/top_level.txt,sha256=DD1d5M37byOAS-nEz4lfpUiFrLsBggzPPOmMcbNIdFE,43
|
|
177
|
+
opensportslib-0.3.0.dev9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|