################################################################ Install script for stable-diffusion + Web UI Tested on Debian 11 (Bullseye) ################################################################
################################################################ Running on leazhi user ################################################################
################################################################ Repo already cloned, using it as install directory ################################################################
################################################################ Create and activate python venv ################################################################
################################################################ Launching launch.py... ################################################################ Cannot locate TCMalloc (improves CPU memory usage) Python 3.10.6 (main, Oct 13 2023, 21:08:02) [GCC 13.2.0] Version: v1.6.0 Commit hash: 5ef669de080814067961f28357256e8fe27544f4 Launching Web UI with arguments: --skip-torch-cuda-test --lowvram --xformers --no-half Loading weights [6ce0161689] from /data/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors Running on local URL: http://127.0.0.1:7860
To create a public link, set `share=True` in `launch()`. Startup time: 5.3s (import torch: 2.4s, import gradio: 0.5s, setup paths: 0.9s, initialize shared: 0.1s, other imports: 0.4s, load scripts: 0.3s, create ui: 0.4s, gradio launch: 0.1s). Creating model from config: /data/stable-diffusion-webui/configs/v1-inference.yaml Applying attention optimization: xformers... done. Model loaded in 2.8s (load weights from disk: 0.7s, create model: 0.3s, apply weights to model: 1.4s, calculate empty prompt: 0.3s).
Python 3.10.13 (main, Oct 10 2023, 18:56:10) [GCC 13.2.0] Version: v1.6.0 Commit hash: 5ef669de080814067961f28357256e8fe27544f4 Installing torch and torchvision Defaulting to user installation because normal site-packages is not writeable Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple, https://download.pytorch.org/whl/cu118 Collecting torch==2.0.1 Downloading https://download.pytorch.org/whl/cu118/torch-2.0.1%2Bcu118-cp310-cp310-linux_x86_64.whl (2267.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/2.3 GB 421.2 kB/s eta 1:29:40 ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them. torch==2.0.1 from https://download.pytorch.org/whl/cu118/torch-2.0.1%2Bcu118-cp310-cp310-linux_x86_64.whl#sha256=a7a49d459bf4862f64f7bc1a68beccf8881c2fa9f3e0569608e16ba6f85ebf7b: Expected sha256 a7a49d459bf4862f64f7bc1a68beccf8881c2fa9f3e0569608e16ba6f85ebf7b Got 1d2b716c98d92c3b7fb015ec31ee4cc6855a2f9bd3bdff53d064b21ec01f9a37
[notice] A new release of pip is available: 23.0.1 -> 23.2.1 [notice] To update, run: pip3.10 install --upgrade pip Traceback (most recent call last): File "/home/leazhi/stable-diffusion-webui/launch.py", line 48, in <module> main() File "/home/leazhi/stable-diffusion-webui/launch.py", line 39, in main prepare_environment() File "/home/leazhi/stable-diffusion-webui/modules/launch_utils.py", line 352, in prepare_environment run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True) File "/home/leazhi/stable-diffusion-webui/modules/launch_utils.py", line 115, in run raise RuntimeError("\n".join(error_bits)) RuntimeError: Couldn't install torch. Command: "/usr/local/python3.10.3/bin/python" -m pip install torch==2.0.1 torchvision==0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118 Error code: 1
if [ ! -d "${Stable_Diffusion_Dir}" ]; then echo"Stable Diffusion Install Dir does not exist" exit 0 else cd${Stable_Diffusion_Dir} ./webui.sh --skip-torch-cuda-test --lowvram --xformers --no-half fi