❘ Published: 2023-04-25T15:18:00
❘ Has been updated: 2023-04-25T15:18:08
Wondering how to install Stable Diffusion on Windows? Get an overview of how to install destructive AI image generation software.
Stable Diffusion is an AI image generator that allows you to input prompts and output images. This can be done on any PC with a GPU, but PCs with the latest and greatest graphics cards such as the RTX 40 series are much more effective than older cards.
Ad followed by article
Like ChatGPT, Stable Diffusion is one of the most popular artificial intelligence image generators after alternatives such as Adobe Firefly.
The process of installing Stable Diffusion requires some knowledge of the command prompt, but other than that, it’s a relatively straightforward process that can be followed step-by-step.
1. Install Python on your PC
The first step to get Stable Diffusion up and running is to install Python on your PC.
- Download Python 3.10.6 here or from the Microsoft Store.
- Run the installer and check “Add Python to PATH”. This will allow Python from the command prompt.
- Go through the setup process to fully install the software, including any desired customizations.
- When the installation is complete, you will see a screen with the message “Setup was successful”.
2. Install Git
Git is software used to manage repositories on your PC and is widely used in software development. Installing Git helps with the Stable Diffusion installation process.
Ad followed by article
- Download Git on Windows from here.
- Once downloaded, follow the installer instructions.
3. Duplicate Web-UI
Now, this is where things can get complicated. What we’re going to do is get the basics to install Stable Diffusion on our PC.
Subscribe to our newsletter to stay up to date on esports, gaming and more.
- Run Command Prompt on your PC
- invite “C:\Users\X> – “X” indicates the username. To get there you can also type “cd %X%” and press enter. This will show the correct file directory.
- Paste the following command into the window without the quotes. “git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git“
- After running this command, open File Explorer and navigate to your user folder. If successful, a new folder named “” will be created.stable diffusion webui“
4. Download the stable diffusion model file
Next, we need to get the Stable Diffusion model file. This is typically several gigabytes, which is perfectly normal and may take some time to install.
- Download the stable diffusion model file from HuggingFace here.
- Navigate to the “stable-diffusion-webui” folder created in the previous step.
- Find the “models” folder and open “stable-diffusion” inside it. Inside is a text file.
- Move the previously downloaded Stable Diffusion model files into this folder.
5. Web-UI settings
Finally, we need to set up the Web-UI to finally run Stable Diffusion. Luckily, this is a relatively simple process.
Ad followed by article
- Open the “stable-diffusion-wbui” folder created in step 3.
- Run “webui-user.bat”
- A command prompt window will open and will install all the tools needed to run Stable Diffusion. This process will take 5-10 minutes.
- You’ll know the process is complete when the command prompt window displays the URL “http://127.0.0.1:7860”.
6. Perform stable diffusion
Once everything is installed, open your web browser and clickhttp://127.0.0.1:7860in the address bar. This will run Stable Diffusion in your browser.
How to use stable diffusion
To use Stable Diffusion, enter the prompts in the WebUI window. This will generate an image based on that prompt. A powerful Nvidia or AMD graphics card is required to create the image. The UI also allows you to adjust things like the size of the images and the number of software-generated images.
Ad followed by article
What is stable diffusion?
Stable Diffusion is software with pre-trained datasets that can convert text prompts into AI-generated images. The generated image can be pretty much anything you can imagine, but you’ll have to tweak it quickly to get the output you want.
