Compare commits

..

No commits in common. "9b82024a40f9f6904282c7cc11a308cdaaacbec5" and "fd924fa024315c6544cdf5b5414d337dff9ff2cb" have entirely different histories.

1 changed files with 3 additions and 4 deletions

View File

@ -203,8 +203,7 @@ class aiuNNTrainer:
"""Finetune the upscaler model"""
if self.data_loader is None:
raise ValueError("Data not loaded. Call load_data first.")
# setup logging
self._setup_logging(output_path=output_path)
# Setup optimizer and directories
self.optimizer = optim.Adam(self.model.parameters(), lr=lr)
self.checkpoint_dir = os.path.join(output_path, "checkpoints")