AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: Broken WebUI, models and Settings are uneditable, sometimes frozen the Generate Button on Google Colab #8987

Open Rendai09 opened 1 year ago

Rendai09 commented 1 year ago

Is there an existing issue for this?

What happened?

This happens when we used new Gradio 3.23 version, cause the setting and models tab loading overtime. Is there a way to fix this bug or down the gradio version on Google Colab?

image

Steps to reproduce the problem

  1. Basic Setup For Stable Diffusion and Model Download on My Google Colab
  2. Start Stable Diffusion and use Gradio Live Server
  3. Errors happens

What should have happened?

The WebUi has to be usable not loading overtime

Commit where the problem happens

I don't know, there is no error in script loading

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

"--share --gradio-debug --no-half-vae"

List of extensions

https://github.com/AlUlkesh/stable-diffusion-webui-images-browser.git https://github.com/DominikDoom/a1111-sd-webui-tagcomplete https://github.com/Malisius/booru2prompt https://github.com/animerl/novelai-2-local-prompt https://github.com/kohya-ss/sd-webui-additional-networks

Console logs

/content/stable-diffusion-webui
Already up to date.
Drive already mounted at /content/drive; to attempt to forcibly remount, call drive.mount("/content/drive", force_remount=True).
Python 3.9.16 (main, Dec  7 2022, 01:11:51) 
[GCC 9.4.0]
Commit hash: 4c1ad743e3baf1246db0711aa0107debf036a12b
Installing requirements for Web UI
Launching Web UI with arguments: --share --gradio-debug --no-half-vae --vae-dir /content/stable-diffusion-webui/models/Stable-diffusion/anime.vae.pt
2023-03-26 14:27:09.525930: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 AVX512F FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-03-26 14:27:11.896706: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/lib64-nvidia
2023-03-26 14:27:11.896868: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/lib64-nvidia
2023-03-26 14:27:11.896891: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
No module 'xformers'. Proceeding without it.
Loading weights [89d59c3dde] from /content/stable-diffusion-webui/models/Stable-diffusion/nai.ckpt
Creating model from config: /content/stable-diffusion-webui/models/Stable-diffusion/nai.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading VAE weights specified in settings: /content/stable-diffusion-webui/models/Stable-diffusion/anime.vae.pt
Applying cross attention optimization (Doggettx).
Textual inversion embeddings loaded(0): 
Model loaded in 29.2s (load weights from disk: 15.7s, create model: 0.8s, apply weights to model: 1.9s, apply half(): 1.0s, load VAE: 9.0s, move model to device: 0.7s).
Running on local URL:  http://127.0.0.1:7860
Running on public URL: https://57f685c318ba566165.gradio.live

Additional information

I have reported this bug before, but that was different bug and didn't have anything with this bug. So I reported again with unknown reason

HWiese1980 commented 1 year ago

Same on my local installation! Something went terribly wrong in the latest updates. I hope they're going to fix these issues soon.

space-nuko commented 1 year ago

https://github.com/AlUlkesh/stable-diffusion-webui-images-browser.git

This extension may be the culprit, see https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/8895#issuecomment-1483781867, either disable or update it and see if it helps

And look at https://github.com/AlUlkesh/stable-diffusion-webui-images-browser/issues/100 for more updates

HWiese1980 commented 1 year ago

It helps a little, but there's still a lot broken. UI simply stops doing anything in way too many situations. There are also a lot of javascript errors going on in the developer console.

aleimu commented 1 year ago

+1

acgrid commented 1 year ago

Same here if updated to newer gradio. There may be some incompatible problems for extensions related to gradio. Disabling extensions (especially additional-networks, batchlinks-webui, civitai helper, etc...) will work. I checked the websocket messaging join got stuck after one round of request and response.

dli77 commented 1 year ago

same here, when I open the local url it shows a bunch of errors and a message saying "Something went wrong Expecting value: line 1 column 1 (char 0)". Any clue how to fix this?

Ieunn commented 1 year ago

same here, when I open the local url it shows a bunch of errors and a message saying "Something went wrong Expecting value: line 1 column 1 (char 0)". Any clue how to fix this?

I got exactly the same error prompt as you met, except I didn't have any error messages in my console but the same log as reporter.