anapnoe / stable-diffusion-webui-ux

Stable Diffusion web UI UX
GNU Affero General Public License v3.0
978 stars 59 forks source link

[Bug]: Cant open image output directory #74

Closed FloriMaster closed 1 year ago

FloriMaster commented 1 year ago

Is there an existing issue for this?

What happened?

QObject::moveToThread: Current thread (0x5585a86c9330) is not the object's thread (0x5585a86dfa30).
Cannot move to target thread (0x5585a86c9330)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/ass/stable-diffusion-webui-ux/venv/lib/python3.10/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx.

When i press the "Open output directory button"

Problem persist even when i reinstalled the web ui

Steps to reproduce the problem

  1. Followed the tutorial and install the web ui
  2. Open the link and started the web ui
  3. Press "Open image output directory"
  4. Error shown above

What should have happened?

It should open the image output directory

Commit where the problem happens

https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/3a6306a4afd9a2a0094483efcb5065d18abb0714

What platforms do you use to access the UI ?

Linux

What browsers do you use to access the UI ?

Mozilla Firefox

Command Line Arguments

No

List of extensions

No

Console logs

bash <(wget -qO- https://raw.githubusercontent.com/anapnoe/stable-diffusion-webui-ux/master/webui.sh)

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on ass user
################################################################

################################################################
Clone stable-diffusion-webui
################################################################
Cloning into 'stable-diffusion-webui-ux'...
remote: Enumerating objects: 18889, done.
remote: Counting objects: 100% (31/31), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 18889 (delta 14), reused 26 (delta 14), pack-reused 18858
Receiving objects: 100% (18889/18889), 31.22 MiB | 6.50 MiB/s, done.
Resolving deltas: 100% (13177/13177), done.

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.10.9 (main, Jan 11 2023, 15:21:40) [GCC 11.2.0]
Commit hash: 3a6306a4afd9a2a0094483efcb5065d18abb0714
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu117
Collecting torch==1.13.1+cu117
  Using cached https://download.pytorch.org/whl/cu117/torch-1.13.1%2Bcu117-cp310-cp310-linux_x86_64.whl (1801.8 MB)
Collecting torchvision==0.14.1+cu117
  Using cached https://download.pytorch.org/whl/cu117/torchvision-0.14.1%2Bcu117-cp310-cp310-linux_x86_64.whl (24.3 MB)
Collecting typing-extensions
  Using cached typing_extensions-4.5.0-py3-none-any.whl (27 kB)
Collecting requests
  Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Collecting numpy
  Using cached numpy-1.24.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)
Collecting pillow!=8.3.*,>=5.3.0
  Using cached Pillow-9.5.0-cp310-cp310-manylinux_2_28_x86_64.whl (3.4 MB)
Collecting certifi>=2017.4.17
  Using cached https://download.pytorch.org/whl/certifi-2022.12.7-py3-none-any.whl (155 kB)
Collecting charset-normalizer<4,>=2
  Using cached charset_normalizer-3.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (199 kB)
Collecting urllib3<1.27,>=1.21.1
  Using cached urllib3-1.26.15-py2.py3-none-any.whl (140 kB)
Collecting idna<4,>=2.5
  Using cached https://download.pytorch.org/whl/idna-3.4-py3-none-any.whl (61 kB)
Installing collected packages: urllib3, typing-extensions, pillow, numpy, idna, charset-normalizer, certifi, torch, requests, torchvision
Successfully installed certifi-2022.12.7 charset-normalizer-3.1.0 idna-3.4 numpy-1.24.3 pillow-9.5.0 requests-2.28.2 torch-1.13.1+cu117 torchvision-0.14.1+cu117 typing-extensions-4.5.0 urllib3-1.26.15

[notice] A new release of pip available: 22.3.1 -> 23.1.1
[notice] To update, run: pip install --upgrade pip
Installing gfpgan
Installing clip
Installing open_clip
Cloning Stable Diffusion into /home/ass/stable-diffusion-webui-ux/repositories/stable-diffusion-stability-ai...
Cloning Taming Transformers into /home/ass/stable-diffusion-webui-ux/repositories/taming-transformers...
Cloning K-diffusion into /home/ass/stable-diffusion-webui-ux/repositories/k-diffusion...
Cloning CodeFormer into /home/ass/stable-diffusion-webui-ux/repositories/CodeFormer...
Cloning BLIP into /home/ass/stable-diffusion-webui-ux/repositories/BLIP...
Installing requirements for CodeFormer
Installing requirements for Web UI
Launching Web UI with arguments: 
No module 'xformers'. Proceeding without it.
Downloading: "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors" to /home/ass/stable-diffusion-webui-ux/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors

100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.97G/3.97G [02:12<00:00, 32.3MB/s]
Calculating sha256 for /home/ass/stable-diffusion-webui-ux/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors: 6ce0161689b3853acaa03779ec93eafe75a02f4ced659bee03f50797806fa2fa
Loading weights [6ce0161689] from /home/ass/stable-diffusion-webui-ux/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors
Creating model from config: /home/ass/stable-diffusion-webui-ux/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying cross attention optimization (Doggettx).
Textual inversion embeddings loaded(0): 
Model loaded in 36.5s (calculate hash: 16.0s, create model: 0.7s, apply weights to model: 13.6s, apply half(): 3.2s, load VAE: 2.0s, move model to device: 0.7s).
Running on local URL:  http://127.0.0.1:7861

To create a public link, set `share=True` in `launch()`.
Startup time: 174.0s (import gradio: 1.8s, import ldm: 0.5s, other imports: 1.1s, list SD models: 132.6s, load scripts: 0.4s, load SD checkpoint: 36.6s, create ui: 0.6s, gradio launch: 0.4s).
Folder "outputs/txt2img-images" does not exist. After you create an image, the folder will be created.
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:06<00:00,  2.98it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:03<00:00,  5.50it/s]
QObject::moveToThread: Current thread (0x555bbbe5e330) is not the object's thread (0x555bbbe74a30).████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:03<00:00,  5.79it/s]
Cannot move to target thread (0x555bbbe5e330)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/ass/stable-diffusion-webui-ux/venv/lib/python3.10/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx.

QObject::moveToThread: Current thread (0x5585a86c9330) is not the object's thread (0x5585a86dfa30).
Cannot move to target thread (0x5585a86c9330)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/ass/stable-diffusion-webui-ux/venv/lib/python3.10/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx.

Aborted (core dumped)
Aborted (core dumped)
^CInterrupted with signal 2 in <frame at 0xadb1cb0, file '/home/ass/stable-diffusion-webui-ux/webui.py', line 206, code wait_on_server>

Additional information

os: linux
python: 3.10.9
torch: 1.13.1+cu117
xformers: N/A
gradio: 3.16.2
commit: 3a6306a4
checkpoint: 6ce0161689
anapnoe commented 1 year ago

can you try the latest commit from the devbranch and report back if the issue is still present? https://github.com/anapnoe/stable-diffusion-webui-ux/commit/b23b738e328055201aa826e34f5470dba2ee108f

FloriMaster commented 1 year ago

can you try the latest commit from the devbranch and report back if the issue is still present? b23b738

didnt work, though it could just be a problem with kde rather then the webui