Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow startup of auto UI #738

Open
2 tasks done
cagemaan opened this issue Sep 25, 2024 · 1 comment
Open
2 tasks done

Slow startup of auto UI #738

cagemaan opened this issue Sep 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@cagemaan
Copy link

Has this issue been opened before?

  • It is not in the FAQ, I checked.
  • It is not in the issues, I searched.

Describe the bug

Takes very long time to start using auto
Container gets stuck on "Loaded ViT-bigG-14 model config." for over 5 minutes before continuing startup.

Which UI

auto

  • CLI_ARGS=--allow-code --xformers --enable-insecure-extension-access --api

Hardware / Software

  • OS: Windows 11
  • OS version: 23H2 OS Build 22631.4169
  • WSL version (if applicable): 2
  • Docker Version: 27.2.0
  • Docker compose version: v2.29.2-desktop.2
  • Repo version: cloned from master yesterday
  • RAM: 32 GB
  • GPU/VRAM: RTX 4060 TI 16GB VRAM

Steps to Reproduce

Don't know if it is possible to reproduce.
See log below

Additional context
Log:
2024-09-25 20:17:41 auto-1 | /stable-diffusion-webui
2024-09-25 20:17:41 auto-1 | total 804K
2024-09-25 20:17:41 auto-1 | drwxr-xr-x 1 root root 4.0K Sep 25 14:44 .
2024-09-25 20:17:41 auto-1 | drwxr-xr-x 1 root root 4.0K Sep 25 08:43 ..
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 48 Sep 25 08:25 .eslintignore
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 3.4K Sep 25 08:25 .eslintrc.js
2024-09-25 20:17:41 auto-1 | drwxr-xr-x 8 root root 4.0K Sep 25 08:25 .git
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 55 Sep 25 08:25 .git-blame-ignore-revs
2024-09-25 20:17:41 auto-1 | drwxr-xr-x 4 root root 4.0K Sep 25 08:25 .github
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 573 Sep 25 08:25 .gitignore
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 119 Sep 25 08:25 .pylintrc
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 95K Sep 25 08:25 CHANGELOG.md
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 243 Sep 25 08:25 CITATION.cff
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 657 Sep 25 08:25 CODEOWNERS
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 35K Sep 25 08:25 LICENSE.txt
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 13K Sep 25 08:25 README.md
2024-09-25 20:17:41 auto-1 | drwxr-xr-x 2 root root 4.0K Sep 25 08:44 pycache
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 146 Sep 25 08:25 _typos.toml
2024-09-25 20:17:41 auto-1 | drwxr-xr-x 6 root root 4.0K Sep 25 10:05 cache
2024-09-25 20:17:41 auto-1 | lrwxrwxrwx 1 root root 29 Sep 25 14:44 config.json -> /data/config/auto/config.json
2024-09-25 20:17:41 auto-1 | lrwxrwxrwx 1 root root 31 Sep 25 14:44 config_states -> /data/config/auto/config_states
2024-09-25 20:17:41 auto-1 | drwxr-xr-x 2 root root 4.0K Sep 25 08:25 configs
2024-09-25 20:17:41 auto-1 | lrwxrwxrwx 1 root root 16 Sep 25 14:44 embeddings -> /data/embeddings
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 167 Sep 25 08:25 environment-wsl2.yaml
2024-09-25 20:17:41 auto-1 | lrwxrwxrwx 1 root root 28 Sep 25 14:44 extensions -> /data/config/auto/extensions
2024-09-25 20:17:41 auto-1 | drwxr-xr-x 1 root root 4.0K Sep 25 08:25 extensions-builtin
2024-09-25 20:17:41 auto-1 | drwxr-xr-x 2 root root 4.0K Sep 25 08:25 html
2024-09-25 20:17:41 auto-1 | drwxr-xr-x 2 root root 4.0K Sep 25 08:28 interrogate
2024-09-25 20:17:41 auto-1 | drwxr-xr-x 2 root root 4.0K Sep 25 08:25 javascript
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 1.3K Sep 25 08:25 launch.py
2024-09-25 20:17:41 auto-1 | drwxr-xr-x 2 root root 4.0K Sep 25 08:25 localizations
2024-09-25 20:17:41 auto-1 | lrwxrwxrwx 1 root root 12 Sep 25 14:44 models -> /data/models
2024-09-25 20:17:41 auto-1 | drwxr-xr-x 1 root root 4.0K Sep 25 08:43 modules
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 185 Sep 25 08:25 package.json
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 583 Sep 25 16:01 params.txt
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 841 Sep 25 08:25 pyproject.toml
2024-09-25 20:17:41 auto-1 | drwxr-xr-x 1 root root 4.0K Sep 25 08:43 repositories
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 49 Sep 25 08:25 requirements-test.txt
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 389 Sep 25 08:25 requirements.txt
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 42 Sep 25 08:25 requirements_npu.txt
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 693 Sep 25 08:25 requirements_versions.txt
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 411K Sep 25 08:25 screenshot.png
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 6.5K Sep 25 08:25 script.js
2024-09-25 20:17:41 auto-1 | drwxr-xr-x 1 root root 4.0K Sep 25 08:44 scripts
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 43K Sep 25 08:25 style.css
2024-09-25 20:17:41 auto-1 | lrwxrwxrwx 1 root root 28 Sep 25 14:44 styles.csv -> /data/config/auto/styles.csv
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 0 Sep 25 11:08 styles.csv.bak
2024-09-25 20:17:41 auto-1 | drwxr-xr-x 4 root root 4.0K Sep 25 08:25 test
2024-09-25 20:17:41 auto-1 | drwxr-xr-x 2 root root 4.0K Sep 25 08:25 textual_inversion_templates
2024-09-25 20:17:41 auto-1 | drwxr-xr-x 2 root root 4.0K Sep 25 13:38 tmp
2024-09-25 20:17:41 auto-1 | lrwxrwxrwx 1 root root 32 Sep 25 14:44 ui-config.json -> /data/config/auto/ui-config.json
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 751 Sep 25 08:25 webui-macos-env.sh
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 84 Sep 25 08:25 webui-user.bat
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 1.4K Sep 25 08:25 webui-user.sh
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 2.5K Sep 25 08:25 webui.bat
2024-09-25 20:17:41 auto-1 | -rw-r--r-- 1 root root 5.3K Sep 25 08:25 webui.py
2024-09-25 20:17:41 auto-1 | -rwxr-xr-x 1 root root 11K Sep 25 08:25 webui.sh
2024-09-25 20:17:41 auto-1 | Mounted .cache
2024-09-25 20:17:41 auto-1 | Mounted config_states
2024-09-25 20:17:41 auto-1 | Mounted .cache
2024-09-25 20:17:41 auto-1 | Mounted embeddings
2024-09-25 20:17:41 auto-1 | Mounted config.json
2024-09-25 20:17:41 auto-1 | Mounted models
2024-09-25 20:17:41 auto-1 | Mounted styles.csv
2024-09-25 20:17:42 auto-1 | Mounted ui-config.json
2024-09-25 20:17:42 auto-1 | Mounted extensions
2024-09-25 20:17:42 auto-1 | Installing extension dependencies (if any)
2024-09-25 20:17:43 auto-1 |
2024-09-25 20:17:43 auto-1 | #######################################################################################################
2024-09-25 20:17:43 auto-1 | Initializing Civitai Link
2024-09-25 20:17:43 auto-1 | If submitting an issue on github, please provide the below text for debugging purposes:
2024-09-25 20:17:43 auto-1 |
2024-09-25 20:17:43 auto-1 | Python revision: 3.10.14 (main, Mar 21 2024, 16:24:04) [GCC 11.2.0]
2024-09-25 20:17:43 auto-1 | Civitai Link revision: 115cd9c35b0774c90cb9c397ad60ef6a7dac60de
2024-09-25 20:17:43 auto-1 | SD-WebUI revision:
2024-09-25 20:17:43 auto-1 |
2024-09-25 20:17:43 auto-1 | Checking Civitai Link requirements...
2024-09-25 20:17:45 auto-1 |
2024-09-25 20:17:45 auto-1 | #######################################################################################################
2024-09-25 20:17:56 auto-1 | CivitAI Browser+: Aria2 RPC started
2024-09-25 20:17:57 auto-1 | Civitai: API loaded
2024-09-25 20:17:58 auto-1 | Loading weights [2f049d7fc6] from /stable-diffusion-webui/models/Stable-diffusion/ponyRealism_v21Inpaint11VAE.safetensors
2024-09-25 20:18:11 auto-1 | Creating model from config: /stable-diffusion-webui/repositories/generative-models/configs/inference/sd_xl_base.yaml
2024-09-25 20:18:11 auto-1 | /opt/conda/lib/python3.10/site-packages/huggingface_hub/file_download.py:1142: FutureWarning: resume_download is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use force_download=True.
2024-09-25 20:18:11 auto-1 | warnings.warn(
2024-09-25 20:18:12 auto-1 | Loaded ViT-bigG-14 model config.
2024-09-25 20:23:28 auto-1 | Applying attention optimization: xformers... done.
2024-09-25 20:23:29 auto-1 | Model loaded in 330.8s (load weights from disk: 13.3s, create model: 0.7s, apply weights to model: 315.7s, apply half(): 0.1s, move model to device: 0.3s, load textual inversion embeddings: 0.1s, calculate empty prompt: 0.5s).
2024-09-25 20:23:29 auto-1 | Running on local URL: http://0.0.0.0:7860
2024-09-25 20:23:29 auto-1 |

@cagemaan cagemaan added the bug Something isn't working label Sep 25, 2024
@DevilaN
Copy link
Contributor

DevilaN commented Nov 6, 2024

Model loaded in 330.8s (load weights from disk: 13.3s, create model: 0.7s, apply weights to model: 315.7s, apply half(): 0.1s, move model to device: 0.3s, load textual inversion embeddings: 0.1s, calculate empty prompt: 0.5s).

You are using SSD drive for model storage? Are you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants