How to Install Stable Diffusion AUTOMATIC1111 on Windows 10/11

Stable Diffusion Automatic1111 is a powerful tool that revolutionizes the way we create AI-generated images. It is a user-friendly interface that allows users to effortlessly run and manage their AI models for image generation. We will guide you on how to install AUTOMATIC1111 on Windows 10/11.

Introduction

Stable Diffusion, an open-source machine learning model, can generate images from text, modify images based on text, and enhance low-resolution or low-detail images. It has been trained on billions of images and can produce results that are on par with those generated by DALL-E 2 and MidJourney.

Automatic1111 is a web-based graphical user interface to run stable Diffusion. It brings up a webpage in your browser that provides the user interface. We will go through how to install the popular Stable Diffusion software AUTOMATIC1111 on Windows step-by-step. After this tutorial, you can generate AI images on your own PC.

System Requirements

Windows 10, 11
Git, Conda, Python 3.10
16GB of RAM, 30G SSD Disk Space
Nvidia graphics card with at least 8GB of VRAM

7 Steps to Install Automatic1111 on Windows

Step 1. Install Git on Windows

1. Navigate to the latest Git for Windows installer and download the latest version.

2. Once the installer has started, follow the instructions as provided in the Git Setup wizard screen until the installation is complete.

3. Open the windows command prompt (or Git Bash if you selected not to use the standard Git Windows Command Prompt during the Git installation).

4. Type git version to verify Git was installed.

> git version
git version

Step 2. Install Conda on Windows

2. Double-click the .exe file.

3. Follow the instructions on the screen. If you are unsure about any setting, accept the defaults. You can change them later. When installation is finished, from the Start menu, open the Anaconda Prompt.

4. Test your installation. In your terminal window or Anaconda Prompt, run the command conda -V to check conda version. If you run conda list, a list of installed packages appears if it has been installed correctly.

> conda -V
conda 23.10.0
> conda list
conda list

Step 3. Create Stable Diffusion Environment

If you have Miniconda installed, you can use the conda command line to create a Stable Diffusion environment and activate it.

> conda create -n StableDiffusion python=3.10.11
> conda activate StableDiffusion

If Anaconda is installed, you can use the graphical interface to operate it, as shown in the figure below.

conda create python 3.10 env
conda open python 3.10 env

Step 4. Download Stable Diffusion Repository

Download the Stable Diffusion Webui Automatic1111 repository as a .zip file, and then extract or use git to clone:
> git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
Cloning into 'stable-diffusion-webui'...
remote: Enumerating objects: 18979, done.
remote: Counting objects: 100% (573/573), done.
remote: Compressing objects: 100% (248/248), done.
remote: Total 18979 (delta 359), reused 480 (delta 325), pack-reused 18406
Receiving objects: 100% (18979/18979), 28.88 MiB | 9.87 MiB/s, done.
Resolving deltas: 100% (13233/13233), done.
Note: Some files exceed multiple gigabytes, so make sure you have enough free space first.

Step 5. Download Stable Diffusion Models

Models, sometimes called checkpoint files, are pre-trained Stable Diffusion weights intended for generating general or a particular genre of images. Go to CompVis or Stable Diffusion Art and download any model you like, for example, 1.5, and put it to models directory.

(StableDiffusion) D:\github\stable-diffusion-webui\models\Stable-diffusion\
download sd models

Step 6. Run webui-user.bat

(StableDiffusion) D:\github\stable-diffusion-webui>webui.bat --xformers
venv "D:\github\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.11 | packaged by Anaconda, Inc. | (main, Apr 20 2023, 18:56:50) [MSC v.1916 64 bit (AMD64)]
Commit hash: 5ab7f213bec2f816f9c5644becb32eb72c8ffb89
Installing xformers
Collecting xformers==0.0.17
  Downloading xformers-0.0.17-cp310-cp310-win_amd64.whl (112.6 MB)
……
Model loaded in 12.8s (calculate hash: 6.1s, load weights from disk: 0.3s, create model: 1.7s, apply weights to model: 1.1s, apply half(): 1.2s, move model to device: 1.0s, load textual inversion embeddings: 1.3s).
Running on local URL:  http://127.0.0.1:7860
start stable diffusion webui server

Step 7. Enjoy Using Stable Diffusion Automatic1111

Use your browser to open the local Stable Diffusion URL. In the field for entering your prompt, type a description of the image you want to generate. Then, click the Generate button.

Demo1
Prompt:
Pixar style little girl, 4k, 8k, unreal engine, octane render photorealistic by cosmicwonder, hdr, photography by cosmicwonder, high definition, symmetrical face, volumetric lighting, dusty haze, photo, octane render, 24mm, 4k, 24mm, DSLR, high quality, 60 fps, ultra realistic
use stable diffusion create a image
Demo2
Prompt:
(masterpiece:1.0), (best quality:1.4), (ultra highres:1.2), (photorealistic:1.4), (8k, RAW photo:1.2), (soft focus:1.4), 1 woman, posh, (sharp focus:1.4), (korean:1.2), (american:1.1), detailed beautiful face, black hair, (detailed open blazer:1.4), tie, beautiful white shiny humid skin, smiling
Negative Prompt:
illustration, 3d, sepia, painting, cartoons, sketch, (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale:1.2)),newhalf, collapsed eyeshadow, multiple eyebrows, pink hair, analog, analogphoto
use stable diffusion create another image

Conclusion

This innovative tool, powered by AI, offers a seamless and efficient way to generate stunning and realistic images. Stable Diffusion stands out among AI art models because you can run it locally on your PC, allowing you to fine-tune the algorithm-generated art until you’re satisfied with the results. If you already have a powerful gaming pc or server, you’re only clicks away from making incredible art anywhere.

We offers professional GPU hosting services that are optimized for high-performance computing projects. Here we recommend some dedicated GPU server plans suitable for running stable diffusion. Please feel free to start your journey boldly, as we are happy to help with any difficulties.