How to install Stable Diffusion locally on Windows:

Here’s a step-by-step guide on how to install Stable Diffusion locally on Windows:

Step 1: Install Python

  1. Download Python 3.10.6 from the official Python website.
  2. Run the installer and check the box that says “Add Python 3.10 to PATH”.
  3. Click “Install Now” to begin the installation process.
  4. If you encounter any errors, remove any previous versions of Python from your system before reinstalling.

Step 2: Install Git

  1. Download the 64-bit Git executable for Windows.
  2. Run the installer and use the recommended settings.

Step 3: Clone the Stable Diffusion Repository

  1. Open Command Prompt by pressing the Windows key and typing “cmd”.
  2. Navigate to your home folder by typing: cd %userprofile%.
  3. Clone the repository by entering the following command:
   git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

Step 4: Download the Stable Diffusion Model

  1. Open File Explorer and navigate to %userprofile%\stable-diffusion-webui\models\Stable-diffusion.
  2. Download the Stable Diffusion v1.5 model checkpoint file from the provided link.
  3. Place the downloaded file in the Stable-diffusion folder.

Step 5: Run the Web UI

  1. Go back to the stable-diffusion-webui folder in File Explorer.
  2. Find and double-click the webui-user.bat file to run and complete the installation.
  3. Wait for the installation to finish. You’ll see a message: “Running on local URL: http://127.0.0.1:7860”.

Step 6: Access Stable Diffusion

  1. Open your web browser and go to http://127.0.0.1:7860.
  2. You should now see the AUTOMATIC1111 web UI for Stable Diffusion.
  3. Test it by entering a prompt (e.g., “a cat”) and clicking “Generate”.

Additional Notes

  • Ensure you have at least 10 GB of free space on your drive before installation.
  • To shut down Stable Diffusion, close the Command Prompt window.
  • To rerun Stable Diffusion in the future, simply double-click the webui-user.bat file again.
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x