fix default sampler

This commit is contained in:
Vladimir Mandic
2024-01-25 16:18:15 -05:00
parent 8fd081ad06
commit f281109172
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -126,6 +126,7 @@ def txt2img_image_conditioning(sd_model, x, width, height):
def get_sampler_name(sampler_index: int, img: bool = False) -> str:
sampler_index = sampler_index or 0
if len(modules.sd_samplers.samplers) > sampler_index:
sampler_name = modules.sd_samplers.samplers[sampler_index].name
else: