mut-ex / gligen-gui

An intuitive GUI for GLIGEN that uses ComfyUI in the backend
Other
2.02k stars 191 forks source link

RuntimeError: Sizes of tensors must match except in dimension 0. #41

Open noahfraiture opened 8 months ago

noahfraiture commented 8 months ago

Hey, I keep having this error RuntimeError: Sizes of tensors must match except in dimension 0. Expected size 1280 but got size 768 for tensor number 1 in the list. no matter what my parameter are. Here's a screenshot of my parameters image_2024-03-14_162143551

Do you have any clue why ? I also tried with different size

Jordain commented 8 months ago

Running into the same error.

Wraithnaut commented 8 months ago

noahghub

Jordain

Try a checkpoint that you know is based on SD1.5 and it should work fine.

SD1.5, SD2.1, and SDXL were all trained on different resolutions so things like IPAdapters, Controlnets, or Gligen need to be retrained at those resolutions to work with other SD model versions. Gligen predates SDXL if I remember correctly and no one trained a new version of Gligen to be compatible with later models like 2.1 or XL.

Jordain commented 8 months ago

Thanks @Wraithnaut will try that