Welcome to our beginner-friendly guide on setting up automatic1111's Stable Diffusion web UI on your Windows computer! This guide is designed for those who are new to using computers and software installations. By the end of this guide, you will have a fully functional AI image generation tool right on your desktop.
Python is a programming language that Stable Diffusion requires to run. Follow these steps to install Python 3.10.6 on your Windows computer:
Visit the Python official website's download page for Windows at Python Windows Downloads.
Scroll down to find "Files" and click on the link to download the "Windows installer (64-bit)".
Once the installer is downloaded, open it to begin the installation process.
In the installer window, make sure to check the box at the bottom that says "Add Python 3.10 to PATH" before clicking "Install Now."
Follow the on-screen instructions to complete the installation. You may need to click "Yes" if prompted by Windows to allow the installer to make changes to your computer.
After installation, you can confirm the installation by opening the Command Prompt and typing python --version. You should see Python 3.10.6 displayed if the installation was successful.
Git is a version control system that is necessary for downloading the Stable Diffusion WebUI files from the internet. Follow these steps to install Git on your Windows computer:
Visit the Git website's download page for Windows at Git Windows Downloads.
The website should automatically suggest the best version for your Windows. Click on the blue text towards the top of the page which says "Click here to download"
Once the installer is downloaded, open it to start the installation process.
Follow the installation prompts. It's usually safe to accept the default settings, but ensure you choose options that suit your preferences and setup. Click "Next" to proceed through the installer.
During the installation, you will be asked to choose certain options for integration and setup. The default options are typically suitable for most users.
Click "Install" to complete the installation process. You may need to click "Yes" if prompted by Windows to allow the installer to make changes to your computer.
After installation, you can verify the installation by opening the Command Prompt and typing git --version. You should see the installed version of Git displayed if the installation was successful.
To use Stable Diffusion, you need to download its WebUI from GitHub. Follow these steps to download and create a shortcut for easy access:
Ensure that Git is installed on your computer (refer to the previous section on installing Git).
Open Command Prompt on your computer. Do this by typing "cmd" in the Windows search bar and pressing Enter.
In the Command Prompt, type the following command and press Enter:
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
This command tells Git to download the Stable Diffusion WebUI files to your computer.
Wait for the download to complete. This might take a few minutes depending on your internet speed.
Once the download is complete, a new folder named 'stable-diffusion-webui' will be created in your home directory. The home directory is usually the folder with your username, found in 'C:\Users\[YourUsername]'.
To create a shortcut on your desktop for easy access, follow these steps:
To start generating images you must start the WebUI. The WebUI can be easily started by a batch script found in the "stable-diffusion-webui" folder created in the previous step
Open File Explorer. You can do this by clicking on the folder icon on your taskbar, or by pressing the Windows + E keys on your keyboard.
In the File Explorer, go to your 'C:' drive, usually labeled as 'Local Disk (C:)'.
Open the 'Users' folder, then open the folder that matches your username. This is often the name you see when you log into your computer.
Look for a folder named 'stable-diffusion-webui'. If you followed the standard installation process, it should be here.
Double-click on the 'stable-diffusion-webui' folder to open it. Inside, you'll find all the necessary files for Stable Diffusion.
Start the WebUI by running webui-user.bat by Double-clicking the file or Right-clicking the file and selecting open. Ensure the file type is "Windows Batch File".
Congratulations! You've successfully set up the Stable Diffusion web UI on your Windows computer. You can now start creating AI-generated images.