diff options
author | Greendayle <Greendayle> | 2022-10-08 14:27:48 +0000 |
---|---|---|
committer | Greendayle <Greendayle> | 2022-10-08 14:27:48 +0000 |
commit | 2e8ba0fa478eb076760dc0fdfc526f6f5f1f98c5 (patch) | |
tree | 18bd69791e0eff3affd59876f8b39e9150aa8e2b /modules/esrgan_model.py | |
parent | 5f12e7efd92ad802742f96788b4be3249ad02829 (diff) | |
parent | 4f33289d0fc5aa3a197f4a4c926d03d44f0d597e (diff) | |
download | stable-diffusion-webui-gfx803-2e8ba0fa478eb076760dc0fdfc526f6f5f1f98c5.tar.gz stable-diffusion-webui-gfx803-2e8ba0fa478eb076760dc0fdfc526f6f5f1f98c5.tar.bz2 stable-diffusion-webui-gfx803-2e8ba0fa478eb076760dc0fdfc526f6f5f1f98c5.zip |
fix conflicts
Diffstat (limited to 'modules/esrgan_model.py')
-rw-r--r-- | modules/esrgan_model.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/esrgan_model.py b/modules/esrgan_model.py index d17e730f..28548124 100644 --- a/modules/esrgan_model.py +++ b/modules/esrgan_model.py @@ -111,7 +111,7 @@ class UpscalerESRGAN(Upscaler): print("Unable to load %s from %s" % (self.model_path, filename))
return None
- pretrained_net = torch.load(filename, map_location='cpu' if shared.device.type == 'mps' else None)
+ pretrained_net = torch.load(filename, map_location='cpu' if devices.device_esrgan.type == 'mps' else None)
crt_model = arch.RRDBNet(3, 3, 64, 23, gc=32)
pretrained_net = fix_model_layers(crt_model, pretrained_net)
|