From 144255a06d6d8335a2522b959b16bc761e5fd5a0 Mon Sep 17 00:00:00 2001 From: yoinked Date: Tue, 10 Dec 2024 08:23:11 -0800 Subject: [PATCH] revert the sampler_cfg_function thing --- comfy_extras/nodes_mahiro.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comfy_extras/nodes_mahiro.py b/comfy_extras/nodes_mahiro.py index 1a84ff5b7..7972401c0 100644 --- a/comfy_extras/nodes_mahiro.py +++ b/comfy_extras/nodes_mahiro.py @@ -28,8 +28,8 @@ class Mahiro: sim = F.cosine_similarity(normu, normm).mean() simsc = 2 * (sim+1) wm = (simsc*cfg + (4-simsc)*leap) / 4 - return args['input'] - wm - m.set_model_sampler_cfg_function(mahiro_normd) + return wm + m.set_model_sampler_post_cfg_function(mahiro_normd) return (m, ) NODE_CLASS_MAPPINGS = {