bugfix again for first init varaible
Gitea Actions For AIIA / Explore-Gitea-Actions (push) Successful in 9m35s Details

This commit is contained in:
Falko Victor Habel 2025-06-30 10:24:02 +02:00
parent 358a7c34d0
commit 8c4cd6612a
1 changed files with 3 additions and 0 deletions

View File

@ -202,6 +202,9 @@ class aiuNNTrainer:
def finetune(self, output_path, epochs=10, lr=1e-4, patience=3, min_delta=0.001):
"""Finetune the upscaler model"""
is_improved = False # first the model hasn't been improved
if self.data_loader is None:
raise ValueError("Data not loaded. Call load_data first.")
# setup logging