Learn how to install Stable Diffusion on Windows and start generating stunning AI art.
Published by Noah @ PC Game Spotlight a year ago
Stable Diffusion: How to Install on Windows
Wondering how to install Stable Diffusion on Windows? It’s a fair question, as the image generation software is one of the most exciting developments in the field. Developed by a team of researchers at Google and made open source, Stable Diffusion uses deep learning to generate stunning AI art.
As you may expect, this kind of tech is complicated to install and use, especially on the average Windows PC. That’s where we come in. In this guide, we show you how to install Stable Diffusion on any Windows PC and how to use it once it’s up and running.
How to Install Stable Diffusion on Windows
To install Stable Diffusion on Windows:
Installing Python on your PC is a requirement for Stable Diffusion, as it’s not included by default. Luckily, the installation process is straightforward and is the same for all versions of Windows. You can download Python from the official website.
Installing Git is also necessary, as Stable Diffusion is an open-source project. You can download Git from the same place you downloaded Python from.
Next, you need to clone Web-UI, the frontend for Stable Diffusion. This is a separate project, but it’s an essential part of setting up Stable Diffusion. To clone Web-UI, use the following command:
Web-UI’s GitHub page recommends using the --depth command to avoid cloning too many files.
Next, you need to download a Stable Diffusion model file. These files act as the foundation of Stable Diffusion art and can be found on the Stable Diffusion GitHub page. At the time of writing, the best model to use is model-2.bin, so download this file and move it to the same directory as Web-UI.
Now that you’ve got everything you need to set up Stable Diffusion, you need to set up Web-UI itself. Open up a command prompt and navigate to the Web-UI folder, which you should have cloned earlier. Run the following command to set up Web-UI:
npm install
The above command will create a new folder called web-ui-data and download all the necessary files.
Now that Web-UI is set up, you need to create a configuration file for Stable Diffusion. Run the following command:
npm run build
The above command will create a configuration file called diffusconfig.json in the same directory as Web-UI. You can edit this file to change settings for Stable Diffusion.
Finally, you can run Stable Diffusion using the following command:
npm start
This will start Stable Diffusion and the Web-UI interface. You should now be able to interact with the image generation software by clicking on the globe icon at the top right of the screen.
How to Use Stable Diffusion
Wondering how to use Stable Diffusion? Not only does it generate stunning AI art, but it can also act as a screensaver. To use Stable Diffusion as a screensaver, just change the diffus.image_path setting to a folder containing images.
Stable Diffusion is a disruptive AI image generation software that uses deep learning to create stunning images. It’s open source, so you can download it and start using it on your PC without paying a license fee, but the technology is still in its infancy.
That’s how to install Stable Diffusion on Windows. For more AI-generated art, check out our list of the best generative adversarial network games, or the best Steam games with native support for the HTC Vive Pro.