From dbe8136cdcba589be30a06df965fe0a82fc618eb Mon Sep 17 00:00:00 2001 From: Jedrzej Kosinski Date: Thu, 16 Nov 2023 15:25:41 -0600 Subject: [PATCH] Fixed Apply Advanced ControlNet node - new ComfyUI update does not subtract start/end percentages from 1.0 --- control/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/nodes.py b/control/nodes.py index 74aeddb..98c433c 100644 --- a/control/nodes.py +++ b/control/nodes.py @@ -140,7 +140,7 @@ class AdvancedControlNetApply: if prev_cnet in cnets: c_net = cnets[prev_cnet] else: - c_net = control_net.copy().set_cond_hint(control_hint, strength, (1.0 - start_percent, 1.0 - end_percent)) + c_net = control_net.copy().set_cond_hint(control_hint, strength, (start_percent, end_percent)) # set cond hint mask if mask_optional is not None: if is_advanced_controlnet(c_net):