Home » Film & Animation » Quick Tutorial - Running Stable Diffusion on a Mac

Quick Tutorial - Running Stable Diffusion on a Mac

Written By Render Realm on Saturday, Mar 18, 2023 | 12:18 PM

 
A quick and easy guide how to install Stable Diffusion Automatic1111 on a Mac with Apple Silicon. To watch some great music videos created with StableDiffusion, Unreal Engine and Blender, visit our YouTube music channel: https://www.youtube.com/@-vero- ---------------------------- Chapters: 00:00 Basic infos 01:53 Installing the required apps and packages 03:20 Downloading the required models for Stable Diffusion 05:48 Optimizing the Stable Diffusion environment by editing the COMMANDLINE_ARGS 06:37 Starting the Stable Diffusion Automatic1111 webui 07:52 See if everything works 08:30 Final remarks ---------------------------- Installation process: (just copy and paste the commands into a terminal window, as described in the video) Step1: Install homebrew (that's going to take a while): /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" Step 2: Install required packages: brew install cmake protobuf rust [email protected] git wget Step 3: Install Stable Diffusion / Automatic1111: git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui Step 4: Download the Stable Diffusion 1.5 Standard model and save it into the folder: ~/stable-diffusion-webui/models/Stable-diffusion Download link: https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt Step 5: (optional): Download additional models from CivitAI: https://civitai.com/ Step 6: edit ~/stable-diffusion-webui/webui-user.sh: change line #COMMANLINE_ARGS="" into export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling --opt-split-attention" Then save and close the file Step 6.1: (ONLY if your Mac is low of memory, like 8GB RAM) change line #COMMANLINE_ARGS="" into export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling --opt-split-attention --medvram" or if that still doesn't work: export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling --opt-split-attention --lowvram" Then save and close the file ------------------------- Starting Automatic1111: Open the terminal app and type: cd ~/stable-diffusion-webui ./webui.sh wait until you see the message: Running on local URL: http://127.0.0.1:7860 Paste that URL into a browser and you are good to go! DON'T CLOSE THE TERMINAL WINDOW! To stop Automatic1111 hit CONTROL + c To update Stable Diffusion Automatic1111 to a new version, type: cd ~/stable-diffusion-webui git pull and wait until it's finished ---------------------------- Useful links (espescially when you are into video production): Controlnet Extension - download and infos: https://github.com/Mikubill/sd-webui-controlnet Downloading models for the Controlnet extension: https://huggingface.co/lllyasviel/ControlNet/tree/main/models Deforum Extension - download and infos: https://github.com/deforum-art/deforum-for-automatic1111-webui Local installation guide for Automatic1111 on a Mac with Apple Silicon: https://stable-diffusion-art.com/install-mac/ Some great Youtube channels, covering Stable Diffusion: https://www.youtube.com/@OlivioSarikas https://www.youtube.com/@NerdyRodent https://www.youtube.com/@sebastiankamph https://www.youtube.com/@promptmuse #stablediffusion #automatic1111 #tutorial