develop #4

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

View File

@ -9,14 +9,9 @@ from aiia.model import AIIABase, AIIA
from sklearn.model_selection import train_test_split
from typing import Dict, List, Union, Optional
import base64
from tqdm import tqdm
import torch
from torch.utils.data import Dataset
from PIL import Image, ImageFile
import io
import base64
import pandas as pd
class ImageDataset(Dataset):
def __init__(self, dataframe, transform=None):
@ -222,7 +217,7 @@ class ModelTrainer:
"""
self.model.to(self.device)
for epoch in range(num_epochs):
for epoch in tqdm(num_epochs):
print(f"Epoch {epoch+1}/{num_epochs}")
# Train phase
@ -243,7 +238,7 @@ class ModelTrainer:
self.model.train()
running_loss = 0.0
for batch in self.train_loader:
for batch in tqdm(self.train_loader):
low_ress = batch['low_ress'].to(self.device)
high_ress = batch['high_ress'].to(self.device)