anapnoe / stable-diffusion-webui-ux

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

[Bug]: Rembg extension not showing in extra tab #198

Closed WaveF closed 8 months ago

WaveF commented 8 months ago

Is there an existing issue for this?

What happened?

Extension stable-diffusion-webui-rembg UI not showing.

Steps to reproduce the problem

  1. Install and enable stable-diffusion-webui-rembg extension
  2. Press extra tab
  3. Settings UI of remove background not showing

What should have happened?

Settings of remove background should show in '.layout-footer' DOM node, but now it's hidden.

Sysinfo

Macbook Pro M1 max 64G

What browsers do you use to access the UI ?

No response

Console logs

(base) ➜ stable-diffusion-webui-ux (master) ✔ ./webui.sh

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

################################################################
Running on wavef user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

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

################################################################
Launching launch.py...
################################################################
fatal: No names found, cannot describe anything.
Python 3.10.9 (main, Mar  1 2023, 12:20:14) [Clang 14.0.6 ]
Version: 1.6.1
Commit hash: 9d387f4de01d6724b2b4fbd781a0987ed8569a80
Launching Web UI with arguments: --skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate
CUDA SETUP: Required library version not found: libsbitsandbytes_cpu.so. Maybe you need to compile it from source?
CUDA SETUP: Defaulting to libbitsandbytes.so...

================================================ERROR=====================================
CUDA SETUP: CUDA detection failed! Possible reasons:
1. CUDA driver not installed
2. CUDA not installed
3. You have multiple conflicting CUDA libraries
4. Required library not pre-compiled for this bitsandbytes release!
CUDA SETUP: If you compiled from source, try again with `make CUDA_VERSION=DETECTED_CUDA_VERSION` for example, `make CUDA_VERSION=113`.
================================================================================

CUDA SETUP: Problem: The main issue seems to be that the main CUDA library was not detected.
CUDA SETUP: Solution 1): Your paths are probably not up-to-date. You can update them via: sudo ldconfig.
CUDA SETUP: Solution 2): If you do not have sudo rights, you can do the following:
CUDA SETUP: Solution 2a): Find the cuda library via: find / -name libcuda.so 2>/dev/null
CUDA SETUP: Solution 2b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_2a
CUDA SETUP: Solution 2c): For a permanent solution add the export from 2b into your .bashrc file, located at ~/.bashrc
CUDA SETUP: Required library version not found: libsbitsandbytes_cpu.so. Maybe you need to compile it from source?
CUDA SETUP: Defaulting to libbitsandbytes.so...

================================================ERROR=====================================
CUDA SETUP: CUDA detection failed! Possible reasons:
1. CUDA driver not installed
2. CUDA not installed
3. You have multiple conflicting CUDA libraries
4. Required library not pre-compiled for this bitsandbytes release!
CUDA SETUP: If you compiled from source, try again with `make CUDA_VERSION=DETECTED_CUDA_VERSION` for example, `make CUDA_VERSION=113`.
================================================================================

CUDA SETUP: Problem: The main issue seems to be that the main CUDA library was not detected.
CUDA SETUP: Solution 1): Your paths are probably not up-to-date. You can update them via: sudo ldconfig.
CUDA SETUP: Solution 2): If you do not have sudo rights, you can do the following:
CUDA SETUP: Solution 2a): Find the cuda library via: find / -name libcuda.so 2>/dev/null
CUDA SETUP: Solution 2b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_2a
CUDA SETUP: Solution 2c): For a permanent solution add the export from 2b into your .bashrc file, located at ~/.bashrc
/Users/wavef/stable-diffusion-webui-ux/venv/lib/python3.10/site-packages/bitsandbytes/cextension.py:127: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers and GPU quantization are unavailable.
  warn("The installed version of bitsandbytes was compiled without GPU support. "
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled
OMP: Info #276: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
Checkpoint rpg_V4.safetensors [e04b020012] not found; loading fallback v1-5-pruned-emaonly.safetensors [6ce0161689]
Loading weights [6ce0161689] from /Users/wavef/stable-diffusion-webui-ux/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors
Running on local URL:  http://127.0.0.1:7860
Creating model from config: /Users/wavef/stable-diffusion-webui-ux/configs/v1-inference.yaml

To create a public link, set `share=True` in `launch()`.
Startup time: 8.5s (prepare environment: 0.2s, import torch: 2.2s, import gradio: 0.7s, setup paths: 0.6s, initialize shared: 0.3s, other imports: 0.4s, load scripts: 1.1s, create ui: 0.3s, gradio launch: 2.6s).
Applying attention optimization: sub-quadratic... done.
Model loaded in 8.1s (load weights from disk: 0.6s, create model: 0.5s, apply weights to model: 3.0s, apply half(): 2.3s, move model to device: 0.1s, calculate empty prompt: 1.6s).

Additional information

No response

anapnoe commented 8 months ago

unfortunately this extension does not provide any valid elem_id and can not be easily integrated into the webui-ux if you want absolutely to use this extension you can edit the file stable-diffusion-webui-ux\extensions-builtin\anapnoe-sd-uiux\html\templates\template-extras-params.html and remove class hidden located at the bottom of the page line 110 you can create a PR to the extension author to add an elem_id to the parent container-wrapper of the extension so it can be easily integrated into the webui-ux

you should know also that every time you update the webui-ux you will have to redo the edit