AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: Webui loads but loading symbol over models never finishes loading #9069

Closed gadsdencode closed 1 year ago

gadsdencode commented 1 year ago

Is there an existing issue for this?

What happened?

I loaded SD as usual - models show as loaded in the cli - everything shows as loaded/working (except 'should_hijack_inpainting, I've never gotten that one to work) but the loading symbol never goes away over the model selector drop down.

Steps to reproduce the problem

  1. Go to select model
  2. Cannot seleect model, loading symbol stays
  3. ...

What should have happened?

Should be able to select models.

Commit where the problem happens

955df775

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set SAFETENSORS_FAST_GPU=1
set OPTIMIZED_TURBO=true
set COMMANDLINE_ARGS=--opt-split-attention --precision full --no-half --medvram --xformers --api --ckpt-dir=Z:\SD-Master_Files-3.15.23

call webui.bat

List of extensions

image

Console logs

venv "C:\stable-diffusion\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)]
Commit hash: 955df7751eef11bb7697e2d77f6b8a6226b21e13
Installing requirements for Web UI

Installing sd-dynamic-prompts requirements.txt

Launching Web UI with arguments: --opt-split-attention --precision full --no-half --medvram --xformers --api --ckpt-dir=Z:SD-Master_Files-3.15.23
Civitai Helper: Get Custom Model Folder
Civitai Helper: Load setting from: C:\stable-diffusion\stable-diffusion-webui\extensions\Stable-Diffusion-Webui-Civitai-Helper\setting.json
Civitai Helper: No setting file, use default
Error loading script: patch_fixer.py
Traceback (most recent call last):
  File "C:\stable-diffusion\stable-diffusion-webui\modules\scripts.py", line 256, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "C:\stable-diffusion\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\stable-diffusion\stable-diffusion-webui\extensions\sd_auto_fix\scripts\patch_fixer.py", line 16, in <module>
    from modules.sd_hijack_inpainting import do_inpainting_hijack, should_hijack_inpainting
ImportError: cannot import name 'should_hijack_inpainting' from 'modules.sd_hijack_inpainting' (C:\stable-diffusion\stable-diffusion-webui\modules\sd_hijack_inpainting.py)

Loading weights [b29e2ed9a8] from Z:SD-Master_Files-3.15.23\512-inpainting-ema.safetensors
Creating model from config: C:\stable-diffusion\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\configs\stable-diffusion\v2-inpainting-inference.yaml
LatentInpaintDiffusion: Running in eps-prediction mode
DiffusionWrapper has 865.93 M params.
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(14): 21charturnerv2, anthro, Art by Smoose-22, aslanscifi-v2, dblx, dgtlv2, karsh, mj-gs, nartfixer, nfixer, nrealfixer, protogemb, ScaryMonstersV2, TungstenDispo
Textual inversion embeddings skipped(25): 80s-anime-ai, 8sconception, a-tale-of-two-empires, advntr, andava, animalve3-1500seq, doose-s-realistic-art-style, dop, emb-rrf-low, emmsto, eonn, Exodus-Styling, ExodusBladerunner, midjourney-style, Style-Autumn, Style-BladeRunner2049-8v, Style-Glorious, Style-Info, style-nebmagic, style-paintmagic, Style-Winter, wheatland-arknight, xi, xidiversity, xyz
Model loaded in 3.7s (load weights from disk: 0.3s, create model: 0.3s, apply weights to model: 1.1s, move model to device: 0.6s, load textual inversion embeddings: 1.4s).
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 17.7s (import torch: 1.9s, import gradio: 1.3s, import ldm: 0.3s, other imports: 1.0s, setup codeformer: 0.2s, load scripts: 2.4s, load SD checkpoint: 4.3s, create ui: 5.9s, gradio launch: 0.2s, scripts app_started_callback: 0.2s).

Additional information

No response

Sostay commented 1 year ago

How did you solve this problem?

gadsdencode commented 1 year ago

Rolled back to previous commit

santarl commented 1 year ago

Workaround that doesn't require rolling back:

try --no-gradio-queue option

https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/955df7751eef11bb7697e2d77f6b8a6226b21e13#commitcomment-106389852