kijai / ComfyUI-ADMotionDirector

ComfyUI nodes for training AnimateDiff motion loras
Apache License 2.0
161 stars 14 forks source link

The size of tensor a (54) must match the size of tensor b (32) at non-singleton dimension 1 #7

Closed andyvha closed 6 months ago

andyvha commented 6 months ago

Hi,

When I use your node, running and got this issue:

ComfyUI-ADMotionDirector/animatediff/models/motion_module.py", line 251, in forward x = x + self.pe[:, :x.size(1)] RuntimeError: The size of tensor a (54) must match the size of tensor b (32) at non-singleton dimension 1

I changed size to smaller or square size like 512... but it still raise issue. I use SD1.5 model. I use pytorch 2.1.2+cuda121

image

kijai commented 6 months ago

What motion model is that you have selected there?

andyvha commented 6 months ago

I use v3_sd15_mm and v3_sd15_adapter

image

andyvha commented 6 months ago

I update to diffusers 0.27.2 and issue gone. Others face with this issue please upgrade diffusers.