Install Stable Diffusion and Start Generating AI Images in Minutes!

Install Stable Diffusion and Start Generating AI Images in Minutes!

Table of Contents:

  1. Introduction
  2. Installing Python
  3. Installing Git
  4. Cloning the Automatic 1111 Repository
  5. Adding Command Line Arguments
  6. Downloading Checkpoint Models
  7. Running Stable Diffusion
  8. Adding an Automatic 1111 Icon
  9. Conclusion

Article:

Introduction

In this tutorial, we will learn how to install Stable Diffusion on your local computer. Whether you are using Windows, Mac, Linux, or even an iOS device, the installation process is relatively simple and can be completed in around 10 to 15 minutes, depending on your internet connectivity. By the end of this tutorial, you will have a fully functioning Stable Diffusion setup on your computer.

Installing Python

The first step in installing Stable Diffusion is to install Python. It is important to install the correct version of Python, as certain features may not work with the wrong version. For Windows users, we will be installing the 3.10.7 version of Python. Simply follow the provided link and download the 64-bit installer if You are using a 64-bit version of Windows. During the installation process, make sure to check the "Add Python 3.10 to PATH" option, as this will add Python to your system's PATH variable, allowing you to run Stable Diffusion.

Installing Git

Next, we need to install Git, which will help us install Automatic 1111. Git installation is straightforward, and you can leave all the settings as default. Follow the provided link and select the 64-bit installer for Windows. Once the installation is complete, you can turn off the view release notes option and finish the installation process.

Cloning the Automatic 1111 Repository

Now, let's clone the Automatic 1111 repository. Go to the Automatic 1111 GitHub repository and click on the "Code" button at the top. Then, click on the copy button, which will copy the repository's URL. Open Windows Explorer and select the location where you want to install Stable Diffusion. Create a new folder and rename it to "Stable Diffusion". Open the command prompt by typing "CMD" in the search bar, and navigate to the "Stable Diffusion" folder. Once in the folder, run the command "git clone" followed by the copied URL. Press enter to start the cloning process.

Adding Command Line Arguments

After successfully cloning the repository, we need to add a couple of command line arguments to the "webui_user.bat" file. Right-click on the file while holding down the shift button and select "Edit" to open it in Notepad. In the command line arguments section, add the following arguments: "d-x forers" and "auto-launch". The "auto-launch" argument will automatically load Stable Diffusion into your web browser after it finishes loading. Save the changes and exit out of Notepad.

Downloading Checkpoint Models

To make Stable Diffusion work, we need to download a checkpoint model. While you can use the original Stable Diffusion models, it is recommended to use the ones available on the Civ AI Website, as they are more refined. Visit the Civ AI Website and search for the checkpoint model you need. For example, if you are looking for the Realistic Vision 5.1 model, search for it and download both the base model and the in-painting model. Keep in mind that these files can be large, so make sure you have enough storage space.

Running Stable Diffusion

Once you have downloaded the checkpoint models, navigate to the "models" folder in your Stable Diffusion installation directory. Create a new folder for the downloaded models, and place them inside it. Now, go back to the Stable Diffusion web UI and run the "webui_user.bat" file. This will start the Stable Diffusion application. If it is your first time running it, it may take some time to install the required files and dependencies. Grab a coffee and let it finish the installation process. If it looks like it's stuck, don't worry, it is probably performing tasks in the background. Keep an eye out for any new versions that need to be installed, as displayed in the command prompt.

Adding an Automatic 1111 Icon

As a bonus tip, let's add an Automatic 1111 icon to the web UI and place it on the desktop for easy access. Download an icon file you like, convert it to .ico format, and place it in the Automatic 1111 folder. Rename the shortcut to "Stable Diffusion" for better recognition, and change its icon by browsing for the downloaded icon file. Apply the changes, and you can now run Stable Diffusion directly from your desktop.

Conclusion

Congratulations! You have successfully installed Stable Diffusion on your local computer. By following the steps outlined in this tutorial, you now have a fully functioning Stable Diffusion setup and can start generating images. Remember to check for updates and new models regularly to make the most out of Stable Diffusion's capabilities.

Highlights:

  • Installing Stable Diffusion on your local computer is a relatively simple process.
  • Make sure to install the correct version of Python and add it to your system's PATH variable.
  • Git is required to clone the Automatic 1111 repository and install Stable Diffusion.
  • Download checkpoint models from the Civ AI website for better results.
  • Running Stable Diffusion may take some time, so be patient during the installation process.
  • Customize the Stable Diffusion icon for easy access to the web UI.

FAQ:

Q: Can I use Stable Diffusion on a Mac or Linux computer? A: Yes, Stable Diffusion can be installed on Mac, Linux, and other operating systems, not just Windows.

Q: How much disk space do I need for Stable Diffusion and its models? A: The size of Stable Diffusion and its models can vary, but be prepared to have several gigabytes of free disk space.

Q: Can I use checkpoint models from sources other than Civ AI? A: While you can use models from other sources, Civ AI models are recommended due to their refinement and compatibility with Stable Diffusion.

Q: How often should I check for updates and new models in Stable Diffusion? A: It is recommended to check for updates and new models regularly to take advantage of the latest improvements and features.

Q: Can I customize the Stable Diffusion icon for easier recognition? A: Yes, you can change the Stable Diffusion icon by following the steps outlined in the tutorial.

Most people like

Find AI tools in Toolify

Join TOOLIFY to find the ai tools

Get started

Sign Up
App rating
4.9
AI Tools
20k+
Trusted Users
5000+
No complicated
No difficulty
Free forever
Browse More Content