From 88fec4b605a576bb74a679ccd9a4001807be96d5 Mon Sep 17 00:00:00 2001 From: comfyanonymous <121283862+comfyanonymous@users.noreply.github.com> Date: Thu, 6 Aug 2026 15:17:44 -0700 Subject: [PATCH] Skip creating useless noise in res_multistep sampler. (#15339) --- comfy/k_diffusion/sampling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/k_diffusion/sampling.py b/comfy/k_diffusion/sampling.py index 11db46d94..11b2479e0 100644 --- a/comfy/k_diffusion/sampling.py +++ b/comfy/k_diffusion/sampling.py @@ -1445,7 +1445,7 @@ def res_multistep(model, x, sigmas, extra_args=None, callback=None, disable=None x = sigma_fn(h) * x + h * (b1 * denoised + b2 * old_denoised) # Noise addition - if sigmas[i + 1] > 0: + if sigma_up > 0: x = x + noise_sampler(sigmas[i], sigmas[i + 1]) * s_noise * sigma_up if cfg_pp: