Stable Diffusion Local Installation Guide (2024 Update)

Introduction: Why Install Stable Diffusion Locally?

Stable Diffusion has revolutionized AI art generation, but most users rely on cloud-based services that limit control, privacy, and customization. Running it locally gives you:

✔ Uncensored generation
✔ Faster processing (no queue times)
✔ Full privacy (your data stays on your machine)
✔ Custom model support

This 1,000+ word guide walks you through installing Stable Diffusion on Windows, Mac, or Linux in under 30 minutes—even if you’re not tech-savvy.


1.

Minimum (Basic Models)

  • OS: Windows 10/11, macOS 12+, or Linux
  • GPU: NVIDIA (4GB VRAM) or AMD (6GB+ VRAM)
  • RAM: 8GB
  • Storage: 10GB free space

Recommended (XL Models)

  • GPU: NVIDIA RTX 3060+ (8GB+ VRAM)
  • RAM: 16GB+
  • Storage: 20GB SSD

Don’t meet requirements? Try Draw Things (Mac) or NMKD GUI (Windows) for lightweight alternatives.


2.

MethodDifficultyBest For
Automatic1111 WebUIEasyMost users, extensions
ComfyUIMediumWorkflow customization
FooocusEasiestBeginners, quick setup

Our recommendation: Automatic1111 (most features + community support).


3.

Step 1: Install Prerequisites

Windows

  1. Download Python 3.10.6 (check “Add to PATH”) → python.org
  2. Install Git → git-scm.com
  3. Optional: Update NVIDIA drivers → nvidia.com/drivers

Mac (M1/M2)

bash

Copy

Download

brew install cmake protobuf rust python@3.10 git

Linux (Ubuntu)

bash

Copy

Download

sudo apt install wget git python3 python3-venv

Step 2: Download Stable Diffusion WebUI

Open Command Prompt/Terminal and run:

bash

Copy

Download

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webui

Step 3: Download Model Checkpoints

  1. Get SD 1.5 (default model) → Hugging Face
  2. Place .safetensors file in:textCopyDownloadstable-diffusion-webui/models/Stable-diffusion/

Want better quality? Try SDXL 1.0 (download).


Step 4: Launch the WebUI

Run:

bash

Copy

Download

webui-user.bat  # Windows
./webui.sh      # Mac/Linux

First launch takes 5-15 minutes (it installs dependencies).


Step 5: Access the Interface

Open your browser to:

text

Copy

Download

http://127.0.0.1:7860

https://example.com/sd-webui-screenshot.jpg


4.

  1. Enter a prompt (e.g., “portrait of a cyberpunk cat”)
  2. Adjust settings:
    • Sampler: Euler a
    • Steps: 20-30
    • Resolution: 512×512 (for 8GB VRAM)
  3. Click “Generate”

Pro Tip: Use negative prompts (e.g., “blurry, deformed, watermark”) for better results.


5.

Speed Up Generation

GPUSpeed Boost Trick
NVIDIAAdd --xformers to COMMANDLINE_ARGS
AMDUse --precision full --no-half
IntelInstall OpenVINO plugin

Reduce VRAM Usage

Add to webui-user.bat:

bash

Copy

Download

set COMMANDLINE_ARGS=--medvram --opt-split-attention

6.

1. Install Extensions

  1. Go to “Extensions” tab → “Available”
  2. Install:
    • ControlNet (pose/edge control)
    • ADetailer (auto-fix faces/hands)
    • Dynamic Prompts (batch generation)

2. Add LoRA Models

  1. Download .safetensors files from CivitAI
  2. Place in:textCopyDownloadstable-diffusion-webui/models/Lora/
  3. Use in prompts: <lora:filename:0.8>

7.

❌ “Torch not compiled with CUDA”
✅ Fix: Reinstall PyTorch with CUDA support:

bash

Copy

Download

pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118

❌ “Out of memory”
✅ Fix:

  1. Reduce resolution (384×384)
  2. Add --lowvram flag

❌ Black images on AMD
✅ Fix: Use --precision full --no-half


8.

For Beginners: Fooocus

  1. Download Fooocus
  2. Extract ZIP → Run run.bat
  3. No setup needed!

For Workflows: ComfyUI

bash

Copy

Download

git clone https://github.com/comfyanonymous/ComfyUI
cd ComfyUI
python -m pip install -r requirements.txt

9.


Conclusion: Your Local AI Art Studio

Recap:

  1. Install Python + Git
  2. Clone Automatic1111
  3. Add model checkpoints
  4. Launch with webui-user.bat

Advanced users: Experiment with ControlNet, LoRAs, and SDXL.

Ready to start? Download everything today:
👉 Stable Diffusion WebUI

Leave a Reply

Your email address will not be published. Required fields are marked *