aboutsummaryrefslogtreecommitdiff
path: root/modules/txt2img.py
diff options
context:
space:
mode:
authorinvincibledude <>2023-01-21 23:25:36 +0300
committerinvincibledude <>2023-01-21 23:25:36 +0300
commit6c0566f937ba212e3faf1d30c337850543e85a12 (patch)
treee6de26bf7acb84bb79aac489864cca4a43d1c608 /modules/txt2img.py
parent3bd898b6ce94f34bcc7685672f0e4318d2d86b33 (diff)
Type mismatch fix
Diffstat (limited to 'modules/txt2img.py')
-rw-r--r--modules/txt2img.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/txt2img.py b/modules/txt2img.py
index 21f48d12..3d16ac5b 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].name
- if hr_sampler_index != 0 else sd_samplers.samplers[sampler_index].name
+ if hr_sampler_index != 0 else 0
)
p.scripts = modules.scripts.scripts_txt2img