go to cpu

This commit is contained in:
Falko Victor Habel 2025-02-23 23:21:31 +01:00
parent fde8bdcb6f
commit e114023cbc
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ pretrained_model_path = "/root/vision/AIIA/AIIA-base-512"
base_model = AIIABase.load(pretrained_model_path) base_model = AIIABase.load(pretrained_model_path)
model = Upsampler(base_model) model = Upsampler(base_model)
device = torch.device("cuda" if torch.cuda.is_available() else "cpu") device = torch.device("cpu")#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)