aboutsummaryrefslogtreecommitdiffstats
path: root/modules/realesrgan_model.py
diff options
context:
space:
mode:
authorbrkirch <brkirch@users.noreply.github.com>2023-01-27 15:19:43 +0000
committerbrkirch <brkirch@users.noreply.github.com>2023-01-28 09:16:25 +0000
commitada17dbd7c4c68a4e559848d2e6f2a7799722806 (patch)
treeced66b899aba64a4e5d7b66a3bc8cdb796e0cf16 /modules/realesrgan_model.py
parentc4b9b07db6272768428fa8efeb7d7a9f22eca0b1 (diff)
downloadstable-diffusion-webui-gfx803-ada17dbd7c4c68a4e559848d2e6f2a7799722806.tar.gz
stable-diffusion-webui-gfx803-ada17dbd7c4c68a4e559848d2e6f2a7799722806.tar.bz2
stable-diffusion-webui-gfx803-ada17dbd7c4c68a4e559848d2e6f2a7799722806.zip
Refactor conditional casting, fix upscalers
Diffstat (limited to 'modules/realesrgan_model.py')
-rw-r--r--modules/realesrgan_model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/realesrgan_model.py b/modules/realesrgan_model.py
index 47f70251..aad4a629 100644
--- a/modules/realesrgan_model.py
+++ b/modules/realesrgan_model.py
@@ -46,7 +46,7 @@ class UpscalerRealESRGAN(Upscaler):
scale=info.scale,
model_path=info.local_data_path,
model=info.model(),
- half=not cmd_opts.no_half,
+ half=not cmd_opts.no_half and not cmd_opts.upcast_sampling,
tile=opts.ESRGAN_tile,
tile_pad=opts.ESRGAN_tile_overlap,
)