Today we are going to look at how you can both install and use Stable Diffusion. With Stable Diffusion, you can type in some text, and then using AI, you can generate an image based on that text, and the results are actually really stunning. There are many different companies pushing out technology like this, but the reason I like Stable Diffusion so much is, first off, the code is public and also free to use. You can install it on your computer as long as you have a decent graphics card, and you also get full rights to all of the images that are generated. Let's check this out.
First, we want to make sure that your PC is even capable of running Stable Diffusion, and you'll want to make sure that you have a discrete GPU (graphics card).
Now look if you have the following requirements:
If you meet these requirements, you're ready to move on to the installation process.
To use Stable Diffusion, you need to get two different pre-requisites. The first one is called Git. Click on the provided link to download Git.
Git is used for source control management, but in this case, we're simply using it to download Stable Diffusion and keep it up to date.
The second pre-requisite is Python. Click on the provided link to download Python. Make sure to select version 10.6, which is the current version that works with Stable Diffusion.
Click on the provided link to download Python.
During the installation process, check the box to add python.exe to the system's PATH, which will make it easier to run the Python scripts.
Now that we have all the pre-requisites, we're ready to install Stable Diffusion. We will install a fork called WebUI, which is the most popular fork and provides a graphical interface for easier interaction.
Open File Explorer (press Windows key + E)
Navigate to the location where you want to install Stable Diffusion.
Create a new folder and name it "stable-diffusion"
Open the folder and click on the address bar. Type "CMD" to open the command prompt.
We will use Git to clone the Stable Diffusion files.
Enter the command git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui in the command prompt and press Enter.
This will download the Stable Diffusion files from the GitHub repository.
Download the following base model (v1-5-pruned-emaonly.ckpt):
Put the downloaded file in the following folder:
To launch the Stable Diffusion Web UI:
By default, your version of Stable Diffusion will not receive automatic updates. Considering the rapid pace of advancements, it is highly probable that you will need to update your version at some stage in order to access the most up-to-date and impressive features. This can be achieved by adding the line git pull to the top of the webui-user.bat file.
Additionally you can speed up stable diffusion with some additional settings. If you have less than 8 GB VRAM on GPU, it is a good idea to turn on the --medvram option to save memory to generate more images at a time.
To enable these settings, 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).
Do you get out-of-memory errors?
In this blog post, we covered the installation and usage of Stable Diffusion for stunning image generation. We discussed both the web version and the installation process on your PC using the WebUI fork. Stable Diffusion provides a powerful tool for generating images based on text prompts, and by installing it locally, you gain more control over the parameters and output. Have fun exploring the creative possibilities with Stable Diffusion!
Stable Diffusion is a tool that uses AI to generate stunning images based on text prompts. Installing it on your Windows PC allows you to have more control over parameters and output, and it's especially beneficial if you want to create hyper-realistic images. The installation process is outlined in this guide.
Before installing Stable Diffusion, make sure your PC meets the following requirements: