AnimateDiff icon indicating copy to clipboard operation
AnimateDiff copied to clipboard

HINT: We don't support broadcasting, please use `expand` yourself before calling `memory_efficient_attention`

Open nianchu1 opened this issue 11 months ago • 7 comments

ValueError: Incompatible shapes for attention inputs: query.shape: torch.Size([32, 14400, 8, 40]) key.shape : torch.Size([2, 77, 8, 40]) value.shape: torch.Size([2, 77, 8, 40]) HINT: We don't support broadcasting, please use expand yourself before calling memory_efficient_attention if you need to

When i use animatediff ,it occur above quesiton.what does it mens?

nianchu1 avatar Mar 10 '24 03:03 nianchu1

I also have the same problem when i use "Reference" in ControlNet v1.1.443.

ValueError: Incompatible shapes for attention inputs: query.shape: torch.Size([2, 7225, 8, 40]) key.shape : torch.Size([1, 77, 8, 40]) value.shape: torch.Size([1, 77, 8, 40]) HINT: We don't support broadcasting, please use expand yourself before calling memory_efficient_attention if you need to

qooyvonne avatar Apr 04 '24 13:04 qooyvonne

Same problem for me with Tiled Diffusion & VAE extension. :(

DenSckriva avatar Apr 13 '24 21:04 DenSckriva

Same problem for me with Tiled Diffusion & VAE extension. :(

Have you solve the problem in the multidiffusion webui extension?

zhichaoLii avatar Jun 11 '24 10:06 zhichaoLii

I solve this issue by setting drop_last=False in the dataloder.

Wangbenzhi avatar Jun 12 '24 06:06 Wangbenzhi

Have the same question.

liyuantsao avatar Jul 19 '24 14:07 liyuantsao

有同样的疑问。

jxrnxx avatar Jul 20 '24 15:07 jxrnxx

当我在 ControlNet v1.1.443 中使用“参考”时,我也遇到了同样的问题。

ValueError:注意力输入的形状不兼容:query.shape:torch。size([2, 7225, 8, 40]) key.shape : 火把。size([1, 77, 8, 40]) value.shape: 火炬。Size([1, 77, 8, 40])提示:我们不支持广播,如果需要,请在致电前自行使用expand``memory_efficient_attention

In optimization Settings :[PR] reverse cue word leads to minimum sigma (when the image is close to completion...) Just change the value to 0

zz13526585541 avatar Aug 24 '24 12:08 zz13526585541