How to Install Stable Diffusion on Windows

An easy step by step guide on how to install Stable Diffusion on your Windows PC.

illustration of a man installing stable diffusion on his computer
Author
Published at

Stable Diffusion is an AI tool that transforms text into stunning images. This guide makes it easy to install Stable Diffusion on your Windows PC.

Requirements

  • A discrete GPU with at least 4GB of dedicated memory.
  • Minimum 10GB of free hard drive space.

Installation Steps

  1. Check GPU Compatibility:
    • Open Task Manager (Ctrl + Shift + Escape).
    • Select 'Performance' to confirm if you have an NVIDIA GPU.
  2. Install Git:
    • Download Git from here.
    • Follow the default installation process.
  3. Install Python:
    • Download Python 10.6, compatible with Stable Diffusion, from this link.
    • Ensure to check 'Add Python.exe to Path' during installation.
  4. Set Up Stable Diffusion:
    • Navigate to your preferred location and create a new folder, e.g., 'Stable Diffusion'.
    • Open Command Prompt in this folder (type CMD in the address bar).
    • Clone the Stable Diffusion WebUI repository using the command: Git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.
  5. Download the Model:
    • Choose and download a model from here.
    • Rename the downloaded file to 'model' and move it to the 'models/Stable Diffusion' directory in your Stable Diffusion folder.
  6. Finalizing Installation:
    • Navigate to the 'stable-diffusion-webui' folder.
    • Run 'webui-user.bat'.
    • The first launch will install dependencies. Subsequent launches will be quicker.
  7. Launch and Use Stable Diffusion:
    • After dependencies are installed, a URL will appear in Command Prompt.
    • Paste this URL in your browser to access Stable Diffusion WebUI.
    • Choose the model, enter your text prompt, and generate images.

Conclusion

Stable Diffusion offers a powerful way to turn text into images. It also allows customization of image parameters, such as image size and refinement steps. Explore different settings for unique results. Follow these steps to install stable diffusion and get started with harnessing AI for creative image generation on your Windows PC.

Learn More

To dive deeper and see the full tutorial, click below.

Related Articles

Discover answers to the top 10 web scraping questions. From Python basics to using software and services related to data collection skills.

Author
Angad LambaAngad Lamba
Published at

Learn how to train a diffusion model from scratch and find resources on diving deep into diffusion and AI image generation.

Author
Prabhjot Singh LambaPrabhjot Singh Lamba
Published at