Skip to content

Commit f7a42fe

Browse files
authored
Merge pull request #215 from Kosinkadink/develop
Fixed backwards compatibility for new KF scheduling behavior, changes…
2 parents c4d9455 + ab6526f commit f7a42fe

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

adv_control/utils.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
BIGMIN = -(2**53-1)
2020
BIGMAX = (2**53-1)
21+
BIGMAX_TENSOR = torch.tensor(BIGMAX)
2122

2223
ORIG_PREVIOUS_CONTROLNET = "_orig_previous_controlnet"
2324
CONTROL_INIT_BY_ACN = "_control_init_by_ACN"
@@ -562,7 +563,7 @@ def prepare_current_timestep(self, t: Tensor, transformer_options: dict[str, tor
562563
# get current step percent
563564
curr_t: float = self.t
564565
prev_index = self._current_timestep_index
565-
max_sigma = torch.max(transformer_options.get("sigmas", BIGMAX))
566+
max_sigma = torch.max(transformer_options.get("sample_sigmas", BIGMAX_TENSOR))
566567
# if met guaranteed steps (or no current keyframe), look for next keyframe in case need to switch
567568
if self._current_timestep_keyframe is None or self._current_used_steps >= self._current_timestep_keyframe.get_effective_guarantee_steps(max_sigma):
568569
# if has next index, loop through and see if need to switch

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.5.0"
4+
version = "1.5.1"
55
license = { file = "LICENSE" }
66
dependencies = []
77

0 commit comments

Comments
 (0)