From e80594487f5b53cb65ed6044d3ee9d9b64e4939a Mon Sep 17 00:00:00 2001 From: yoinked Date: Tue, 10 Dec 2024 09:02:00 -0800 Subject: [PATCH] switch cfg to args["denoised"] --- comfy_extras/nodes_mahiro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy_extras/nodes_mahiro.py b/comfy_extras/nodes_mahiro.py index 7972401c0..8fcdfba75 100644 --- a/comfy_extras/nodes_mahiro.py +++ b/comfy_extras/nodes_mahiro.py @@ -21,7 +21,7 @@ class Mahiro: leap = cond_p * scale #sim with uncond leap u_leap = uncond_p * scale - cfg = uncond_p + (cond_p - uncond_p) * scale + cfg = args["denoised"] merge = (leap + cfg) / 2 normu = torch.sqrt(u_leap.abs()) * u_leap.sign() normm = torch.sqrt(merge.abs()) * merge.sign()