diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-01-28 15:44:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-28 15:44:36 +0000 |
commit | fecb990debdae2cc99b64808d22ba902e34e575b (patch) | |
tree | 5531204920675c2bbb9189e41cf331554b92f062 /modules/realesrgan_model.py | |
parent | 41e76d12093dd78315925f923bb1cc0f541e5f54 (diff) | |
parent | f9edd578e9e29d160e6d56038bb368dc49895d64 (diff) | |
download | stable-diffusion-webui-gfx803-fecb990debdae2cc99b64808d22ba902e34e575b.tar.gz stable-diffusion-webui-gfx803-fecb990debdae2cc99b64808d22ba902e34e575b.tar.bz2 stable-diffusion-webui-gfx803-fecb990debdae2cc99b64808d22ba902e34e575b.zip |
Merge pull request #7309 from brkirch/fix-embeddings
Fix embeddings, upscalers, and refactor `--upcast-sampling`
Diffstat (limited to 'modules/realesrgan_model.py')
-rw-r--r-- | modules/realesrgan_model.py | 2 |
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,
)
|