How to Install Stable Diffusion on Windows with Automatic1111

Hyeat

Install Stable Diffusion on Windows

Stable Diffusion webUI AUTOMATIC1111, is an advanced text-to-image AI software that enables users to create captivating AI-generated images. This guide will walk you through the step-by-step process of downloading and installing Stable Diffusion on your Windows system, allowing you to harness the full potential of this popular software.

Verify System Requirements

Before proceeding with the installation, it is crucial to ensure that your Windows PC meets the following system requirements:

  • Windows 10 or a newer version
  • A dedicated Nvidia video card (GPU) with a minimum of 4 GB VRAM (Integrated GPUs are not supported)

In case your PC does not meet these requirements, alternative options such as utilizing Google Colab or a Mac Apple Silicon M1/M2 can be considered.

Install Python

To run Stable Diffusion, you need to have Python installed on your system. Follow these instructions for a seamless Python installation:

Option 1: Microsoft Store Installation

1: Uninstall any previously installed Python versions from your system through Control Panel -> Add or remove programs.

2: Visit the Microsoft Store and locate Python 3.10, then initiate the installation.

3: Open the Command Prompt by pressing the Windows key, typing “cmd,” and selecting “Command Prompt.”

write cmd and select command prompt

4: Write “python” and press Enter. Confirm that Python 3.10 is displayed, indicating a successful installation.

python version successfully installed

Option 2: Python Website Installer

  • Remove any existing Python installations.
  • Go to the official Python website and download the Python 3.10 installer.
  • Run the installer and ensure that you select the “Add Python 3.10 to PATH” option during the installation process.
  • Open the Command Prompt, type “python,” and press Enter to verify the installation.

Install Git

Git is necessary for installing and updating AUTOMATIC1111. Follow these steps to install Git:

  • Visit the Git website and download the Windows version of Git.
  • Run the installer, agree to the license terms, and complete the installation process.
install git

Clone the Stable Diffusion Repository

In this step, you will clone the Stable Diffusion repository using Git:

Step 1: Launch the Command Prompt by pressing the Windows key, typing “cmd,” and selecting “Command Prompt.”

Step 2: Change to your home folder by typing “cd %userprofile%” and pressing Enter.

Step 3: Clone the AUTOMATIC1111/stable-diffusion-webui repository by entering “git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git” and pressing Enter.

git clone stable diffusion

Step 4: Verify that a folder named “stable-diffusion-webui” is created in your home directory.

Download the Model File

To utilize Stable Diffusion, you must download a model checkpoint file:

Step 1: Open the File Explorer and navigate to the “stable-diffusion-webui” folder in your home directory.

Step 2: Enter “%userprofile%\stable-diffusion-webui” in the address bar and press Enter.

Step 3: Locate the “models” folder and open it.

Step 4: Download the Stable Diffusion v1.5 model checkpoint file from the provided download link and place it within the “Stable-diffusion” folder.

Stable Diffusion v1.5 model checkpoint file

Run Stable Diffusion

Now, it’s time to execute Stable Diffusion and begin generating AI images:

  • In the File Explorer, navigate back to the “stable-diffusion-webui” folder (you can use the address “%userprofile%\stable-diffusion-webui”).
  • Double-click the “webui-user.bat” file to initiate the installation process.
  • Wait for the installation to complete. It might take a few minutes, depending on your system.
  • Once the installation is finished, the Command Prompt window will display that the server is running on a specific address (e.g., http://127.0.0.1:7860).
  • Open your preferred web browser and enter the provided address (e.g., http://127.0.0.1:7860).
  • Congratulations! You should now see the Stable Diffusion user interface in your web browser.

Conclusion

That’s it! You have successfully installed Stable Diffusion on your Windows system. Now, you can unleash your creativity and dive into the world of AI-generated images. With AUTOMATIC1111’s powerful technology at your fingertips, the possibilities are endless. Let Stable Diffusion revolutionize your artistic endeavors and open new avenues of expression. Get ready to bring your ideas to life and witness the magic of text-to-image generation. Explore, create, and enjoy the remarkable journey ahead with Stable Diffusion on your Windows PC.

Leave a Comment