mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
fix default sampler
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user