How to Install Stable Diffusion UI on Your Mac
Table of Contents
Artificial intelligence (AI) is playing a significant role in the way we create things these days. One popular example of this is Stable Diffusion, an AI model that allows you to generate images based on text inputs. If you’ve ever wanted to bring a description like “a cat wearing a hat” to life as an actual image, then Stable Diffusion is for you.
Even though this tool is available for free, using it through commands can be intimidating—especially for those unfamiliar with technical setup processes. Thankfully, the team behind AUTOMATIC1111 has developed a user-friendly web interface, making it much easier to interact with Stable Diffusion.
In this guide, I’ll show you how to install the Stable Diffusion web UI on your Mac. I’ll break down the steps so that anyone can follow along—even without prior technical knowledge. If you prefer a visual guide or are using an M1 Mac (Apple Silicon), I’ve also created a YouTube tutorial, which you can check out below:
If you are more comfortable following along with a video, you can check out my step-by-step guide on YouTube:
In this blog post, we’ll cover every step for getting Stable Diffusion up and running on your Mac, whether you’re using Apple Silicon (M1/M2 or Newer). Ready? Let’s get started.
Stable Diffusion is an AI-based model that can turn text prompts into high-quality images. It uses large datasets to learn how to create visual representations from descriptions. The fact that it can run on personal devices (like your Mac) makes it accessible to more people.
However, the initial setup can feel a bit challenging, especially if you’re not comfortable with command-line interfaces. That’s where AUTOMATIC1111’s web UI comes in handy. It provides a much more approachable experience for those who prefer a visual, web-based workflow.
Before going into the installation, make sure your Mac meets these baseline requirements.
Homebrew is a highly popular package manager for macOS that simplifies software installation. It makes setting up all the necessary tools for Stable Diffusion far easier.
Open Terminal and type the following:
brew -v
If you see a version number, you’re good to move on. Otherwise, you’ll need to install it.
To install Homebrew, type the following command in Terminal and hit enter:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Once installation is complete, you’re good to move to the next step.
Stable Diffusion requires a set of additional tools, or dependencies, to work properly. In this step, we install everything needed for the application to run smoothly.
Type the following in Terminal:
brew install cmake protobuf rust python@3.10 git wget
This will set you up with essential software required for the web UI.
The interface for Stable Diffusion can be accessed through a repository (collection of files) available on GitHub.
Before anything, navigate to the folder where you want to install Stable Diffusion. For example, if you want to install it in your Downloads folder, run this line in Terminal:
cd Downloads
Next, we’ll download Stable Diffusion by copying (or “cloning”) the repository:
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
With that, the necessary files for the UI will be downloaded, all set to be put to use.
Stable Diffusion requires “models,” which are files built using lots of images and data to help the AI generate new images. Think of them as instruction sets that the AI uses to create visuals.
You can browse several websites such as Hugging Face or Civit AI to download pre-trained models. Look for ones with the file extensions .ckpt
or .safetensors
. A good beginner-friendly option is the “dreamshaper” model.
Once you’ve downloaded a model file, move it into the following folder:
stable-diffusion-webui
folder you created in Step 3.models/Stable-diffusion/
and drag your downloaded model into this directory.Now that everything is set up, let’s bring Stable Diffusion to life on your Mac.
Navigate to the Stable Diffusion UI folder using Terminal by typing:
cd Downloads/stable-diffusion-webui
Run the following command to start the application:
./webui.sh
(Note: If you’re using an M1 Mac and encounter a runtime error, try launching it with this command instead:
./webui.sh --no-half
This will avoid issues related to memory usage.)
The first time you run it, it may take a few minutes as it downloads files and sets things up.
Once everything is ready, your Terminal will display a local webpage URL, such as:
http://127.0.0.1:7860
Copy and paste that link into your browser, and the Stable Diffusion web interface should appear.
Ready to get creative? Here’s how you can generate your first image using a text prompt.
When you’re done and wish to stop Stable Diffusion, simply closing the browser isn’t enough. The server will still be running in the background.
Head back to your Terminal window, where the system is still running.
To end the session, press Control + C
. This will stop the server and free up resources on your computer.
If things don’t go smoothly, don’t worry—here are a few tips to handle common issues.
repositories
and venv
within the stable-diffusion-webui
directory, then pull the latest updates with: git pull
After that, retry launching with ./webui.sh
.
./webui.sh --opt-split-attention-v1 --medvram
Congratulations! You’ve successfully set up Stable Diffusion on your Mac. Whether you’re a hobbyist or just curious about AI, you now have the tools to create highly detailed images from simple descriptions.
Feel free to experiment with different prompts and models, and see what kind of creative outputs you can generate. And don’t forget to check out the YouTube tutorial for a step-by-step visual walk-through of everything covered here.
Join our mailing list to receive the latest news and updates from our team.
Learn how to efficiently summarize PDFs with Claude AI, the leading AI-powered PDF summarization tool…
Making beautiful and engaging presentations is sometimes not easy. But with Gamma, a web app…
Are you looking for a compact, versatile, and surprisingly powerful microphone to enhance your podcasts,…
In today's fast paced digital age, content creators and live streamers are constantly seeking innovative…
GoPro Hero Availability GoPro has launched its latest action camera, the Hero 12 Black, Globally…
10 Tips to Improve Your Smartphone Videos This Graphic was created using Canva Videos are…
This website uses cookies.