mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fix sampler changer not working.
This commit is contained in:
parent
373a2d9c32
commit
8a517fdc17
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user