Skip to content

Commit

Permalink
Fixed contains_uncond_multipier tailend recursion instead of returnin…
Browse files Browse the repository at this point in the history
…g False
  • Loading branch information
Kosinkadink committed May 17, 2024
1 parent 13d09cf commit bed20c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adv_control/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def contains_uncond_multiplier(control: Union[ControlBase, 'AdvancedControlBase'
for tk in control.timestep_keyframes.keyframes:
if tk.has_control_weights() and tk.control_weights.has_uncond_multiplier:
return True
return False
return contains_uncond_multiplier(control.previous_controlnet)

# check if positive or negative conds contain Adv. Cns that use multiply_negative on weights
def uncond_multiplier_check_cn_sample(model: ModelPatcher, *args, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "comfyui-advanced-controlnet"
description = "Nodes for scheduling ControlNet strength across timesteps and batched latents, as well as applying custom weights and attention masks."
version = "1.0.0"
version = "1.0.1"
license = "LICENSE"
dependencies = []

Expand Down

0 comments on commit bed20c2

Please sign in to comment.