From 9f4daca9d9994c600ef713856e0182d0177b9a1e Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Wed, 11 Sep 2024 02:51:36 -0400 Subject: [PATCH] Doesn't really make sense for cfg_pp sampler to call regular one. --- comfy/k_diffusion/sampling.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/comfy/k_diffusion/sampling.py b/comfy/k_diffusion/sampling.py index f9f9170c..ae56aee8 100644 --- a/comfy/k_diffusion/sampling.py +++ b/comfy/k_diffusion/sampling.py @@ -1103,13 +1103,10 @@ def sample_euler_ancestral_cfg_pp(model, x, sigmas, extra_args=None, callback=No return x @torch.no_grad() def sample_dpmpp_2s_ancestral_cfg_pp(model, x, sigmas, extra_args=None, callback=None, disable=None, eta=1., s_noise=1., noise_sampler=None): - if isinstance(model.inner_model.inner_model.model_sampling, comfy.model_sampling.CONST): - return sample_dpmpp_2s_ancestral_RF(model, x, sigmas, extra_args, callback, disable, eta, s_noise, noise_sampler) - """Ancestral sampling with DPM-Solver++(2S) second-order steps.""" extra_args = {} if extra_args is None else extra_args noise_sampler = default_noise_sampler(x) if noise_sampler is None else noise_sampler - + temp = [0] def post_cfg_function(args): temp[0] = args["uncond_denoised"]