PVNet 5.0.12__tar.gz → 5.0.14__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.
- {pvnet-5.0.12 → pvnet-5.0.14}/PKG-INFO +1 -1
- {pvnet-5.0.12 → pvnet-5.0.14}/PVNet.egg-info/PKG-INFO +1 -1
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/models/base_model.py +2 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/LICENSE +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/PVNet.egg-info/SOURCES.txt +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/PVNet.egg-info/dependency_links.txt +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/PVNet.egg-info/requires.txt +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/PVNet.egg-info/top_level.txt +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/README.md +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/__init__.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/data/__init__.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/data/base_datamodule.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/data/site_datamodule.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/data/uk_regional_datamodule.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/load_model.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/models/__init__.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/models/ensemble.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/models/late_fusion/__init__.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/models/late_fusion/basic_blocks.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/models/late_fusion/encoders/__init__.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/models/late_fusion/encoders/basic_blocks.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/models/late_fusion/encoders/encoders3d.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/models/late_fusion/late_fusion.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/models/late_fusion/linear_networks/__init__.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/models/late_fusion/linear_networks/basic_blocks.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/models/late_fusion/linear_networks/networks.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/models/late_fusion/site_encoders/__init__.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/models/late_fusion/site_encoders/basic_blocks.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/models/late_fusion/site_encoders/encoders.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/optimizers.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/training/__init__.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/training/lightning_module.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/training/plots.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/training/train.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pvnet/utils.py +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/pyproject.toml +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/setup.cfg +0 -0
- {pvnet-5.0.12 → pvnet-5.0.14}/tests/test_end2end.py +0 -0
|
@@ -189,6 +189,7 @@ class HuggingfaceMixin:
|
|
|
189
189
|
cache_dir: str | None = None,
|
|
190
190
|
force_download: bool = False,
|
|
191
191
|
strict: bool = True,
|
|
192
|
+
token: bool | str | None = None,
|
|
192
193
|
) -> "BaseModel":
|
|
193
194
|
"""Load Pytorch pretrained weights and return the loaded model."""
|
|
194
195
|
|
|
@@ -207,6 +208,7 @@ class HuggingfaceMixin:
|
|
|
207
208
|
force_download=force_download,
|
|
208
209
|
max_retries=5,
|
|
209
210
|
wait_time=10,
|
|
211
|
+
token=token
|
|
210
212
|
)
|
|
211
213
|
|
|
212
214
|
with open(config_file, "r") as f:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|