Skip to content

Commit

Permalink
Index fix
Browse files Browse the repository at this point in the history
  • Loading branch information
invincibledude committed Jan 21, 2023
1 parent 6c0566f commit 8bec3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/txt2img.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +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[hr_sampler_index].name
hr_sampler=sd_samplers.samplers[hr_sampler_index - 1].name
if hr_sampler_index != 0 else 0
)

Expand Down

0 comments on commit 8bec3a2

Please sign in to comment.