# Stable Diffusion ## 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 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 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 ./webui.sh ``` ## Models ### SDXC - Use 1024x1024 - First generation is really really slow, subsequent generations are fast ### Flux AI - You must use Stable Diffusion WebUI Forge - In the UI, click "flux" - First generation is really really really really slow