From 19db0422f0e79c0a9069e7d0f24b5ada127d683c Mon Sep 17 00:00:00 2001 From: Jedrzej Kosinski Date: Wed, 13 Aug 2025 18:19:50 -0700 Subject: [PATCH] Fix typo --- comfy/context_windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/context_windows.py b/comfy/context_windows.py index 3ebd0094a..c42e9c1d0 100644 --- a/comfy/context_windows.py +++ b/comfy/context_windows.py @@ -150,7 +150,7 @@ class IndexListContextHandler(ContextHandlerABC): new_cond_item[cond_key] = window.get_tensor(cond_value, device) # if has cond that is a Tensor, check if needs to be subset elif hasattr(cond_value, "cond") and isinstance(cond_value.cond, torch.Tensor): - if cond_value.cond < self.dim and cond_value.cond.size(0) == x_in.size(self.dim): + if cond_value.cond.ndim < self.dim and cond_value.cond.size(0) == x_in.size(self.dim): new_cond_item[cond_key] = cond_value._copy_with(window.get_tensor(cond_value.cond, device)) elif cond_key == "num_video_frames": # for SVD new_cond_item[cond_key] = cond_value._copy_with(cond_value.cond)