Merge pull request 'bugfix again for first init varaible' (#23) from feat/bugfix into main
Reviewed-on: #23
This commit is contained in:
commit
e01834bb67
|
@ -202,6 +202,9 @@ class aiuNNTrainer:
|
||||||
|
|
||||||
def finetune(self, output_path, epochs=10, lr=1e-4, patience=3, min_delta=0.001):
|
def finetune(self, output_path, epochs=10, lr=1e-4, patience=3, min_delta=0.001):
|
||||||
"""Finetune the upscaler model"""
|
"""Finetune the upscaler model"""
|
||||||
|
|
||||||
|
is_improved = False # first the model hasn't been improved
|
||||||
|
|
||||||
if self.data_loader is None:
|
if self.data_loader is None:
|
||||||
raise ValueError("Data not loaded. Call load_data first.")
|
raise ValueError("Data not loaded. Call load_data first.")
|
||||||
# setup logging
|
# setup logging
|
||||||
|
|
Loading…
Reference in New Issue