[Bug]: AttributeError: type object 'BasicTransformerBlock' has no attribute 'ATTENTION_MODES'
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
Tried to run automatic1111 and got this error below\
Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 13, in
Steps to reproduce the problem
- Go to thelastben colab and run the cells in sequence
- Press start stable-diffusion
- and BOOM. error
What should have happened?
To able to properly run stable diffusion
Commit where the problem happens
latest
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Microsoft Edge
Command Line Arguments
set COMMANDLINE_ARGS="--enable-insecure-extension-access --hypernetwork-dir modules/hypernetworks --xformers --opt-split-attention --precision full --medvram --no-half --deepdanbooru"
Additional information, context and logs
No response
It happens in webui after recent update.
Same here.
Same:/
Yes, is the attention.py file in the ldm/modules folder that is not working anymore. I'm using AUTOMATIC1111 in local so i just used the ldm folder of the original repo and deleted the older one. I think you can just do that in your gdrive or wait for an update by TheLastBen
FYI; happening after 755df94b2aa62eabd96f900e0dd7ddc83c2f692c. I just checked out backwards until I found a commit that worked. For the git newbs, run git checkout 755df94b2aa62eabd96f900e0dd7ddc83c2f692c until a fix gets merged.
BTW Automatic, you should have a patreon/crypto donate box :) Thanks for your hard work
Seems this is a python module lib path problem. Python is using your old SD1.0 repository when it actually should be using the newer version.
To check, do a 'python3 -m site', you will find 'yourpath/repositories/stable-diffusion' before 'your_path/repositories/stable-diffusion-stability-ai' where the right module should be.
To fix it, vi ~/stable-diffusion-webui/venv/lib/python3.9/site-packages/easy-install.pth
delete this line and save
your_path/repositories/stable-diffusion/
Worked for me.
glad im not the only one. unfortunately I don't understand code so i'll just have to wait for it to be updated.
mee too in the same situation, i'm waiting the fix :/
Yes, is the attention.py file in the ldm/modules folder that is not working anymore. I'm using AUTOMATIC1111 in local so i just used the ldm folder of the original repo and deleted the older one. I think you can just do that in your gdrive or wait for an update by TheLastBen
Thank you! Technical or not, this is the easiest way to fix it for now. Confirms that it works if you are using google colab and locally it might be similar.
Seems this is a python module lib path problem. Python is using your old SD1.0 repository when it actually should be using the newer version.
To check, do a 'python3 -m site', you will find 'yourpath/repositories/stable-diffusion' before 'your_path/repositories/stable-diffusion-stability-ai' where the right module should be.
To fix it, vi ~/stable-diffusion-webui/venv/lib/python3.9/site-packages/easy-install.pth
delete this line and save
your_path/repositories/stable-diffusion/
Worked for me.
also work for me.
Just remove older stable-diffusion and reinstall it. The version changed.
Yes, is the attention.py file in the ldm/modules folder that is not working anymore. I'm using AUTOMATIC1111 in local so i just used the ldm folder of the original repo and deleted the older one. I think you can just do that in your gdrive or wait for an update by TheLastBen
Thank you! Technical or not, this is the easiest way to fix it for now. Confirms that it works if you are using google colab and locally it might be similar. š
No tricks worked for me using Google Colab... I still see the same issue...
No tricks worked for me using Google Colab... I still see the same issue...
add somewhere this before running the last cell:
!curl -L --create-dirs https://raw.githubusercontent.com/Stability-AI/stablediffusion/main/ldm/modules/attention.py -o /content/stable-diffusion-webui/ldm/modules/attention.py
This half worked for me. Once Iād worked out which LDM folder to replace. Mine was in:
/Users/andy/Documents/stable-diffusion-webui/repositories/stable-diffusion-stability-ai
Renamed it and put the suggested folder in its place and although I did get
No module 'xformers'. Proceeding without it
I got the v2 model loaded. However when running v2 from the web ui it fails with:
AttributeError: module 'k_diffusion.external' has no attribute 'CompVisVDenoiser'
Works as before with the 1.5 models.
Andy
On 28 Nov 2022, at 21:00, Nuked @.***> wrote:
Yes, is the attention.py file in the ldm/modules folder that is not working anymore. I'm using AUTOMATIC1111 in local so i just used the ldm folder of the original repo https://github.com/Stability-AI/stablediffusionand deleted the older one. I think you can just do that in your gdrive or wait for an update by TheLastBen https://github.com/TheLastBen Thank you! Technical or not, this is the easiest way to fix it for now. Confirms that it works if you are using google colab and locally it might be similar. š
ā Reply to this email directly, view it on GitHub https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/5101#issuecomment-1329754821, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3OXLXKN73HS7NS56PBLHTWKUMPHANCNFSM6AAAAAASMMSYFI. You are receiving this because you commented.
UPDATE Apparently not all samplers are supported. I have v2 working in the web ui using DDIM.
On 29 Nov 2022, at 12:22, @.*** wrote:
This half worked for me. Once Iād worked out which LDM folder to replace. Mine was in:
/Users/andy/Documents/stable-diffusion-webui/repositories/stable-diffusion-stability-ai
Renamed it and put the suggested folder in its place and although I did get
No module 'xformers'. Proceeding without it
I got the v2 model loaded. However when running v2 from the web ui it fails with:
AttributeError: module 'k_diffusion.external' has no attribute 'CompVisVDenoiser'
Works as before with the 1.5 models.
Andy
On 28 Nov 2022, at 21:00, Nuked @.***> wrote:
Yes, is the attention.py file in the ldm/modules folder that is not working anymore. I'm using AUTOMATIC1111 in local so i just used the ldm folder of the original repo https://github.com/Stability-AI/stablediffusionand deleted the older one. I think you can just do that in your gdrive or wait for an update by TheLastBen https://github.com/TheLastBen Thank you! Technical or not, this is the easiest way to fix it for now. Confirms that it works if you are using google colab and locally it might be similar. š
ā Reply to this email directly, view it on GitHub https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/5101#issuecomment-1329754821, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3OXLXKN73HS7NS56PBLHTWKUMPHANCNFSM6AAAAAASMMSYFI. You are receiving this because you commented.
The V1.5 is also worked as expected after latest merge request
The latest version is working fine for me, thank you all! :)
If you are working in collab, just delete the sd folder in your drive and re-download all the files that solves the problem
i have the colab fast diffusion and i tried like every method in this threat
git newbs, run
git checkout 755df94b2aa62eabd96f900e0dd7ddc83c2f692cuntil a fix gets merged. thanks, working , quick question, how once issue is fixed, how can i newbie place head to latest? git pull is enough?? thanks again
If you are working in collab, just delete the sd folder in your drive and re-download all the files that solves the problem
This worked for me!
@lalamax3d try asking chatGPT :)
chatGPT said: This error indicates that there is no attribute called ATTENTION_MODES defined in your program. Please check if the definition of this attribute is correct and make sure that there is no spelling error.
If you are working in collab, just delete the sd folder in your drive and re-download all the files that solves the problem
That works for me, thanks.