diff options
author | brkirch <brkirch@users.noreply.github.com> | 2022-11-07 19:25:43 -0500 |
---|---|---|
committer | brkirch <brkirch@users.noreply.github.com> | 2022-11-17 00:08:21 -0500 |
commit | abfa22c16fb3d9b1ed8d049c7b68e94d1cca5b82 (patch) | |
tree | f2e1ef625405fc93408d15dea3d092c7398f4a19 /modules/scunet_model.py | |
parent | 98947d173e3f1667eba29c904f681047dea9de90 (diff) |
Revert "MPS Upscalers Fix"
This reverts commit 768b95394a8500da639b947508f78296524f1836.
Diffstat (limited to 'modules/scunet_model.py')
-rw-r--r-- | modules/scunet_model.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/scunet_model.py b/modules/scunet_model.py index 59532274..36a996bf 100644 --- a/modules/scunet_model.py +++ b/modules/scunet_model.py @@ -54,8 +54,9 @@ 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) + img = img.to(device) with torch.no_grad(): output = model(img) output = output.squeeze().float().cpu().clamp_(0, 1).numpy() |