PVNet 5.0.2__tar.gz → 5.0.3__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.2 → pvnet-5.0.3}/PKG-INFO +1 -1
- {pvnet-5.0.2 → pvnet-5.0.3}/PVNet.egg-info/PKG-INFO +1 -1
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/data/base_datamodule.py +10 -4
- {pvnet-5.0.2 → pvnet-5.0.3}/LICENSE +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/PVNet.egg-info/SOURCES.txt +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/PVNet.egg-info/dependency_links.txt +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/PVNet.egg-info/requires.txt +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/PVNet.egg-info/top_level.txt +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/README.md +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/__init__.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/data/__init__.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/data/site_datamodule.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/data/uk_regional_datamodule.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/load_model.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/models/__init__.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/models/base_model.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/models/ensemble.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/models/late_fusion/__init__.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/models/late_fusion/basic_blocks.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/models/late_fusion/encoders/__init__.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/models/late_fusion/encoders/basic_blocks.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/models/late_fusion/encoders/encoders3d.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/models/late_fusion/late_fusion.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/models/late_fusion/linear_networks/__init__.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/models/late_fusion/linear_networks/basic_blocks.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/models/late_fusion/linear_networks/networks.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/models/late_fusion/site_encoders/__init__.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/models/late_fusion/site_encoders/basic_blocks.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/models/late_fusion/site_encoders/encoders.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/optimizers.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/training/__init__.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/training/lightning_module.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/training/plots.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/training/train.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pvnet/utils.py +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/pyproject.toml +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/setup.cfg +0 -0
- {pvnet-5.0.2 → pvnet-5.0.3}/tests/test_end2end.py +0 -0
|
@@ -46,6 +46,7 @@ class BasePresavedDataModule(LightningDataModule):
|
|
|
46
46
|
num_workers: int = 0,
|
|
47
47
|
prefetch_factor: int | None = None,
|
|
48
48
|
persistent_workers: bool = False,
|
|
49
|
+
pin_memory: bool = False,
|
|
49
50
|
):
|
|
50
51
|
"""Base Datamodule for loading pre-saved samples
|
|
51
52
|
|
|
@@ -53,10 +54,12 @@ class BasePresavedDataModule(LightningDataModule):
|
|
|
53
54
|
sample_dir: Path to the directory of pre-saved samples.
|
|
54
55
|
batch_size: Batch size.
|
|
55
56
|
num_workers: Number of workers to use in multiprocess batch loading.
|
|
56
|
-
prefetch_factor: Number of
|
|
57
|
+
prefetch_factor: Number of batches loaded in advance by each worker.
|
|
57
58
|
persistent_workers: If True, the data loader will not shut down the worker processes
|
|
58
59
|
after a dataset has been consumed once. This allows to maintain the workers Dataset
|
|
59
60
|
instances alive.
|
|
61
|
+
pin_memory: If True, the data loader will copy Tensors into device/CUDA pinned memory
|
|
62
|
+
before returning them.
|
|
60
63
|
"""
|
|
61
64
|
super().__init__()
|
|
62
65
|
|
|
@@ -68,7 +71,7 @@ class BasePresavedDataModule(LightningDataModule):
|
|
|
68
71
|
batch_sampler=None,
|
|
69
72
|
num_workers=num_workers,
|
|
70
73
|
collate_fn=collate_fn,
|
|
71
|
-
pin_memory=
|
|
74
|
+
pin_memory=pin_memory,
|
|
72
75
|
drop_last=False,
|
|
73
76
|
timeout=0,
|
|
74
77
|
worker_init_fn=None,
|
|
@@ -100,6 +103,7 @@ class BaseStreamedDataModule(LightningDataModule):
|
|
|
100
103
|
num_workers: int = 0,
|
|
101
104
|
prefetch_factor: int | None = None,
|
|
102
105
|
persistent_workers: bool = False,
|
|
106
|
+
pin_memory: bool = False,
|
|
103
107
|
train_period: list[str | None] = [None, None],
|
|
104
108
|
val_period: list[str | None] = [None, None],
|
|
105
109
|
seed: int | None = None,
|
|
@@ -111,10 +115,12 @@ class BaseStreamedDataModule(LightningDataModule):
|
|
|
111
115
|
configuration: Path to ocf-data-sampler configuration file.
|
|
112
116
|
batch_size: Batch size.
|
|
113
117
|
num_workers: Number of workers to use in multiprocess batch loading.
|
|
114
|
-
prefetch_factor: Number of
|
|
118
|
+
prefetch_factor: Number of batches loaded in advance by each worker.
|
|
115
119
|
persistent_workers: If True, the data loader will not shut down the worker processes
|
|
116
120
|
after a dataset has been consumed once. This allows to maintain the workers Dataset
|
|
117
121
|
instances alive.
|
|
122
|
+
pin_memory: If True, the data loader will copy Tensors into device/CUDA pinned memory
|
|
123
|
+
before returning them.
|
|
118
124
|
train_period: Date range filter for train dataloader.
|
|
119
125
|
val_period: Date range filter for val dataloader.
|
|
120
126
|
seed: Random seed used in shuffling datasets.
|
|
@@ -131,7 +137,7 @@ class BaseStreamedDataModule(LightningDataModule):
|
|
|
131
137
|
batch_sampler=None,
|
|
132
138
|
num_workers=num_workers,
|
|
133
139
|
collate_fn=collate_fn,
|
|
134
|
-
pin_memory=
|
|
140
|
+
pin_memory=pin_memory,
|
|
135
141
|
drop_last=False,
|
|
136
142
|
timeout=0,
|
|
137
143
|
worker_init_fn=None,
|
|
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
|