aboutsummaryrefslogtreecommitdiff
path: root/modules/realesrgan_model.py
diff options
context:
space:
mode:
authorunknown <mcgpapu@gmail.com>2023-01-30 05:12:31 -0600
committerunknown <mcgpapu@gmail.com>2023-01-30 05:12:31 -0600
commit21766a0898fd9cc344c5d100396280fa8b0c4e74 (patch)
tree2a365bb6bc60c9916004e67c04f3816880366edf /modules/realesrgan_model.py
parente79b7db4b47a33889551b9266ee3277879d4f560 (diff)
parentaa4688eb8345de583070ca9ddb4c6f585f06762b (diff)
Merge branch 'master' of github.com:AUTOMATIC1111/stable-diffusion-webui into gamepad
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,
)