From dfb20755f852feb95d88bc39f9c00a6dc1a96d9d Mon Sep 17 00:00:00 2001 From: RyanOnTheInside <7623207+ryanontheinside@users.noreply.github.com> Date: Fri, 6 Feb 2026 18:11:59 -0500 Subject: [PATCH] fix: Cover semantic hint - tensor -> bool --- nodes/acestep/patches.py | 7 +++++++ pyproject.toml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/nodes/acestep/patches.py b/nodes/acestep/patches.py index dbf1a9c..e7fcb4a 100644 --- a/nodes/acestep/patches.py +++ b/nodes/acestep/patches.py @@ -143,6 +143,13 @@ def _create_patched_ace_step15_forward(original_forward): if chunk_masks is None: chunk_masks = torch.ones_like(x) + # Stock prepare_condition uses identity checks (is_covers is True / is False) + # which fail for tensors. Convert to Python bool so the lm_hints branch triggers. + # Only convert truthy tensors — falsy (extend/repaint) must stay as tensor so + # neither branch triggers and src_latents is left unchanged. + if isinstance(is_covers, torch.Tensor) and is_covers.any().item(): + is_covers = True + enc_hidden, enc_mask, context_latents = self.prepare_condition( text_hidden_states, text_attention_mask, lyric_hidden_states, lyric_attention_mask, diff --git a/pyproject.toml b/pyproject.toml index e088427..b28109d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui_ryanonyheinside" description = "Custom nodes introducing everything-reactivity and timelines to ComfyUI" -version = "2.1.1" +version = "2.1.2" license = {file = "LICENSE"} dependencies = ["pygame", "opencv-python>=4.5.0", "scipy", "torchaudio", "pillow", "librosa>=0.10.1", "pymunk>=6.8.0,<7.0.0", "matplotlib", "openunmix", "mido", "scikit-image"]