From bed20c2e2890bc081de42a954d08b0f5a1090758 Mon Sep 17 00:00:00 2001 From: Jedrzej Kosinski Date: Fri, 17 May 2024 03:24:23 -0500 Subject: [PATCH] Fixed contains_uncond_multipier tailend recursion instead of returning False --- adv_control/utils.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/adv_control/utils.py b/adv_control/utils.py index 40131f2..9e0beda 100644 --- a/adv_control/utils.py +++ b/adv_control/utils.py @@ -81,7 +81,7 @@ def uncond_multiplier_check_cn_sample_factory(orig_comfy_sample: Callable, is_cu 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): diff --git a/pyproject.toml b/pyproject.toml index 1fd588e..efffd8f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = []