Quick Tutorial - Running Stable Diffusion on a Mac

preview_player
Показать описание
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:

----------------------------

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):

Step 2: Install required packages:

Step 3: Install Stable Diffusion / Automatic1111:

Step 4: Download the Stable Diffusion 1.5 Standard model and save it into the folder:
~/stable-diffusion-webui/models/Stable-diffusion
Download link:

Step 5: (optional): Download additional models from CivitAI:

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

wait until you see the message:
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:

Downloading models for the Controlnet extension:

Deforum Extension - download and infos:

Local installation guide for Automatic1111 on a Mac with Apple Silicon:

Some great Youtube channels, covering Stable Diffusion:

#stablediffusion #automatic1111 #tutorial
Рекомендации по теме
Комментарии
Автор

I would like to thank you for this video. It gave me the details I needed for stable diffusion as well as adding new models. Thank you again.

mariusmule
Автор

It was very helpful! Would you mind show us how we should add the extensions?

sourenanaghikhani
Автор

Hi! Thank you very much for your video. It's really helpful. Maybe you can also help with a Stable Video Diffusion Image-to-Video Model Card?

windofmarten
Автор

Again, another awesome video, keep it up 👏

maya-akim
Автор

Is this an Unlocked and Unleashed version that you are talking about or is this software just a normal Locked version? Thanks and I look forward to your reply. John E

justthecoolestmusicjohne
Автор

Hi! This video was so helpful. I'm getting "A tensor with all NaNs was produced in Unet." I followed instructions (float32) and tried a few prompts but no luck. M1 with 16 RAM

heyjenheck
Автор

7:46 there is no local url text to copy the address from. can you help please?

mrstormi
Автор

Thanks for the video: after months of trying finally I've managed to install Stable Diffusion on my Mac. Only one problem now, when I try to generate an image this text pops up: AttributeError: 'NoneType' object has no attribute 'lowvram'
Time taken: 0.0 sec. Do you know whay is this happening and what can be done?thanks

Inlight.filmchange
Автор

Super! Will try out. Thank You for sharing.
How to clean uninstall all this if you don't want it on the Mac anymore?

fayyazb
Автор

i got homebrew installed on the terminal, however when i copy and paste step 2 i get an error, any idea why?

timcollins
Автор

Thank you for the video. Did you succeed to install deforum or other installations on your M1? I got the same MacBook Pro M1 Max and I don't know the way to do this properly...

Vendegemusic
Автор

Thanks for the above steps. Are there any update on the steps because certain packages / models has newer versions? Hope you could reply. Thanks. again

hymhymhym
Автор

Hello, many thanks for this video. However I keep on stumbling on this error message after step 6, when wanting to run Automatic1111: "RuntimeError: Couldn't install gfpgan". Any help would be much appreciated. Thank you

aalaamaa
Автор

At step 6 i have this error: Stable diffusion model failed to load :(

ZeppelinPistol
Автор

Hi I am using MacBook M1 Pro 2021, I follow your instruction, the step 1 run pretty well but I stuck at step 2. The terminal can't run the step 2 command (command not found: brew). Please help

cannikchua
Автор

Hi I got that error do you have any idea how to fix that? 
zsh: command not found: brew

MrStonetat
Автор

can you tell if the installation will work on my MacBook Pro (Retina, 15-inch, Mid 2015)/2.5GHz Quad-Core Intel Core i7/16GB 1600MHz DDR3?

danielt
Автор

hello my dear, can u subscribe a tutorial for how to trainning my own custom model in stable diffusion on macbook pro m1, very thankful

宝强王-os
Автор

hi, ive installed everything but when i enter the text i get an error " RuntimeError: not implemented for 'Half' "

PRIYANKA