diff --git a/modules/sd_samplers.py b/modules/sd_samplers.py index 76e82ed5..d99eecad 100644 --- a/modules/sd_samplers.py +++ b/modules/sd_samplers.py @@ -63,9 +63,10 @@ def set_samplers(): def add_sampler(sampler): global all_samplers, all_samplers_map - all_samplers.append(sampler) - all_samplers_map = {x.name: x for x in all_samplers} - set_samplers() + if sampler.name not in [x.name for x in all_samplers]: + all_samplers.append(sampler) + all_samplers_map = {x.name: x for x in all_samplers} + set_samplers() return