From c40de6ca03a7b5a4315d3ea1eb64dc896f5102ad Mon Sep 17 00:00:00 2001 From: ducoterra Date: Thu, 12 Dec 2024 15:08:53 -0500 Subject: [PATCH] fix stable diffusion webui docs --- .../{README.md => stablediffusion.md} | 27 +++++++------------ 1 file changed, 10 insertions(+), 17 deletions(-) rename systemd/incubating/stablediffusion/{README.md => stablediffusion.md} (54%) diff --git a/systemd/incubating/stablediffusion/README.md b/systemd/incubating/stablediffusion/stablediffusion.md similarity index 54% rename from systemd/incubating/stablediffusion/README.md rename to systemd/incubating/stablediffusion/stablediffusion.md index 0571250..1c896f0 100644 --- a/systemd/incubating/stablediffusion/README.md +++ b/systemd/incubating/stablediffusion/stablediffusion.md @@ -2,16 +2,7 @@ ## Web UI - - -```bash -python3.10 -m ensurepip --upgrade - -# Check https://download.pytorch.org/whl/nightly/ for versions -# Specifically you want the "rocm" versions for AMD -pip install torch==2.6.0.dev20241103+rocm6.2 --index-url https://download.pytorch.org/whl/nightly -pip install torchvision==0.20.0.dev20241103+rocm6.2 --index-url https://download.pytorch.org/whl/nightly -``` + ```bash sudo pacman -S python-pytorch-rocm @@ -20,17 +11,19 @@ git clone https://aur.archlinux.org/python-torchvision-rocm.git cd python-torchvision-rocm makepkg -si -git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git +git clone https://github.com/lllyasviel/stable-diffusion-webui-forge.git cd stable-diffusion-webui - python3.10 -m venv venv --system-site-packages source venv/bin/activate -# Check https://download.pytorch.org/whl/nightly/ for versions -# Specifically you want the "rocm" versions for AMD -pip install torch==2.6.0.dev20241103+rocm6.2 --index-url https://download.pytorch.org/whl/nightly -pip install torchvision==0.20.0.dev20241103+rocm6.2 --index-url https://download.pytorch.org/whl/nightly pip install -r requirements.txt +# We need to replace the torch/pytorch versions with amd compatible ones. +# Check https://download.pytorch.org/whl/nightly/torch/ for versions +# Specifically you want the "rocm" versions for AMD +# Just copy the "torch-2.6.0.dev20241205+rocm6.2.4" part +pip install torch==2.6.0.dev20241205+rocm6.2.4 --index-url https://download.pytorch.org/whl/nightly +pip install torchvision==0.20.0.dev20241207+rocm6.2.4 --index-url https://download.pytorch.org/whl/nightly + ./webui.sh ``` @@ -61,4 +54,4 @@ htpasswd -c /etc/nginx/.htpasswd yourusername sudo useradd -m -s /bin/bash nginx sudo certbot --nginx -d reesimulate.reeseapps.com -``` \ No newline at end of file +```