From 8a517fdc1702f2f460278ae2a78b342bd8ec0866 Mon Sep 17 00:00:00 2001 From: blessedcoolant <54517381+blessedcoolant@users.noreply.github.com> Date: Mon, 29 Aug 2022 11:26:19 +1200 Subject: [PATCH] Fix sampler changer not working. --- ldm/simplet2i.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ldm/simplet2i.py b/ldm/simplet2i.py index b9f1d95ede..f1aec32c29 100644 --- a/ldm/simplet2i.py +++ b/ldm/simplet2i.py @@ -212,7 +212,7 @@ class T2I: save_original=False, upscale=None, variants=None, - user_sampler=None, + sampler_name=None, **args, ): # eat up additional cruft """ @@ -272,8 +272,8 @@ class T2I: scope = autocast if self.precision == 'autocast' else nullcontext - if user_sampler and (user_sampler != self.sampler_name): - self.sampler_name = user_sampler + if sampler_name and (sampler_name != self.sampler_name): + self.sampler_name = sampler_name self._set_sampler() tic = time.time()