diff options
author | Philpax <me@philpax.me> | 2022-12-25 09:17:49 +0000 |
---|---|---|
committer | Philpax <me@philpax.me> | 2022-12-25 09:17:49 +0000 |
commit | fa931733f6acc94e058a1d3d4655846e33ae34be (patch) | |
tree | 3e0db0a74631e5775199e7d01698a0e98de07975 /modules/api/api.py | |
parent | c6f347b81f584b6c0d44af7a209983284dbb52d2 (diff) | |
download | stable-diffusion-webui-gfx803-fa931733f6acc94e058a1d3d4655846e33ae34be.tar.gz stable-diffusion-webui-gfx803-fa931733f6acc94e058a1d3d4655846e33ae34be.tar.bz2 stable-diffusion-webui-gfx803-fa931733f6acc94e058a1d3d4655846e33ae34be.zip |
fix(api): assign sd_model after settings change
Diffstat (limited to 'modules/api/api.py')
-rw-r--r-- | modules/api/api.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/api/api.py b/modules/api/api.py index 1ceba75d..0a1a1905 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -121,7 +121,6 @@ class Api: def text2imgapi(self, txt2imgreq: StableDiffusionTxt2ImgProcessingAPI): populate = txt2imgreq.copy(update={ # Override __init__ params - "sd_model": shared.sd_model, "sampler_name": validate_sampler_name(txt2imgreq.sampler_name or txt2imgreq.sampler_index), "do_not_save_samples": True, "do_not_save_grid": True @@ -153,7 +152,6 @@ class Api: mask = decode_base64_to_image(mask) populate = img2imgreq.copy(update={ # Override __init__ params - "sd_model": shared.sd_model, "sampler_name": validate_sampler_name(img2imgreq.sampler_name or img2imgreq.sampler_index), "do_not_save_samples": True, "do_not_save_grid": True, |