apply to DPM2 (non-ancestral) as well
This commit is contained in:
parent
8b0703b8fc
commit
180fdf7809
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user