AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: Not working with Google Colab #14854

Open roxas1212 opened 8 months ago

roxas1212 commented 8 months ago

Checklist

What happened?

Use Google Colab and run into problems

Steps to reproduce the problem

Start the webui-user.bat

What should have happened?

The Web-UI should have launched without any errors.

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

e5be9d1a5cee6e189ae7b86e9b968c1bf74ea960

Console logs

Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
Commit hash: e5be9d1a5cee6e189ae7b86e9b968c1bf74ea960
Installing gfpgan
Installing clip
Installing open_clip
Cloning Stable Diffusion into /content/test1/repositories/stable-diffusion-stability-ai...
Cloning Taming Transformers into /content/test1/repositories/taming-transformers...
Cloning K-diffusion into /content/test1/repositories/k-diffusion...
Cloning CodeFormer into /content/test1/repositories/CodeFormer...
Cloning BLIP into /content/test1/repositories/BLIP...
Installing requirements for CodeFormer
Installing requirements
Launching Web UI with arguments: --theme dark --share --gradio-debug --disable-safe-unpickle --no-half-vae --reinstall-xformers --enable-insecure-extension-access --opt-channelslast
2024-02-07 06:24:33.480742: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2024-02-07 06:24:33.480792: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2024-02-07 06:24:33.482152: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2024-02-07 06:24:33.489637: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2024-02-07 06:24:34.999304: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
Traceback (most recent call last):
  File "/content/test1/launch.py", line 353, in <module>
    start()
  File "/content/test1/launch.py", line 344, in start
    import webui
  File "/content/test1/webui.py", line 29, in <module>
    import gradio
  File "/usr/local/lib/python3.10/dist-packages/gradio/__init__.py", line 3, in <module>
    import gradio.components as components
  File "/usr/local/lib/python3.10/dist-packages/gradio/components.py", line 37, in <module>
    from gradio_client.documentation import document, set_documentation_group
ImportError: cannot import name 'set_documentation_group' from 'gradio_client.documentation' (/usr/local/lib/python3.10/dist-packages/gradio_client/documentation.py)

Additional information

I have tried "pip install httpx==0.24.1", but it doesn't work. I used "!pip install gradio==3.47.1" and the link was successfully generated, but after entering the link, an error occurred in the interface and it could not work.

DieW4ifu18 commented 8 months ago

Try with "!pip install gradio_client==0.8.1"

roxas1212 commented 8 months ago

Try with "!pip install gradio_client==0.8.1"

Thank you but it doesn't work for me. It also generated links successfully, but there were a bunch of ERRORs on the page and it couldn't work.

roxas1212 commented 8 months ago

It can generate links normally

Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
Commit hash: e5be9d1a5cee6e189ae7b86e9b968c1bf74ea960
Installing requirements
Launching Web UI with arguments: --theme dark --share --gradio-debug --disable-safe-unpickle --no-half-vae --reinstall-xformers --enable-insecure-extension-access --opt- channelslast
2024-02-10 09:30:47.844581: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2024-02-10 09:30:47.844635: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2024-02-10 09:30:47.846096: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2024-02-10 09:30:47.854012: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2024-02-10 09:30:49.128411: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
No module 'xformers'. Proceeding without it.
================================================== ============================
You are running torch 1.13.1+cu117.
The program is tested to work with torch 2.0.0.
To reinstall the desired version, run with commandline flag --reinstall-torch.
Beware that this will cause a lot of large files to be downloaded, as well as
there are reports of issues with training tab on the latest version.

Use --skip-version-check commandline argument to disable this check.
================================================== ============================
Checkpoint darkSushiMixMix_darkerPruned.safetensors [fb44463063] not found; loading fallback v1-5-pruned-emaonly.safetensors [6ce0161689]
Loading weights [6ce0161689] from /content/test1/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors
Creating model from config: /content/test1/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Couldn't find VAE named vae-ft-mse-840000-ema-pruned.ckpt; using None instead
Applying cross attention optimization (Doggettx).
Textual inversion embeddings loaded(2): badhandv4, EasyNegative
Model loaded in 3.8s (create model: 0.6s, apply weights to model: 0.7s, apply channels_last: 0.7s, apply half(): 0.4s, load VAE: 0.6s, move model to device: 0.6s).
Running on local URL: http://127.0.0.1:7860
Running on public URL: https://b8399fba8ab3ba2f61.gradio.live

But when I enter the link, it says ERROR and doesn't work. error