ShivamShrirao / diffusers

🤗 Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch
https://huggingface.co/docs/diffusers
Apache License 2.0
1.89k stars 506 forks source link

memory_efficient_attention() got an unexpected keyword argument 'scale' #220

Closed tomanick closed 1 year ago

tomanick commented 1 year ago

Describe the bug

Yesterday I can run the same code successfully, but I have this bug today. image

Does xformers update its library version recently?

Reproduction

!wget -q https://github.com/ShivamShrirao/diffusers/raw/main/examples/dreambooth/train_dreambooth.py !wget -q https://github.com/ShivamShrirao/diffusers/raw/main/scripts/convert_diffusers_to_original_stable_diffusion.py %pip install -qq git+https://github.com/ShivamShrirao/diffusers %pip install -q -U --pre triton %pip install -q accelerate==0.12.0 transformers ftfy bitsandbytes gradio natsort %pip install --upgrade git+https://github.com/huggingface/diffusers.git transformers accelerate scipy

%pip install git+https://github.com/facebookresearch/xformers@1d31a3a#egg=xformers

!pip install deepface pillow pyheif !pip install safetensors

I use the above codes to install libraries.

Logs

No response

System Info

Google Colab