AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
143.31k stars 26.99k forks source link

[Bug]: Change the model the app crashes without errors #15099

Open BrokVid opened 8 months ago

BrokVid commented 8 months ago

Checklist

What happened?

Hi, I'm not a techie, but everything was working fine for me until the last update. Now when I change the model the app crashes without errors and I'm not sure what I can do about it

I have about 10 different SDXL models, the app loads from one of them by default and changing to any other causes the app to crash

Steps to reproduce the problem

  1. Start webui
  2. Change model

What should have happened?

The selected model is loaded

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

sysinfo-2024-03-03-06-54.json

Console logs

venv "D:\stable-diffusion-webui-1.8.0\venv\Scripts\Python.exe"
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.8.0-RC
Commit hash: <none>
Launching Web UI with arguments:
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Loading weights [8557e300af] from D:\stable-diffusion-webui-1.8.0\models\Stable-diffusion\afroditeXL2_dmp++_3m_sde_or_exponential_cfg_5-7_steps_20-40.safetensors
Creating model from config: D:\stable-diffusion-webui-1.8.0\repositories\generative-models\configs\inference\sd_xl_base.yaml
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 8.5s (prepare environment: 1.8s, import torch: 3.2s, import gradio: 0.8s, setup paths: 0.7s, initialize shared: 0.2s, other imports: 0.4s, load scripts: 0.7s, create ui: 0.5s, gradio launch: 0.3s).
Couldn't find VAE named None; using None instead
Applying attention optimization: Doggettx... done.
Model loaded in 4.5s (load weights from disk: 0.6s, create model: 0.4s, apply weights to model: 3.1s, calculate empty prompt: 0.2s).
Для продолжения нажмите любую клавишу . . .

Additional information

No response

TongfanWeitf commented 8 months ago

i have the same problem

CRCODE22 commented 7 months ago

I have the same problem.

grubeninspekteur commented 8 hours ago

I had this checked in settings, because it solved a slow load issue on WSL in the past: "Disable memmapping for loading .safetensors files."

After unchecking, the model change succeeded without crash.