【SD Tutorials】How to install Stable Diffusion on Windows

【SD Tutorials】How to install Stable Diffusion on Windows

March 10th, 2023

Systems requirements

You need a PC running Windows 10 or later with discrete Nvidia video card (GPU) with 4GB or more of VRAM. Also note that the integrated GPU does not work.

Installation steps

Step 1: Install python You will need Python 3.10.6 to run Stable Diffusion. Select the 64-bit windows installer.

Next, download and install.

Choose "Add Python 3.10 to PATH" and install.If an error occurs, it may be due to a previous installation of Python.So before installing 3.10.6, please go to Control Panel → Add or remove programs to remove the previous Python. Step 2: Install git

You will need Git to install and update Stable Diffusion.Go to this page to download the windows version. Then click Install and follow the instruction to complete the installation.

Step 3: Clone web-ui Press the Window key and a search window should pop up. Type cmd.

Click on Command Prompt and type the following command , then pressing Enter.

cd %userprofile%

It shows like thisC:\Users\YOUR_USER_NAME>.Type the following command and press Enter.

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

A folder called stable-diffusion-webui should be created in your home directory. Step 4: Download a model fileNext, go to the newly created folder in File Explorer. Put in


in the address bar and enter.

Navigate to the folder models and then Stable-diffusion.

Download the Stable Diffusion v1.5 model checkpoint file (download link). Put it in that folder. Step 5: Run webui Now in File Explorer, go back to the stable-diffusion-webui folder.


Find a file called webui-user.bat. Double-click to run and complete the installation.

Later, you will see a message

Running on local URL:

In your web browser, go to the URL You should see the Stable Diffusion webui! 🎉 When you are done using Stable Diffusion, close the cmd black window to shut down Stable Diffusion. To rerun Stable Diffusion, you just need to double-click the webui-user.bat.


You can speed up Stable Diffusion with the --xformers option. If you have less than 8 GB VRAM on GPU, it is a good idea to turn on the --medvram option to save memory so that you can generate more images at a time.

To enable them, right-click on the file webui-user.bat and select Edit. (You may need to select “Show More Options” first if you use Windows 11).

Replace the line


Save and close the file.

Double-click the webui-user.bat file to run Stable Diffusion.

About how to install Stable Diffusion on Mac,please click here.


no dataCoffee time! Feel free to comment