fast-stable-diffusion icon indicating copy to clipboard operation
fast-stable-diffusion copied to clipboard

v1.5 -- AttributeError: type object 'BasicTransformerBlock' has no attribute 'ATTENTION_MODES'

Open Fenivan opened this issue 4 years ago • 1 comments

Traceback (most recent call last):
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 14, in <module>
    from modules import shared, devices, sd_samplers, upscaler, extensions, localization, ui_tempdir
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_samplers.py", line 11, in <module>
    from modules import prompt_parser, devices, processing, images
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/processing.py", line 15, in <module>
    import modules.sd_hijack
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_hijack.py", line 31, in <module>
    ldm.modules.attention.BasicTransformerBlock.ATTENTION_MODES["softmax-xformers"] = ldm.modules.attention.CrossAttention
AttributeError: type object 'BasicTransformerBlock' has no attribute 'ATTENTION_MODES'

Fenivan avatar Dec 03 '22 08:12 Fenivan

Remove the folder SD and do a clean run with the latest colab

TheLastBen avatar Dec 03 '22 08:12 TheLastBen