
Here’s a step-by-step guide on how to install Stable Diffusion locally on Windows:
Step 1: Install Python
- Download Python 3.10.6 from the official Python website.
- Run the installer and check the box that says “Add Python 3.10 to PATH”.
- Click “Install Now” to begin the installation process.
- If you encounter any errors, remove any previous versions of Python from your system before reinstalling.
Step 2: Install Git
- Download the 64-bit Git executable for Windows.
- Run the installer and use the recommended settings.
Step 3: Clone the Stable Diffusion Repository
- Open Command Prompt by pressing the Windows key and typing “cmd”.
- Navigate to your home folder by typing:
cd %userprofile%
. - Clone the repository by entering the following command:
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
Step 4: Download the Stable Diffusion Model
- Open File Explorer and navigate to
%userprofile%\stable-diffusion-webui\models\Stable-diffusion
. - Download the Stable Diffusion v1.5 model checkpoint file from the provided link.
- Place the downloaded file in the
Stable-diffusion
folder.
Step 5: Run the Web UI
- Go back to the
stable-diffusion-webui
folder in File Explorer. - Find and double-click the
webui-user.bat
file to run and complete the installation. - Wait for the installation to finish. You’ll see a message: “Running on local URL: http://127.0.0.1:7860”.
Step 6: Access Stable Diffusion
- Open your web browser and go to
http://127.0.0.1:7860
. - You should now see the AUTOMATIC1111 web UI for Stable Diffusion.
- Test it by entering a prompt (e.g., “a cat”) and clicking “Generate”.
Additional Notes
- Ensure you have at least 10 GB of free space on your drive before installation.
- To shut down Stable Diffusion, close the Command Prompt window.
- To rerun Stable Diffusion in the future, simply double-click the
webui-user.bat
file again.