diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-05 00:25:37 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-05 00:25:37 +0000 |
commit | a8a58dbac7b205ae90664c3b249d60e4baa2855c (patch) | |
tree | 68d8912439be31cb6445250319d6133050cbba79 /modules/txt2img.py | |
parent | f91d0c3d19ac2b849cd15a519f711f9281e782cd (diff) | |
download | stable-diffusion-webui-gfx803-a8a58dbac7b205ae90664c3b249d60e4baa2855c.tar.gz stable-diffusion-webui-gfx803-a8a58dbac7b205ae90664c3b249d60e4baa2855c.tar.bz2 stable-diffusion-webui-gfx803-a8a58dbac7b205ae90664c3b249d60e4baa2855c.zip |
re-integrated tiling option as a UI element
Diffstat (limited to 'modules/txt2img.py')
-rw-r--r-- | modules/txt2img.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/txt2img.py b/modules/txt2img.py index fb65a7f6..dfce49ff 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, steps: int, sampler_index: int, use_GFPGAN: bool, n_iter: int, batch_size: int, cfg_scale: float, seed: int, height: int, width: int, *args):
+def txt2img(prompt: str, negative_prompt: str, steps: int, sampler_index: int, use_GFPGAN: bool, tiling: bool, n_iter: int, batch_size: int, cfg_scale: float, seed: int, height: int, width: int, *args):
p = StableDiffusionProcessingTxt2Img(
sd_model=shared.sd_model,
outpath_samples=opts.outdir_samples or opts.outdir_txt2img_samples,
@@ -21,7 +21,8 @@ def txt2img(prompt: str, negative_prompt: str, steps: int, sampler_index: int, u cfg_scale=cfg_scale,
width=width,
height=height,
- use_GFPGAN=use_GFPGAN
+ use_GFPGAN=use_GFPGAN,
+ tiling=tiling,
)
processed = modules.scripts.scripts_txt2img.run(p, *args)
|