MacBook M1: How to install and run Stable Diffusion
Stable Diffusion is an open machine learning model developed by Stability AI to generate digital images from natural language descriptions that has become really popular in the last weeks.
These are the steps I followed to run Stable Diffusion on my laptop with Apple Silicon. These worked for me, and I hope they can work for you too. The first steps are the same I wrote down in my post “MacBook M1: installing TensorFlow and Jupyter Notebook” but I will paste them here for your convenience.
Step 1: Install Xcode
Xcode consists of a suite of tools that developers use to build apps for Apple platforms.
You can install Xcode from the App Store or you can download it from the Developer site.
Step 2: Install the Command Line Tools Package
As defined in the documentation, the Command Line Tools Package is a small self-contained package available for download separately from Xcode and that allows you to do command line development in macOS.
For a fresh install, this command should be enough:
xcode-select --install