AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: Everything hangs after i click "Generate" #15950

Closed Ma4a4a closed 4 months ago

Ma4a4a commented 4 months ago

Checklist

What happened?

I'm using the version for AMD cards, with these args: --theme=dark --skip-torch-cuda-test --opt-sub-quad-attention --lowvram --disable-nan-check When i click "Generate", it wrties "[modules.shared_state] Starting job task" and after that nothing happens. I've saw similar problems, but nothing helped.

and also sorry for my bad english, english is poorly taught in russian schools, so i have to learn everything myself <3

Steps to reproduce the problem

  1. Launch the webui-user.bat
  2. Wait untill everything is loaded
  3. Try to generate something
  4. nothing happens 0_0

What should have happened?

WebUI should work as intented

What browsers do you use to access the UI ?

Microsoft Edge, Other

Sysinfo

sysinfo-2024-06-05-13-17.json

Console logs

venv "C:\Games\AI\stable-diffusion-webui-directml\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.9.3-amd-25-g73a4e8c0
Commit hash: 73a4e8c03c897e1af83909d7218fc6a092189eec
2024-06-05 15:58:38 DEBUG [root] Installing put extensions here.txt
2024-06-05 15:58:41 DEBUG [matplotlib] matplotlib data path: C:\Games\AI\stable-diffusion-webui-directml\venv\lib\site-packages\matplotlib\mpl-data
2024-06-05 15:58:41 DEBUG [matplotlib] CONFIGDIR=C:\Users\Ma4ta\.matplotlib
2024-06-05 15:58:41 DEBUG [matplotlib] interactive is False
2024-06-05 15:58:41 DEBUG [matplotlib] platform is win32
2024-06-05 15:58:41 DEBUG [httpx] load_ssl_context verify=True cert=None trust_env=True http2=False
2024-06-05 15:58:41 DEBUG [httpx] load_verify_locations cafile='C:\\Games\\AI\\stable-diffusion-webui-directml\\venv\\lib\\site-packages\\certifi\\cacert.pem'
2024-06-05 15:58:41 DEBUG [matplotlib] CACHEDIR=C:\Users\Ma4ta\.matplotlib
2024-06-05 15:58:41 DEBUG [matplotlib.font_manager] Using fontManager instance from C:\Users\Ma4ta\.matplotlib\fontlist-v390.json
2024-06-05 15:58:42 DEBUG [httpx] load_ssl_context verify=True cert=None trust_env=True http2=False
2024-06-05 15:58:42 DEBUG [httpx] load_verify_locations cafile='C:\\Games\\AI\\stable-diffusion-webui-directml\\venv\\lib\\site-packages\\certifi\\cacert.pem'
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing BlpImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing BmpImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing BufrStubImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing CurImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing DcxImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing DdsImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing EpsImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing FitsImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing FitsStubImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing FliImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing FpxImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Image: failed to import FpxImagePlugin: No module named 'olefile'
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing FtexImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing GbrImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing GifImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing GribStubImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing Hdf5StubImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing IcnsImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing IcoImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing ImImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing ImtImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing IptcImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing JpegImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing Jpeg2KImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing McIdasImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing MicImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Image: failed to import MicImagePlugin: No module named 'olefile'
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing MpegImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing MpoImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing MspImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing PalmImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing PcdImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing PcxImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing PdfImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing PixarImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing PngImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing PpmImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing PsdImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing QoiImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing SgiImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing SpiderImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing SunImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing TgaImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing TiffImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing WebPImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing WmfImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing XbmImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing XpmImagePlugin
2024-06-05 15:58:42 DEBUG [PIL.Image] Importing XVThumbImagePlugin
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
2024-06-05 15:58:48 DEBUG [git.cmd] Popen(['git', 'version'], cwd=C:\Games\AI\stable-diffusion-webui-directml, universal_newlines=False, shell=None, istream=None)
2024-06-05 15:58:48 DEBUG [git.cmd] Popen(['git', 'version'], cwd=C:\Games\AI\stable-diffusion-webui-directml, universal_newlines=False, shell=None, istream=None)
No module 'xformers'. Proceeding without it.
C:\Games\AI\stable-diffusion-webui-directml\venv\lib\site-packages\pytorch_lightning\utilities\distributed.py:258: LightningDeprecationWarning: `pytorch_lightning.utilities.distributed.rank_zero_only` has been deprecated in v1.8.1 and will be removed in v2.0.0. You can import it from `pytorch_lightning.utilities` instead.
  rank_zero_deprecation(
Launching Web UI with arguments: --theme=dark --skip-torch-cuda-test --opt-sub-quad-attention --lowvram --disable-nan-check --loglevel DEBUG
Warning: caught exception 'Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx', memory monitor disabled
C:\Games\AI\stable-diffusion-webui-directml\venv\lib\site-packages\diffusers\models\transformers\transformer_2d.py:34: FutureWarning: `Transformer2DModelOutput` is deprecated and will be removed in version 1.0.0. Importing `Transformer2DModelOutput` from `diffusers.models.transformer_2d` is deprecated and this will be removed in a future version. Please use `from diffusers.models.modeling_outputs import Transformer2DModelOutput`, instead.
  deprecate("Transformer2DModelOutput", "1.0.0", deprecation_message)
ONNX: version=1.18.0 provider=CUDAExecutionProvider, available=['AzureExecutionProvider', 'CPUExecutionProvider']
Loading weights [859d329490] from C:\Games\AI\stable-diffusion-webui-directml\models\Stable-diffusion\picxReal_10Inpaint.safetensors
2024-06-05 15:58:51 DEBUG [asyncio] Using selector: SelectSelector
Creating model from config: C:\Games\AI\stable-diffusion-webui-directml\configs\v1-inpainting-inference.yaml
2024-06-05 15:58:52 DEBUG [httpx] load_ssl_context verify=None cert=None trust_env=True http2=False
Running on local URL:  http://127.0.0.1:7860
2024-06-05 15:58:52 DEBUG [urllib3.connectionpool] Starting new HTTP connection (1): 127.0.0.1:7860
2024-06-05 15:58:52 DEBUG [urllib3.connectionpool] http://127.0.0.1:7860 "GET /startup-events HTTP/1.1" 200 5
2024-06-05 15:58:52 DEBUG [urllib3.connectionpool] Starting new HTTP connection (1): 127.0.0.1:7860
2024-06-05 15:58:52 DEBUG [urllib3.connectionpool] http://127.0.0.1:7860 "HEAD / HTTP/1.1" 200 0

To create a public link, set `share=True` in `launch()`.
C:\Games\AI\stable-diffusion-webui-directml\venv\lib\site-packages\huggingface_hub\file_download.py:1132: 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`.
  warnings.warn(
Startup time: 14.1s (prepare environment: 20.1s, initialize shared: 1.7s, load scripts: 0.8s, create ui: 0.4s, gradio launch: 0.6s).
2024-06-05 15:58:54 DEBUG [matplotlib.pyplot] Loaded backend tkagg version 8.6.
2024-06-05 15:58:54 DEBUG [matplotlib.pyplot] Loaded backend agg version v2.2.
Applying attention optimization: sub-quadratic... done.
2024-06-05 15:58:54 DEBUG [matplotlib.pyplot] Loaded backend tkagg version 8.6.
2024-06-05 15:58:54 DEBUG [matplotlib.pyplot] Loaded backend agg version v2.2.
2024-06-05 15:58:54 DEBUG [matplotlib.pyplot] Loaded backend tkagg version 8.6.
2024-06-05 15:58:54 DEBUG [matplotlib.pyplot] Loaded backend agg version v2.2.
2024-06-05 15:58:54 DEBUG [matplotlib.pyplot] Loaded backend tkagg version 8.6.
2024-06-05 15:58:54 DEBUG [matplotlib.pyplot] Loaded backend agg version v2.2.
2024-06-05 15:58:54 INFO [httpx] HTTP Request: POST http://127.0.0.1:7860/api/predict "HTTP/1.1 200 OK"
2024-06-05 15:58:54 INFO [httpx] HTTP Request: POST http://127.0.0.1:7860/reset "HTTP/1.1 200 OK"
2024-06-05 15:58:54 INFO [httpx] HTTP Request: POST http://127.0.0.1:7860/api/predict "HTTP/1.1 200 OK"
2024-06-05 15:58:54 INFO [httpx] HTTP Request: POST http://127.0.0.1:7860/api/predict "HTTP/1.1 200 OK"
2024-06-05 15:58:54 INFO [httpx] HTTP Request: POST http://127.0.0.1:7860/reset "HTTP/1.1 200 OK"
2024-06-05 15:58:54 INFO [httpx] HTTP Request: POST http://127.0.0.1:7860/reset "HTTP/1.1 200 OK"
2024-06-05 15:58:55 INFO [httpx] HTTP Request: POST http://127.0.0.1:7860/api/predict "HTTP/1.1 200 OK"
2024-06-05 15:58:55 INFO [httpx] HTTP Request: POST http://127.0.0.1:7860/reset "HTTP/1.1 200 OK"
2024-06-05 15:58:55 DEBUG [git.cmd] Popen(['git', 'remote', 'get-url', '--all', 'origin'], cwd=C:\Games\AI\stable-diffusion-webui-directml, universal_newlines=False, shell=None, istream=None)
2024-06-05 15:58:55 DEBUG [git.cmd] Popen(['git', 'cat-file', '--batch-check'], cwd=C:\Games\AI\stable-diffusion-webui-directml, universal_newlines=False, shell=None, istream=<valid stream>)
2024-06-05 15:58:55 DEBUG [git.cmd] Popen(['git', 'cat-file', '--batch'], cwd=C:\Games\AI\stable-diffusion-webui-directml, universal_newlines=False, shell=None, istream=<valid stream>)
2024-06-05 15:58:55 DEBUG [git.cmd] Popen(['git', 'remote', 'get-url', '--all', 'origin'], cwd=C:\Games\AI\stable-diffusion-webui-directml, universal_newlines=False, shell=None, istream=None)
2024-06-05 15:58:55 DEBUG [git.cmd] Popen(['git', 'cat-file', '--batch-check'], cwd=C:\Games\AI\stable-diffusion-webui-directml, universal_newlines=False, shell=None, istream=<valid stream>)
2024-06-05 15:58:55 DEBUG [git.cmd] Popen(['git', 'cat-file', '--batch'], cwd=C:\Games\AI\stable-diffusion-webui-directml, universal_newlines=False, shell=None, istream=<valid stream>)
2024-06-05 15:58:55 INFO [httpx] HTTP Request: POST http://127.0.0.1:7860/api/predict "HTTP/1.1 200 OK"
2024-06-05 15:58:55 INFO [httpx] HTTP Request: POST http://127.0.0.1:7860/reset "HTTP/1.1 200 OK"
2024-06-05 15:58:55 INFO [httpx] HTTP Request: POST http://127.0.0.1:7860/api/predict "HTTP/1.1 200 OK"
2024-06-05 15:58:55 INFO [httpx] HTTP Request: POST http://127.0.0.1:7860/api/predict "HTTP/1.1 200 OK"
2024-06-05 15:58:55 INFO [httpx] HTTP Request: POST http://127.0.0.1:7860/reset "HTTP/1.1 200 OK"
2024-06-05 15:58:55 INFO [httpx] HTTP Request: POST http://127.0.0.1:7860/reset "HTTP/1.1 200 OK"
Model loaded in 11.4s (load weights from disk: 0.7s, create model: 0.5s, apply weights to model: 1.9s, calculate empty prompt: 8.1s).
2024-06-05 15:59:08 INFO [httpx] HTTP Request: POST http://127.0.0.1:7860/api/predict "HTTP/1.1 200 OK"
2024-06-05 15:59:08 INFO [httpx] HTTP Request: POST http://127.0.0.1:7860/reset "HTTP/1.1 200 OK"
2024-06-05 15:59:08 INFO [modules.shared_state] Starting job task(t6857ausvfpi0kq)

Additional information

No response

Ma4a4a commented 4 months ago

nevermind, i forgot about --use-directml argument