diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-01-27 07:06:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-27 07:06:40 +0000 |
commit | 7ea0859362beb318977249f51853afd4fe8e3100 (patch) | |
tree | c401222eeab04d7728e88739449046446165a71f /modules | |
parent | 4d5db58a3e82b441fa0ca15df0370d49175e2aea (diff) | |
parent | 2996e43ff71ca50f6e5b64676f998946d8041d19 (diff) | |
download | stable-diffusion-webui-gfx803-7ea0859362beb318977249f51853afd4fe8e3100.tar.gz stable-diffusion-webui-gfx803-7ea0859362beb318977249f51853afd4fe8e3100.tar.bz2 stable-diffusion-webui-gfx803-7ea0859362beb318977249f51853afd4fe8e3100.zip |
Merge pull request #14728 from AUTOMATIC1111/another-Hr-button-fix-
Another hr button fix
Diffstat (limited to 'modules')
-rw-r--r-- | modules/txt2img.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/txt2img.py b/modules/txt2img.py index 4efcb4c3..fc56b8a8 100644 --- a/modules/txt2img.py +++ b/modules/txt2img.py @@ -60,10 +60,10 @@ def txt2img_upscale(id_task: str, request: gr.Request, gallery, gallery_index, g assert len(gallery) > 0, 'No image to upscale'
assert 0 <= gallery_index < len(gallery), f'Bad image index: {gallery_index}'
- p = txt2img_create_processing(id_task, request, *args)
- p.enable_hr = True
+ p = txt2img_create_processing(id_task, request, *args, force_enable_hr=True)
p.batch_size = 1
p.n_iter = 1
+ # txt2img_upscale attribute that signifies this is called by txt2img_upscale
p.txt2img_upscale = True
geninfo = json.loads(generation_info)
|