Skip to content

Commit ee690c3

Browse files
authored
Merge PR #113 from Kosinkadink/develop - fixed uncond_multiplier when last controlnet has 1.0
Fixed contains_uncond_multipier tail end recursion
2 parents 13d09cf + bed20c2 commit ee690c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

adv_control/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def contains_uncond_multiplier(control: Union[ControlBase, 'AdvancedControlBase'
8181
for tk in control.timestep_keyframes.keyframes:
8282
if tk.has_control_weights() and tk.control_weights.has_uncond_multiplier:
8383
return True
84-
return False
84+
return contains_uncond_multiplier(control.previous_controlnet)
8585

8686
# check if positive or negative conds contain Adv. Cns that use multiply_negative on weights
8787
def uncond_multiplier_check_cn_sample(model: ModelPatcher, *args, **kwargs):

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "comfyui-advanced-controlnet"
33
description = "Nodes for scheduling ControlNet strength across timesteps and batched latents, as well as applying custom weights and attention masks."
4-
version = "1.0.0"
4+
version = "1.0.1"
55
license = "LICENSE"
66
dependencies = []
77

0 commit comments

Comments
 (0)