From 967b1816462a3f9834887a6295e2daea838d0b62 Mon Sep 17 00:00:00 2001 From: Extraltodeus Date: Sat, 24 May 2025 09:36:22 +0200 Subject: [PATCH] Update nodes.py --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index e04da2f..d940bea 100644 --- a/nodes.py +++ b/nodes.py @@ -323,7 +323,7 @@ class automatic_pre_cfg: def patch(self, model, scaling_method, min_max_method="difference", reference_CFG=8, scale_multiplier=0.8, top_k=0.25, channels_selection=None): parameters_string = f"scaling_method: {scaling_method}\nmin_max_method: {min_max_method}" if channels_selection is not None: - for x in range(channels_selection): + for x in range(len(channels_selection)): parameters_string += f"\nchannel {x+1}: {channels_selection[x]}" scaling_methods_names = [k for k in apply_scaling_methods] @torch.no_grad()