aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sd_samplers.py
diff options
context:
space:
mode:
authorAlex "mcmonkey" Goodwin <git_commits@alexgoodwin.dev>2022-12-16 16:42:00 +0000
committerAlex "mcmonkey" Goodwin <git_commits@alexgoodwin.dev>2022-12-16 16:42:00 +0000
commit180fdf7809ea18de2d3b04618846d5a4e33c002e (patch)
tree9903b381911be0dfc053e933ede8ea740fca7417 /modules/sd_samplers.py
parent8b0703b8fcdab153958b11f0dd5e5b6b58565fed (diff)
downloadstable-diffusion-webui-gfx803-180fdf7809ea18de2d3b04618846d5a4e33c002e.tar.gz
stable-diffusion-webui-gfx803-180fdf7809ea18de2d3b04618846d5a4e33c002e.tar.bz2
stable-diffusion-webui-gfx803-180fdf7809ea18de2d3b04618846d5a4e33c002e.zip
apply to DPM2 (non-ancestral) as well
Diffstat (limited to 'modules/sd_samplers.py')
-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)