develop #4

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

View File

@ -97,7 +97,7 @@ pretrained_model_path = "/root/vision/AIIA/AIIA-base-512"
base_model = AIIABase.load(pretrained_model_path, precision="bf16") base_model = AIIABase.load(pretrained_model_path, precision="bf16")
model = Upsampler(base_model) model = Upsampler(base_model)
device = torch.device("cpu")#torch.device("cuda" if torch.cuda.is_available() else "cpu") device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
# Move model to device using channels_last memory format. # Move model to device using channels_last memory format.
model = model.to(device, memory_format=torch.channels_last) model = model.to(device, memory_format=torch.channels_last)