diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-01-02 09:23:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-02 09:23:23 +0000 |
commit | 7c3ab416adae53463c16abc90acfcdd2cdd0045a (patch) | |
tree | 27ae05c022710aaa60e7791ca6bde3e7f60b7511 /modules/realesrgan_model.py | |
parent | 51f1cca8524d3ffa8930b32a571d239c60d65725 (diff) | |
parent | 2cacbc124c49f45da5b66b79d9b0a3ab943472eb (diff) | |
download | stable-diffusion-webui-gfx803-7c3ab416adae53463c16abc90acfcdd2cdd0045a.tar.gz stable-diffusion-webui-gfx803-7c3ab416adae53463c16abc90acfcdd2cdd0045a.tar.bz2 stable-diffusion-webui-gfx803-7c3ab416adae53463c16abc90acfcdd2cdd0045a.zip |
Merge pull request #14500 from akx/spandrel-prefer-half
Spandrel: "prefer half" instead of "force half"
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 4d35b695..ff9d8ac0 100644 --- a/modules/realesrgan_model.py +++ b/modules/realesrgan_model.py @@ -39,7 +39,7 @@ class UpscalerRealESRGAN(Upscaler): model_descriptor = modelloader.load_spandrel_model(
info.local_data_path,
device=self.device,
- half=(not cmd_opts.no_half and not cmd_opts.upcast_sampling),
+ prefer_half=(not cmd_opts.no_half and not cmd_opts.upcast_sampling),
expected_architecture="ESRGAN", # "RealESRGAN" isn't a specific thing for Spandrel
)
return upscale_with_model(
|