develop #4

Merged
Fabel merged 103 commits from develop into main 2025-03-01 21:47:17 +00:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 7fd2af6f12 - Show all commits

View File

@ -11,7 +11,7 @@ from torchvision import transforms
class UpscaleDataset(Dataset): class UpscaleDataset(Dataset):
def __init__(self, parquet_files: list, transform=None, samples_per_file=2500): def __init__(self, parquet_files: list, transform=None, samples_per_file=5000):
combined_df = pd.DataFrame() combined_df = pd.DataFrame()
for parquet_file in parquet_files: for parquet_file in parquet_files:
# Load a subset from each parquet file # Load a subset from each parquet file

View File

@ -260,7 +260,8 @@ class aiuNNTrainer:
torch.cuda.empty_cache() torch.cuda.empty_cache()
# Check early stopping # Check early stopping
if early_stopping(val_loss if self.validation_loader else avg_train_loss): early_stopping(val_loss if self.validation_loader else avg_train_loss)
if early_stopping.early_stop:
print(f"Early stopping triggered at epoch {epoch + 1}") print(f"Early stopping triggered at epoch {epoch + 1}")
break break