Fixed Apply Advanced ControlNet node - new ComfyUI update does not subtract start/end percentages from 1.0

This commit is contained in:
Jedrzej Kosinski
2023-11-16 15:25:41 -06:00
parent ee59f8f91a
commit dbe8136cdc
+1 -1
View File
@@ -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):