From c807049ec2d8e3b04e157423fdb414024ccb2e36 Mon Sep 17 00:00:00 2001 From: yoinked Date: Thu, 29 Aug 2024 18:27:13 -0700 Subject: [PATCH] revert rho change rho? r? its just 1/2 --- comfy/k_diffusion/sampling.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/comfy/k_diffusion/sampling.py b/comfy/k_diffusion/sampling.py index adda944d2..f9f9170c9 100644 --- a/comfy/k_diffusion/sampling.py +++ b/comfy/k_diffusion/sampling.py @@ -1135,7 +1135,8 @@ def sample_dpmpp_2s_ancestral_cfg_pp(model, x, sigmas, extra_args=None, callback else: # DPM-Solver++(2S) t, t_next = t_fn(sigmas[i]), t_fn(sigma_down) - r = torch.sinh(1 + (2 - eta) * (t_next - t) / (t - t_fn(sigma_up))) + # r = torch.sinh(1 + (2 - eta) * (t_next - t) / (t - t_fn(sigma_up))) works only on non-cfgpp, weird + r = 1 / 2 h = t_next - t s = t + r * h x_2 = (sigma_fn(s) / sigma_fn(t)) * (x + (denoised - temp[0])) - (-h * r).expm1() * denoised