mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
better api defaults
This commit is contained in:
@@ -538,7 +538,10 @@ def save_intermediate(p, latents, suffix):
|
||||
def update_sampler(p, sd_model, second_pass=False):
|
||||
sampler_selection = p.hr_sampler_name if second_pass else p.sampler_name
|
||||
if hasattr(sd_model, 'scheduler'):
|
||||
sampler = sd_samplers.all_samplers_map.get(sampler_selection, None)
|
||||
if sampler_selection is None or sampler_selection == 'None':
|
||||
sampler = sd_samplers.all_samplers_map.get("UniPC")
|
||||
else:
|
||||
sampler = sd_samplers.all_samplers_map.get(sampler_selection, None)
|
||||
if sampler is None:
|
||||
shared.log.warning(f'Sampler: sampler="{sampler_selection}" not found')
|
||||
sampler = sd_samplers.all_samplers_map.get("UniPC")
|
||||
|
||||
Reference in New Issue
Block a user