【SD Tutorials】How to install Stable Diffusion on Windows
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.
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
Step 3: Clone web-ui
Press the Window key and a search window should pop up. Type
Click on Command Prompt and type the following command , then pressing Enter.
It shows like this
C:\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.
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: http://127.0.0.1:7860
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
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.
webui-user.bat file to run Stable Diffusion.
About how to install Stable Diffusion on Mac，please click here.