aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex "mcmonkey" Goodwin <git_commits@alexgoodwin.dev>2022-12-16 08:42:00 -0800
committerAlex "mcmonkey" Goodwin <git_commits@alexgoodwin.dev>2022-12-16 08:42:00 -0800
commit180fdf7809ea18de2d3b04618846d5a4e33c002e (patch)
tree9903b381911be0dfc053e933ede8ea740fca7417
parent8b0703b8fcdab153958b11f0dd5e5b6b58565fed (diff)
apply to DPM2 (non-ancestral) as well
-rw-r--r--modules/sd_samplers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_samplers.py b/modules/sd_samplers.py
index b8e0ce53..ae3d8bfa 100644
--- a/modules/sd_samplers.py
+++ b/modules/sd_samplers.py
@@ -494,7 +494,7 @@ class KDiffusionSampler:
x = x * sigmas[0]
- if self.funcname == "sample_dpm_2_ancestral": # workaround dpm2 a issue
+ if self.funcname in ['sample_dpm_2_ancestral', 'sample_dpm_2']:
sigmas = torch.cat([sigmas[:-2], sigmas[-1:]])
extra_params_kwargs = self.initialize(p)