mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-22 09:33:29 +08:00
Fix cond_value.size() call in context window cond resizing
This commit is contained in:
parent
d7c1bea5ae
commit
83f11a8db4
@ -231,7 +231,7 @@ class IndexListContextHandler(ContextHandlerABC):
|
|||||||
if handled:
|
if handled:
|
||||||
continue
|
continue
|
||||||
if isinstance(cond_value, torch.Tensor):
|
if isinstance(cond_value, torch.Tensor):
|
||||||
if (self.dim < cond_value.ndim and cond_value(self.dim) == x_in.size(self.dim)) or \
|
if (self.dim < cond_value.ndim and cond_value.size(self.dim) == x_in.size(self.dim)) or \
|
||||||
(cond_value.ndim < self.dim and cond_value.size(0) == x_in.size(self.dim)):
|
(cond_value.ndim < self.dim and cond_value.size(0) == x_in.size(self.dim)):
|
||||||
new_cond_item[cond_key] = window.get_tensor(cond_value, device)
|
new_cond_item[cond_key] = window.get_tensor(cond_value, device)
|
||||||
# Handle audio_embed (temporal dim is 1)
|
# Handle audio_embed (temporal dim is 1)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user