diff options
author | invincibledude <> | 2023-01-21 21:18:26 +0000 |
---|---|---|
committer | invincibledude <> | 2023-01-21 21:18:26 +0000 |
commit | f7b38c484151a50a75788094d9cd357dd4841966 (patch) | |
tree | 671b114303173f684e5a1732fe832e713885fa00 /modules | |
parent | 0f6862ef3041f3ee18e8236765b1c1958c84385b (diff) | |
download | stable-diffusion-webui-gfx803-f7b38c484151a50a75788094d9cd357dd4841966.tar.gz stable-diffusion-webui-gfx803-f7b38c484151a50a75788094d9cd357dd4841966.tar.bz2 stable-diffusion-webui-gfx803-f7b38c484151a50a75788094d9cd357dd4841966.zip |
Style fix
Diffstat (limited to 'modules')
-rw-r--r-- | modules/txt2img.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/txt2img.py b/modules/txt2img.py index c6ea11c2..2eb41f3d 100644 --- a/modules/txt2img.py +++ b/modules/txt2img.py @@ -38,8 +38,7 @@ def txt2img(id_task: str, prompt: str, negative_prompt: str, prompt_styles, step hr_second_pass_steps=hr_second_pass_steps,
hr_resize_x=hr_resize_x,
hr_resize_y=hr_resize_y,
- hr_sampler=sd_samplers.samplers_for_img2img[hr_sampler_index - 1].name
- if hr_sampler_index != 0 else '---'
+ hr_sampler=sd_samplers.samplers_for_img2img[hr_sampler_index - 1].name if hr_sampler_index != 0 else '---'
)
p.scripts = modules.scripts.scripts_txt2img
|