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

[Bug]: Web UI takes ages to load

Open shimizu-izumi opened this issue 2 years ago • 3 comments

Is there an existing issue for this?

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

What happened?

The first start after the PC start takes ages to load

Steps to reproduce the problem

  1. Restart your PC
  2. Start the Web UI

What should have happened?

It should start with the same speed on every start

Commit where the problem happens

ea9bd9fc7409109adcd61b897abc2c8881161256

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

No response

Command Line Arguments

--xformers --no-half-vae --precision full

These don't affect the start speed

List of extensions

  • a1111-sd-webui-tagcomplete
  • booru2prompt
  • stable-diffusion-webui-images-browser

and all build-in extensions

Console logs

Already up to date.
venv "D:\Programme\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec  6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)]
Commit hash: ea9bd9fc7409109adcd61b897abc2c8881161256
Installing requirements for Web UI
Launching Web UI with arguments: --xformers --no-half-vae --precision full
Loading booru2prompt settings
Loading weights [33766e26ad] from D:\Programme\stable-diffusion-webui\models\Stable-diffusion\Anything V3.safetensors
Creating model from config: D:\Programme\stable-diffusion-webui\models\Stable-diffusion\Anything V3.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(0):
Model loaded in 3.8s (create model: 0.5s, apply weights to model: 0.5s, apply half(): 0.6s, move model to device: 1.2s, load textual inversion embeddings: 1.0s).
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.

Additional information

No response

shimizu-izumi avatar Feb 08 '23 09:02 shimizu-izumi

@shimizu-izumi how long? do you see your ram usage exceed your capacity?

ClashSAN avatar Feb 08 '23 13:02 ClashSAN

The starting time of the first start is always different and currently, it won't start at all, the Python processes are doing nothing they just exist. I have 32 GB RAM and 8 GB VRAM, which was never a problem.

shimizu-izumi avatar Feb 08 '23 14:02 shimizu-izumi

I have the same specs and I'm not experiencing this. I had problems with a1111-sd-webui-tagcomplete causing lockups, though not during startups. Either way, I would try without extensions just to be sure they're not the cause.

Skeula avatar Feb 09 '23 18:02 Skeula

Same issue here since I updated the webui, pytorch, xformer and other extensions yesterday. Still confusing...

Xanxus-5 avatar Apr 20 '23 04:04 Xanxus-5