diff options
author | invincibledude <> | 2023-01-21 21:08:58 +0000 |
---|---|---|
committer | invincibledude <> | 2023-01-21 21:08:58 +0000 |
commit | 6cd7bf9f860dff3b61a50ec2d41915536cbcf448 (patch) | |
tree | 01850fe297acb316e2bb883584953db65fee8ca0 /modules/txt2img.py | |
parent | 3ffe2e768b542c837927cfdf0310a2e0fdd48683 (diff) | |
download | stable-diffusion-webui-gfx803-6cd7bf9f860dff3b61a50ec2d41915536cbcf448.tar.gz stable-diffusion-webui-gfx803-6cd7bf9f860dff3b61a50ec2d41915536cbcf448.tar.bz2 stable-diffusion-webui-gfx803-6cd7bf9f860dff3b61a50ec2d41915536cbcf448.zip |
PLMS edge-case handling fix 3
Diffstat (limited to 'modules/txt2img.py')
-rw-r--r-- | modules/txt2img.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/txt2img.py b/modules/txt2img.py index 8560b74f..9c8ec621 100644 --- a/modules/txt2img.py +++ b/modules/txt2img.py @@ -39,7 +39,7 @@ def txt2img(id_task: str, prompt: str, negative_prompt: str, prompt_styles, step hr_resize_x=hr_resize_x,
hr_resize_y=hr_resize_y,
hr_sampler=sd_samplers.samplers[hr_sampler_index - 1].name
- if hr_sampler_index != 0 else 0
+ if hr_sampler_index != 0 else '---'
)
p.scripts = modules.scripts.scripts_txt2img
|