spikezoo 0.2.3.3__py3-none-any.whl → 0.2.3.4__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- spikezoo/pipeline/base_pipeline.py +2 -2
- spikezoo/pipeline/train_cfgs.py +0 -22
- {spikezoo-0.2.3.3.dist-info → spikezoo-0.2.3.4.dist-info}/METADATA +1 -1
- {spikezoo-0.2.3.3.dist-info → spikezoo-0.2.3.4.dist-info}/RECORD +7 -7
- {spikezoo-0.2.3.3.dist-info → spikezoo-0.2.3.4.dist-info}/LICENSE.txt +0 -0
- {spikezoo-0.2.3.3.dist-info → spikezoo-0.2.3.4.dist-info}/WHEEL +0 -0
- {spikezoo-0.2.3.3.dist-info → spikezoo-0.2.3.4.dist-info}/top_level.txt +0 -0
@@ -56,7 +56,7 @@ class Pipeline:
|
|
56
56
|
|
57
57
|
def _setup_model_data(self, model_cfg, dataset_cfg):
|
58
58
|
"""Model and Data setup."""
|
59
|
-
|
59
|
+
print("Model and dataset is setting up...")
|
60
60
|
# model [1] build the model. [2] build the network.
|
61
61
|
self.model: BaseModel = build_model_name(model_cfg) if isinstance(model_cfg, str) else build_model_cfg(model_cfg)
|
62
62
|
self.model.build_network(mode="eval", version=self.cfg.version)
|
@@ -69,7 +69,7 @@ class Pipeline:
|
|
69
69
|
|
70
70
|
def _setup_pipeline(self):
|
71
71
|
"""Pipeline setup."""
|
72
|
-
|
72
|
+
print("Pipeline is setting up...")
|
73
73
|
# save folder
|
74
74
|
self.thistime = datetime.now().strftime("%Y-%m-%d_%H-%M-%S-%f")[:23]
|
75
75
|
self.save_folder = Path(f"results") if len(self.cfg.save_folder) == 0 else self.cfg.save_folder
|
spikezoo/pipeline/train_cfgs.py
CHANGED
@@ -30,28 +30,6 @@ class REDS_BASE_TrainConfig(TrainPipelineConfig):
|
|
30
30
|
scheduler_cfg: Optional[SchedulerConfig] = MultiStepSchedulerConfig(milestones=[400], gamma=0.2) # from wgse
|
31
31
|
loss_weight_dict: Dict = field(default_factory=lambda: {"l1": 1})
|
32
32
|
|
33
|
-
# @dataclass
|
34
|
-
# class REDS_BASE_TrainConfig(TrainPipelineConfig):
|
35
|
-
# """Training setting for methods on the REDS-BASE dataset."""
|
36
|
-
|
37
|
-
# # parameters setting
|
38
|
-
# epochs: int = 700
|
39
|
-
# steps_per_save_imgs: int = 200
|
40
|
-
# steps_per_save_ckpt: int = 500
|
41
|
-
# steps_per_cal_metrics: int = 100
|
42
|
-
# metric_names: List[str] = field(default_factory=lambda: ["psnr", "ssim"])
|
43
|
-
|
44
|
-
# # dataloader setting
|
45
|
-
# bs_train: int = 8
|
46
|
-
# num_workers: int = 4
|
47
|
-
# pin_memory: bool = False
|
48
|
-
|
49
|
-
# # train setting - optimizer & scheduler & loss_dict
|
50
|
-
# optimizer_cfg: OptimizerConfig = AdamOptimizerConfig(lr=1e-4)
|
51
|
-
# scheduler_cfg: Optional[SchedulerConfig] = MultiStepSchedulerConfig(milestones=[400, 600], gamma=0.2) # from wgse
|
52
|
-
# loss_weight_dict: Dict = field(default_factory=lambda: {"l1": 1})
|
53
|
-
|
54
|
-
|
55
33
|
# ! Train Config for each method on the official setting, not recommended to utilize their default parameters owing to the dataset setting.
|
56
34
|
@dataclass
|
57
35
|
class BSFTrainConfig(TrainPipelineConfig):
|
@@ -154,9 +154,9 @@ spikezoo/models/tfi_model.py,sha256=tgD_HsiXk9jGuh5f_Bh6c3BqJi1p5DWCVo4N1tp5fgs,
|
|
154
154
|
spikezoo/models/tfp_model.py,sha256=ihl1H__bWIbE9oair_t8rNJ5qnPJPKl-r_DpaO-0Sdk,663
|
155
155
|
spikezoo/models/wgse_model.py,sha256=Kl9uV-LeO0Lj7SuPQ9pglw1Khs2b-7miS3A_faL6WSU,805
|
156
156
|
spikezoo/pipeline/__init__.py,sha256=WPsukNR4cannwsghiukqNsWbWGH5DVPapR_Ly-WOU4Q,188
|
157
|
-
spikezoo/pipeline/base_pipeline.py,sha256=
|
157
|
+
spikezoo/pipeline/base_pipeline.py,sha256=y_jCmYlNlKnK-607b6p987tA3eDnrOI8S9XJGB0hwUE,13456
|
158
158
|
spikezoo/pipeline/ensemble_pipeline.py,sha256=ljZkGiCCpxvpC04Aa-r_tvBnqcBpUVi9fl_878tJAcg,2555
|
159
|
-
spikezoo/pipeline/train_cfgs.py,sha256=
|
159
|
+
spikezoo/pipeline/train_cfgs.py,sha256=ZzTGKlAwkQGDsI0CBfT0qs6a_sVfSWJWJJgTEjQk7C8,3028
|
160
160
|
spikezoo/pipeline/train_pipeline.py,sha256=BgHUsdv33B_OKauOVclNt7yIPb-_O-93ZHLHIjrwWaA,8459
|
161
161
|
spikezoo/utils/__init__.py,sha256=bYLlusAXwLCoY4s6nhVgviax9ioRA9aea8qgRmj2HpI,152
|
162
162
|
spikezoo/utils/data_utils.py,sha256=mk1xeyIb7o_E1J7Z6-gtPq-rpKiMTxAWSTcvvPvVku8,2033
|
@@ -166,8 +166,8 @@ spikezoo/utils/other_utils.py,sha256=uWNWaII9Jv7fkWNfkAD9wD-4ID-GAzbR-gGYT-1FF_c
|
|
166
166
|
spikezoo/utils/scheduler_utils.py,sha256=5RBh-hl3-2y-IomxMs47T1p3JsbicZNYLza6q1uAKHo,828
|
167
167
|
spikezoo/utils/spike_utils.py,sha256=u4Haa6Sp5xFqs61ztvq161oXTA_aZmNW3VYUZcayNW0,4296
|
168
168
|
spikezoo/utils/vidar_loader.cpython-39-x86_64-linux-gnu.so,sha256=uXqu7ME---cZRRU5LUcLiNrjjtlOjxNwWHyTIQ10BGg,199088
|
169
|
-
spikezoo-0.2.3.
|
170
|
-
spikezoo-0.2.3.
|
171
|
-
spikezoo-0.2.3.
|
172
|
-
spikezoo-0.2.3.
|
173
|
-
spikezoo-0.2.3.
|
169
|
+
spikezoo-0.2.3.4.dist-info/LICENSE.txt,sha256=ukEi8E0PKq1dQGTXHUflg3rppLymwAhr7il9x-0nPgg,1062
|
170
|
+
spikezoo-0.2.3.4.dist-info/METADATA,sha256=I2zSpBAJRP1VXpWb2X-QiUK-6YLX2EkVj00sEzgGPuY,11941
|
171
|
+
spikezoo-0.2.3.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
172
|
+
spikezoo-0.2.3.4.dist-info/top_level.txt,sha256=xF2iuOstrACJh43NW4dsTwIdgKfXPXAb_Xzl3M1ricM,9
|
173
|
+
spikezoo-0.2.3.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|