d8ahazard / sd_dreambooth_extension

Other
1.86k stars 281 forks source link

[Bug]: Exception training model: 'xformers is not available. Make sure it is installed correctly'. #1308

Closed 2575044704 closed 1 year ago

2575044704 commented 1 year ago

Is there an existing issue for this?

What happened?

I have installed xformers in webui, but when I start to train, it gives an error 'Exception training model: 'xformers is not available. Make sure it is installed correctly'. My xformers version is 0.0.16rc425

Steps to reproduce the problem

1. 2.

Commit and libraries

0|webui_main1 | [!] xformers version 0.0.16rc425 installed. 0|webui_main1 | [+] torch version 1.13.1+cu117 installed. 0|webui_main1 | [+] torchvision version 0.14.1+cu117 installed. 0|webui_main1 | [+] accelerate version 0.19.0 installed. 0|webui_main1 | [+] diffusers version 0.16.1 installed. 0|webui_main1 | [+] transformers version 4.30.2 installed. 0|webui_main1 | [+] bitsandbytes version 0.35.4 installed..`.

Command Line Arguments

Launching Web UI with arguments: --no-download-sd-model --xformers --share --listen --no-half-vae --no-hashing --ngrok 2KPyfzQrHit97J02tARy1ckHJYd_69rJbgjpjnVVeuXD3j9tv --no-gradio-queue --lowram

Console logs

0|webui_main1  | Traceback (most recent call last):
0|webui_main1  |   File "/mnt/workspace/stable-diffusion-webui/extensions/sd_dreambooth_extension/dreambooth/ui_functions.py", line 729, in start_training
0|webui_main1  |     result = main(class_gen_method=class_gen_method)
0|webui_main1  |   File "/mnt/workspace/stable-diffusion-webui/extensions/sd_dreambooth_extension/dreambooth/train_dreambooth.py", line 1548, in main
0|webui_main1  |     return inner_loop()
0|webui_main1  |   File "/mnt/workspace/stable-diffusion-webui/extensions/sd_dreambooth_extension/dreambooth/memory.py", line 119, in decorator
0|webui_main1  |     return function(batch_size, grad_size, prof, *args, **kwargs)
0|webui_main1  |   File "/mnt/workspace/stable-diffusion-webui/extensions/sd_dreambooth_extension/dreambooth/train_dreambooth.py", line 316, in inner_loop
0|webui_main1  |     raise ValueError(
0|webui_main1  | ValueError: xformers is not available. Make sure it is installed correctly

Additional information

No response

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 5 days with no activity. Remove stale label or comment or this will be closed in 5 days