Repository: stable-diffusion-webui
Issue: Stuck before 'Applying cross attention optimization' - incomplete startup
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

After I freshly installed the sd-webui as well as pytorch, python, git etc. today, the webui opened and ran perfectly fine the first time. I then closed it and added a few of my checkpoint models then went to run it again. I got to the usual text you get after "Running on Local URL: httP://127.0......" but this time and every single time i've loaded the web-ui, it just stops before you would normally see "Applying cross attention optimization: doggetx/xformers". That part never seems to load and in turn, my web-ui and all actions on it take excessively long if it does anything at all. I can't view/install/edit extensions, settings, etc. I can't even generate an image. One of the many times I restarted everything, randomly the cmd showed the "Applying cross attention optimization....." and things looked good. I could generate an image as well. so I installed a few of the extensions I previously used. (ControlNet, Roop). After restarting from then on I never saw the "Applying cross attention...." load and, again, everything takes forever to load and I cant generate.

To be clear, I completely deleted all my sd-webui files and the folder before installing everything today just to make sure I had the most up to date everything. I ran in to this issue after the fact. The only thing i did different/extra was I installed the latest xformers on my pc. Whether or not i run the command-ARG: --xformers when editing the .bat file, I never see the "applying cross attention optimization...." anymore. Auto1111 ran and performed perfectly fine before I decided to start fresh today, so I'm at a loss. I got everything new and up-to-date since it is a common suggestion for people not being able to load SDXL's checkpoint on the UI.

TL;DR: the usual "Applying cross attention optimzation:..." text never appears when I run the web-ui anymore and basically nothing works. It worked fine the one time that text appeared on startup. Fresh files/installs of all reqs and the web-ui files. Sometimes after a long wait, the text will appear and everything runs fine. Other times the text just never does appear on startup and nothing will work until it does.

### Steps to reproduce the problem

1. Go to sd-webui folder
2. Open/Dbl Click web-ui-user.bat to run the startup for the UI
3. Cry because "Applying attention optimization:..." never appears and you can't do anything


### What should have happened?

"Applying attention optimization: xformers.." should appear shortly after the URL appears on startup. It doesn't, and if it does, it takes forever.

### Version or Commit where the problem happens

1.5.2

### What Python version are you running on ?

Python 3.10.x

### What platforms do you use to access the UI ?

Windows

### What device are you running WebUI on?

Nvidia GPUs (GTX 16 below)

### Cross attention optimization

Automatic

### What browsers do you use to access the UI ?

_No response_

### Command Line Arguments

```Shell
none
```


### List of extensions

Control Net [latest]
Roop [latest]
Ge-Roop Reactor [latest]

### Console logs

```Shell
venv "C:\Users\Joe\Documents\SD-Auto1111\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.5.2
Commit hash: c9c8485bc1e8720aba70f029d25cba1c4abf2b5c

Checking ReActor requirements... Ok

Launching Web UI with arguments: --xformers
2023-08-29 03:07:40,770 - ControlNet - INFO - ControlNet v1.1.313
ControlNet preprocessor location: C:\Users\Joe\Documents\SD-Auto1111\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2023-08-29 03:07:41,145 - ControlNet - INFO - ControlNet v1.1.313
03:07:43 - ReActor - STATUS - Running v0.4.0
Loading weights [4199bcdd14] from C:\Users\Joe\Documents\SD-Auto1111\stable-diffusion-webui\models\Stable-diffusion\revAnimated_v122.safetensors
Creating model from config: C:\Users\Joe\Documents\SD-Auto1111\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 108.7s (launcher: 42.1s, import torch: 25.1s, import gradio: 9.6s, setup paths: 10.7s, other imports: 9.5s, setup codeformer: 0.8s, list SD models: 0.6s, load scripts: 6.9s, reload hypernetworks: 0.2s, initialize extra networks: 0.2s, create ui: 1.0s, gradio launch: 1.9s).
```


### Additional information

using latest version of xformers (0.0.20) and previously had the stock version that came with the web-ui download from the github