Stable Diffusion Tutorial: Your Easy Local Install Guide (PC/Mac)

Photo of author
Written By Gowtham

Gowtham publishes practical AI articles on machine learning, LLMs, RAG, and AI agents with a focus on hands-on implementation, clearer tradeoffs, and useful developer workflows.

Running Stable Diffusion locally gives you more control than a hosted image generator. You can choose your own models, keep prompts private, experiment without usage caps, and tune the setup for your own machine. The trade-off is that local installation is more fragile than a browser-only tool, so clear assumptions matter.

Last reviewed: April 26, 2026. This guide is centered on the AUTOMATIC1111 Stable Diffusion Web UI. The project’s troubleshooting wiki says it is tested with Python 3.10.6, so if the installation instructions change later, prefer the current repository README and wiki over any older blog post.

Who This Guide Is For

  • Windows + NVIDIA GPU: this is still the smoothest local setup path.
  • Mac with Apple Silicon: workable for local experimentation, but expect more variation in performance and setup friction.
  • Low-VRAM systems: possible, but you will need lower resolutions and memory-saving flags.

If you only want to test prompts occasionally, a hosted tool may be simpler. Local installation makes the most sense when you want repeatable control over models, checkpoints, and generation settings.

Why I Am Using AUTOMATIC1111 in This Tutorial

There are multiple local interfaces for Stable Diffusion, including ComfyUI and other app-style launchers. This guide uses AUTOMATIC1111 because it remains one of the most familiar web interfaces for local image generation, has strong community documentation, and still provides a practical text-to-image starting point for many developers and creators.

Before You Start

  • GPU: NVIDIA is the easiest path on Windows. Apple Silicon can work on modern Macs, but performance varies.
  • RAM: 16 GB system RAM is a practical baseline for smoother use.
  • Storage: leave plenty of free space. The UI, models, outputs, and extra checkpoints add up quickly.
  • Python: use Python 3.10.6 unless the official repo later states otherwise.
  • Git: required to clone and update the Web UI repository.

Download links:

Model Download Safety Note

Do not grab random checkpoints from unknown mirrors. Use trusted sources, verify licensing, and prefer .safetensors models over older checkpoint formats when possible. If you are just getting started, use a well-known base model from a reputable source such as Hugging Face and keep the first setup simple.

Two common starting points are SDXL-class base models for stronger hardware and Stable Diffusion 1.5-style models for lighter setups. Your hardware should drive that choice more than hype does.

Windows Installation Steps

This is the most practical path if you have an NVIDIA GPU and want the least friction.

  1. Install Python 3.10.6 and make sure it is added to PATH.
  2. Install Git.
  3. Create a folder for the project, for example C:\stable-diffusion.
  4. Open PowerShell or Command Prompt in that folder.
  5. Clone the repository.
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webui

Next, put at least one model file into:

stable-diffusion-webui\models\Stable-diffusion

Then launch the UI:

.\webui-user.bat

The first run can take a while because it builds a virtual environment and installs dependencies. When it finishes, look for a local URL such as http://127.0.0.1:7860 and open it in your browser.

macOS Installation Steps

For macOS, this guide is most realistic on Apple Silicon machines. Expect slower generation than a strong Windows NVIDIA setup, and expect some dependency variation over time.

  1. Install Homebrew if you do not already use it.
  2. Install Git and Python 3.10.
  3. Create a working folder.
  4. Clone the AUTOMATIC1111 repository.
  5. Place a trusted model in the correct model directory.
brew install python@3.10 git
mkdir -p ~/stable-diffusion
cd ~/stable-diffusion
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webui

If the first launch complains about missing build dependencies on your Mac, the project wiki is the right place to check before you start guessing. Some systems need extra tools such as cmake or rust, while others do not.

To launch the UI:

./webui.sh

Just like on Windows, the first run may take time while dependencies are installed. Once the script prints the local URL, open it in your browser.

What to Expect on First Launch

  • The installer creates a virtual environment automatically.
  • Initial setup may take 10 to 30 minutes depending on hardware and network speed.
  • The first prompt generation is usually slower than later runs.
  • You still need a compatible model in the correct folder before meaningful image generation starts.

If nothing appears in the browser, do not assume the install is broken immediately. Read the terminal output carefully first. Most failures are dependency, Python-version, or model-path problems.

Low-VRAM Tips

The AUTOMATIC1111 wiki includes several memory-saving flags. The most common starting points are:

  • --medvram for tighter GPU memory situations
  • --lowvram for more constrained cards
  • smaller image sizes and batch sizes
  • avoiding heavyweight models until the base setup is stable

On Windows, you usually place these flags in webui-user.bat. On macOS, you pass or configure them through the shell launch path. If you are constantly fighting out-of-memory errors, simplify the configuration before changing multiple things at once.

Common Problems and the Fastest Fixes

ProblemUsually MeansPractical Fix
Python not foundWrong version or not in PATHInstall Python 3.10.6 and confirm the executable path
Git not foundGit is missing or not on PATHInstall Git and restart the terminal
Out-of-memory errorsGPU memory is too tightLower resolution, lower batch size, try --medvram or --lowvram
Window closes immediately on WindowsThe script failed too quickly to readAdd pause at the end of webui-user.bat so you can inspect the error
No model appears in the UICheckpoint is in the wrong folder or unsupportedVerify the model location and use a trusted .safetensors file

When Local Installation Is Not the Right Choice

Do not force a local setup just because it sounds more advanced. Hosted tools are often better when:

  • you only need occasional generations
  • your machine has weak GPU support
  • you do not want to manage checkpoints, disk usage, and dependency issues
  • speed matters more than system-level control

Local Stable Diffusion is best when control, privacy, and repeatable experimentation matter enough to justify the setup overhead.

Conclusion

A good Stable Diffusion install guide should do two things well: show the happy path and be honest about the fragile parts. In 2026, the happy path is still strongest on Windows with an NVIDIA GPU, while macOS can work well enough for many Apple Silicon users if expectations stay realistic.

If you remember only three things from this guide, make them these: use the Python version the project is tested against, install from the official repository, and keep your first setup simple before layering on extra models or performance tweaks.

Leave a Comment