Update sd_samplers.py

[UX] UniPC and PLMS as fallback, PLMS forced, settings consistency #829

Refactor
This commit is contained in:
Alexandre Froger
2023-05-09 22:23:14 +08:00
committed by GitHub
parent 2cd023ec7b
commit e132f65c14
+2 -4
View File
@@ -34,11 +34,9 @@ def set_samplers():
shown_img2img = set(shared.opts.show_samplers)
if len(shared.opts.show_samplers) == 0:
shown = set(['UniPC'])
shown = {'PLMS', 'UniPC'}
else:
shown = set(shared.opts.show_samplers)
shown.add('PLMS')
shown = set(shared.opts.show_samplers + ['PLMS'])
samplers = [x for x in all_samplers if x.name in shown]
samplers_for_img2img = [x for x in all_samplers if x.name in shown_img2img]