Fixed when eta = 0

Unexpected behavior when using eta = 0 in something like XY, but your default eta was set to something not 0.
This commit is contained in:
hentailord85ez 2022-09-30 22:38:14 +01:00 committed by AUTOMATIC1111
parent e615d4f9d1
commit 34c638142e
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class VanillaStableDiffusionSampler:
return res return res
def initialize(self, p): def initialize(self, p):
self.eta = p.eta or opts.eta_ddim self.eta = p.eta if p.eta is not None else opts.eta_ddim
for fieldname in ['p_sample_ddim', 'p_sample_plms']: for fieldname in ['p_sample_ddim', 'p_sample_plms']:
if hasattr(self.sampler, fieldname): if hasattr(self.sampler, fieldname):