fix: Cover semantic hint - tensor -> bool
This commit is contained in:
@@ -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,
|
||||
|
||||
+1
-1
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user