Skip to content

Commit

Permalink
fix for PLMS not working
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Aug 31, 2022
1 parent 757bb7c commit 3e41035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ def p_sample_ddim_hook(sampler_wrapper, x_dec, cond, ts, *args, **kwargs):
class VanillaStableDiffusionSampler:
def __init__(self, constructor):
self.sampler = constructor(sd_model)
self.orig_p_sample_ddim = self.sampler.p_sample_ddim
self.orig_p_sample_ddim = self.sampler.p_sample_ddim if hasattr(self.sampler, 'p_sample_ddim') else None
self.mask = None
self.nmask = None
self.init_latent = None
Expand Down

0 comments on commit 3e41035

Please sign in to comment.