Remove extra .to(device)

This commit is contained in:
brkirch 2022-11-07 19:44:27 -05:00
parent abfa22c16f
commit a5106a7cdc
1 changed files with 0 additions and 1 deletions

View File

@ -56,7 +56,6 @@ class UpscalerScuNET(modules.upscaler.Upscaler):
img = torch.from_numpy(img).float()
img = img.unsqueeze(0).to(device)
img = img.to(device)
with torch.no_grad():
output = model(img)
output = output.squeeze().float().cpu().clamp_(0, 1).numpy()