PLMS edge-case handling fix 3

This commit is contained in:
invincibledude
2023-01-22 00:08:58 +03:00
parent 3ffe2e768b
commit 6cd7bf9f86
2 changed files with 3 additions and 3 deletions

View File

@@ -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