diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-14 11:56:39 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-14 11:56:39 +0000 |
commit | 865228a83736bea9ede33e98041f2a7d0ca5daaa (patch) | |
tree | fd19dba380e50d3155050259e9da57c6434f14e6 /modules/txt2img.py | |
parent | 6eb72fd13f34d94d5459290dd1a0bf0e9ddeda82 (diff) | |
download | stable-diffusion-webui-gfx803-865228a83736bea9ede33e98041f2a7d0ca5daaa.tar.gz stable-diffusion-webui-gfx803-865228a83736bea9ede33e98041f2a7d0ca5daaa.tar.bz2 stable-diffusion-webui-gfx803-865228a83736bea9ede33e98041f2a7d0ca5daaa.zip |
change style dropdowns to multiselect
Diffstat (limited to 'modules/txt2img.py')
-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 38b5f591..5a71793b 100644 --- a/modules/txt2img.py +++ b/modules/txt2img.py @@ -8,13 +8,13 @@ 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, seed_enable_extras: bool, height: int, width: int, enable_hr: bool, denoising_strength: float, hr_scale: float, hr_upscaler: str, hr_second_pass_steps: int, hr_resize_x: int, hr_resize_y: int, *args):
+def txt2img(prompt: str, negative_prompt: str, prompt_styles, 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, denoising_strength: float, hr_scale: float, hr_upscaler: str, hr_second_pass_steps: int, hr_resize_x: int, hr_resize_y: int, *args):
p = StableDiffusionProcessingTxt2Img(
sd_model=shared.sd_model,
outpath_samples=opts.outdir_samples or opts.outdir_txt2img_samples,
outpath_grids=opts.outdir_grids or opts.outdir_txt2img_grids,
prompt=prompt,
- styles=[prompt_style, prompt_style2],
+ styles=prompt_styles,
negative_prompt=negative_prompt,
seed=seed,
subseed=subseed,
|