Files
homelab/active/systemd_stablediffusion/stablediffusion.md
ducoterra ef9104c796
All checks were successful
Reese's Arch Toolbox / build-and-push-arch-toolbox (push) Successful in 14s
moving everything to active or retired vs incubating and graduated
2025-04-19 18:52:33 -04:00

1.5 KiB

Stable Diffusion

Web UI

https://github.com/lllyasviel/stable-diffusion-webui-forge

sudo pacman -S python-pytorch-rocm

git clone https://aur.archlinux.org/python-torchvision-rocm.git
cd python-torchvision-rocm
makepkg -si

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
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

Models

https://stable-diffusion-art.com/models/#How_to_install_and_use_a_model

SDXC

  • Use 1024x1024
  • First generation is really really slow, subsequent generations are fast

https://stable-diffusion-art.com/sdxl-model/#Download_and_install_SDXL_10_models

Flux AI

  • You must use Stable Diffusion WebUI Forge
  • In the UI, click "flux"
  • First generation is really really really really slow

https://stable-diffusion-art.com/flux-forge/

Nginx

htpasswd -c /etc/nginx/.htpasswd yourusername

sudo useradd -m -s /bin/bash nginx

sudo certbot --nginx -d reesimulate.reeseapps.com