diff options
author | brkirch <brkirch@users.noreply.github.com> | 2022-11-08 00:44:27 +0000 |
---|---|---|
committer | brkirch <brkirch@users.noreply.github.com> | 2022-11-17 05:08:45 +0000 |
commit | a5106a7cdc24153332e4eb1d28e66ea1d7f1ef79 (patch) | |
tree | 8fc2f4df08284f371113909d644c990d7414160f /modules/scunet_model.py | |
parent | abfa22c16fb3d9b1ed8d049c7b68e94d1cca5b82 (diff) | |
download | stable-diffusion-webui-gfx803-a5106a7cdc24153332e4eb1d28e66ea1d7f1ef79.tar.gz stable-diffusion-webui-gfx803-a5106a7cdc24153332e4eb1d28e66ea1d7f1ef79.tar.bz2 stable-diffusion-webui-gfx803-a5106a7cdc24153332e4eb1d28e66ea1d7f1ef79.zip |
Remove extra .to(device)
Diffstat (limited to 'modules/scunet_model.py')
-rw-r--r-- | modules/scunet_model.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/scunet_model.py b/modules/scunet_model.py index 36a996bf..52360241 100644 --- a/modules/scunet_model.py +++ b/modules/scunet_model.py @@ -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() |