From dbfeb0c389f6d4366fae3b3953a25578749cf2b1 Mon Sep 17 00:00:00 2001 From: Extraltodeus Date: Wed, 27 Mar 2024 19:43:10 +0100 Subject: [PATCH] Update nodes.py --- nodes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nodes.py b/nodes.py index 8f87cb9..e82ea7b 100644 --- a/nodes.py +++ b/nodes.py @@ -97,10 +97,10 @@ class advancedDynamicCFG: target_intensity = self.last_cfg_ht_one / 10 - if sigma_boost and cond_scale > 1: - for b in range(len(cond)): - for c in range(len(cond[b])): - uncond[b][c] = uncond[b][c] * torch.norm(cond[b][c]) / torch.norm(uncond[b][c]) + # if sigma_boost and cond_scale > 1: + # for b in range(len(cond)): + # for c in range(len(cond[b])): + # uncond[b][c] = uncond[b][c] * torch.norm(cond[b][c]) / torch.norm(uncond[b][c]) if automatic_cfg == "None" or (cond_scale == 1 and automatic_cfg != "include_boost"): return uncond + cond_scale * (cond - uncond)