Install
If you are using an older weaker computer, consider using one of online services (like Colab). While it is possible to run generative models on GPUs with less than 4Gb memory or even TPU with some optimizations, it’s usually faster and more practical to rely on cloud services.
If you decide to install locally, make sure the required dependencies are met.
Automatic Installation on Windows
This is instructions for NVidia-based GPUs. For AMD, see here.
- Install Python 3.10.6, checking “Add Python to PATH”
- Install git.
- Download the stable-diffusion-webui repository, for example by running git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git.
- Place model.ckptin themodelsdirectory (see dependencies for where to get it).
- 
*(Optional)* Place GFPGANv1.4.pthin the base directory, alongsidewebui.py(see dependencies for where to get it).
- Run webui-user.batfrom Windows Explorer as normal, non-administrator, user.
Automatic Installation on Linux
This is instructions for NVidia-based GPUs. For AMD, see AMD
- Install the dependencies:
    # Debian-based: sudo apt install wget git python3 python3-venv # Red Hat-based: sudo dnf install wget git python3 # Arch-based: sudo pacman -S wget git python3
- To install in /home/$(whoami)/stable-diffusion-webui/, run:bash <(wget -qO- https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh)
Installation on Apple Silicon
Find the instructions here.