Stability-AI / stablediffusion

High-Resolution Image Synthesis with Latent Diffusion Models
MIT License
39.29k stars 5.07k forks source link

RuntimeError: The shape of the 2D attn_mask is torch.Size([77, 77]). By using latest open-clip-torch #402

Closed jacob-kang closed 2 months ago

jacob-kang commented 2 months ago

RuntimeError: The shape of the 2D attn_mask is torch.Size([77, 77]), but should be (3, 3).

This error is occred if I use the latest version of open-clip-torch. But, after I use pip install open-clip-torch==2.24.0, it's solved.

I need to use latest version open-clip-torch to combine other module to this stable diffusion. but the other module has depandacy of using latest version.

Any reason why it is happened about attn_mask?

thanks

amanikiruga commented 1 month ago

this is happening to me too!