Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Error when prompt sizes are too different from each other #4

Open
antoinedelplace opened this issue Dec 19, 2023 · 0 comments
Open

Comments

@antoinedelplace
Copy link

Only happens when prompt sizes are too different from each other.

One prompt is : "test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test "

The other prompt is : "test"

context_cond = torch.cat([cond for cond in self.negative_positive_conds[1]], dim=0)

 File "/home/ubuntu/doc/ComfyUI/custom_nodes/attention-couple-ComfyUI/attention_couple.py", line 120, in patch
    context_cond = torch.cat([cond for cond in self.negative_positive_conds[1]], dim=0)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Sizes of tensors must match except in dimension 0. Expected size 154 but got size 77 for tensor number 1 in the list.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant