diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-21 10:34:10 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-21 10:34:10 +0000 |
commit | 75dd274dd606f177247809d92a8c362abfbc5cdf (patch) | |
tree | d8a9937c0b525c63de53984f5544fcf60c72e537 /modules/txt2img.py | |
parent | 45c46f4cb3d6924882bd944712be168c7c2f605d (diff) | |
download | stable-diffusion-webui-gfx803-75dd274dd606f177247809d92a8c362abfbc5cdf.tar.gz stable-diffusion-webui-gfx803-75dd274dd606f177247809d92a8c362abfbc5cdf.tar.bz2 stable-diffusion-webui-gfx803-75dd274dd606f177247809d92a8c362abfbc5cdf.zip |
prevent seed extras from having effect when extras checkbox is not checked
Diffstat (limited to 'modules/txt2img.py')
-rw-r--r-- | modules/txt2img.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/txt2img.py b/modules/txt2img.py index 0e6a89ab..9123fca1 100644 --- a/modules/txt2img.py +++ b/modules/txt2img.py @@ -6,7 +6,7 @@ import modules.processing as processing from modules.ui import plaintext_to_html
-def txt2img(prompt: str, negative_prompt: str, prompt_style: str, prompt_style2: str, steps: int, sampler_index: int, restore_faces: bool, tiling: bool, n_iter: int, batch_size: int, cfg_scale: float, seed: int, subseed: int, subseed_strength: float, seed_resize_from_h: int, seed_resize_from_w: int, height: int, width: int, enable_hr: bool, scale_latent: bool, denoising_strength: float, *args):
+def txt2img(prompt: str, negative_prompt: str, prompt_style: str, prompt_style2: str, steps: int, sampler_index: int, restore_faces: bool, tiling: bool, n_iter: int, batch_size: int, cfg_scale: float, seed: int, subseed: int, subseed_strength: float, seed_resize_from_h: int, seed_resize_from_w: int, seed_enable_extras: bool, height: int, width: int, enable_hr: bool, scale_latent: bool, denoising_strength: float, *args):
p = StableDiffusionProcessingTxt2Img(
sd_model=shared.sd_model,
outpath_samples=opts.outdir_samples or opts.outdir_txt2img_samples,
@@ -19,6 +19,7 @@ def txt2img(prompt: str, negative_prompt: str, prompt_style: str, prompt_style2: subseed_strength=subseed_strength,
seed_resize_from_h=seed_resize_from_h,
seed_resize_from_w=seed_resize_from_w,
+ seed_enable_extras=seed_enable_extras,
sampler_index=sampler_index,
batch_size=batch_size,
n_iter=n_iter,
|