aboutsummaryrefslogtreecommitdiff
path: root/modules/scunet_model.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/scunet_model.py')
-rw-r--r--modules/scunet_model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/scunet_model.py b/modules/scunet_model.py
index 59532274..52360241 100644
--- a/modules/scunet_model.py
+++ b/modules/scunet_model.py
@@ -54,7 +54,7 @@ class UpscalerScuNET(modules.upscaler.Upscaler):
img = img[:, :, ::-1]
img = np.moveaxis(img, 2, 0) / 255
img = torch.from_numpy(img).float()
- img = devices.mps_contiguous_to(img.unsqueeze(0), device)
+ img = img.unsqueeze(0).to(device)
with torch.no_grad():
output = model(img)