How to Install Stable Diffusion on M1 Macs
Vložit
- čas přidán 20. 06. 2024
- How to install stable diffusion on Mac with Apple silicon M1 (or M2) chips. Here we'll walk through installing stable diffusion on Mac from start to finish, including homebrew, python, and stable diffusion installs.
📣📣📣I have just opened a Discord page to discuss SD and AI Art - common issues and news - join using the link: / discord
👀 Struggling to run Stable Diffusion locally? You can try DiffusionHub!
🤑Get 20% MORE DiffusionHub CREDIT using the link below or using the promo code LAURA20!
Link: diffusionhub.io?fpr=laura17
🤙🏻 Follow me on Medium to get my Newsletter:
- Get UNLIMITED access to all articles: / membership
- Laura: / lauracarnevali
- Intelligent Art: / intelligent
📰Article:
/ stable-diffusion-mac
📌 Links:
Homebrew: brew.sh
GitHub: github.com/AUTOMATIC1111/stab...
Hugging Face: huggingface.co/runwayml/stabl...
Warp: app.warp.dev/referral/2EYMJL
00:00 What is Stable Diffusion?
02:00 Install Homebrew
02:35 Install Cmake, Protobuf, Rust, Python, Git, Wget
03:25 Download Stable Diffusion Webui from GitHub
04:55 Download weights from Huggin Face
06:30 Run installation
07:03 Final thoughts
#aiart #stablediffusion #generativeart
hi every time I write "brew install cmake protobuf rust python@3.10 git wget" on the terminal it says "command not found" I'm blocked I can not install stable diffusion.
Hey, I assume you installed Homebrew. If so, it can be that Homebrew was installed in another directory - you can check that when you run the Homebrew installation on your terminal. In my case, Homebrew was installed into /opt/homebrew:
"
==> This script will install:
/opt/homebrew/bin/brew
/opt/homebrew/share/doc/homebrew
/opt/homebrew/share/man/man1/brew.1
/opt/homebrew/share/zsh/site-functions/_brew
"
If you get another directory, you have to run brew from its origin.
For macOS Intel, the directory is /usr/local, so in that case, you should run the below:
/usr/local/bin/brew install cmake protobuf rust python@3.10 git wget
Then follow NEXT STEPS shown on command line, it should show something like this
==> Next steps:
- Add Homebrew to your PATH in /Users/$USER/.zprofile:
echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/$USER/.zprofile
eval $(/opt/homebrew/bin/brew shellenv)
Copy and paste the first line on the same terminal window, then hit enter
echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/$USER/.zprofile
Then Copy and paste the last line on the same terminal window, then hit enter
eval $(/opt/homebrew/bin/brew shellenv)
Finally you should be able to use brew help and if that works, it means that brew was installed properly and running from ZSH.
@@LaCarnevali hi thank you very much for your answer. I followed your instruction and your video for installing stable diffusion and it worked. it took little bit time but it's done. 🥰
@@soumayaseghir4177 Happy it worked!! 😄🥰
@@LaCarnevali can you help me?? How you did it??
i have the same problem
Though there were some hiccups during the installation process due to network connectivity issues, I managed to complete it successfully by following the video step by step. It's fantastic! Thank you!
Thank you so, so much for this tutorial! Terminal usually terrifies me, but I was able to follow the steps and install it like a pro, thanks to you!
How do you reopen it after you save it to the browser? Thanks in advance
Hey Laura Carnevali! I am from Brazil. Just wanted to say a big thank you for all your help. Your channel is awesome, and I've been telling my friends about it. Keep up the great work!
Thank you Laura for this tutorial. I couldn't have installed Stable Diffusion on my Mac without your video! Just subscribed to your channel!
I looked in many different places to find good download instructions, your video is by far the best one, great job!
thank u laura, your instruction to use Warp to install made this very easy!
Worked exactly as you instructed. Thank you!
Thank you, Laura, it worked perfectly. I needed to go for details and links to your page :)
Worked perfectly. Thank you very much!
worked like a charm! best explanation straight to the point, thanks!👏
thank you so much. Laura, i finally installed sd on my mac. it's working perfectly. many thanks.Best to you.
Thank you for making this. You approach was very detailed and simple. It's rare that things like this are so easy. You have a wonderful day.
Thank you, your clear instructions worked for me.
Wow thank you very much for sharing the amazing tutorial! It worked perfectly😊
Managed to get it done after a few errors but got there at the end. Thank you for your video. Very helpful.
After hours and hours ....
also several times trying.. trial and error , 😭😭😭finally it works because of you!!thank you Laura 🔥🔥🔥
Hey, it's really helpfull and works perfect as well, I've been tried many tutorials on mac always failed and complicated, your tutorial are simple, clear, easy and amazing, thanks a lot
woo. your article help me a lot! I have searched CZcams for week. Thanks a lot!
Amazing video, it worked perfectly on my end as well
Thank you. This is what I was looking for. I want to create some of the liquid, dreamy, animations.
Thank you so much, so clear and easy to follow :)
Muchas gracias Laura, me ayudaste un montón!!!
Thank you so much. It works without a problem.
After several hours and several attempts BOOM...mil GRACIAS. Without you I would not have succeeded ☺
You have just gained a new follower, Laura 😊 thanks for a very nice tutorial
You are an angel. Worked like a charm. Thank you so much from Switzerland
Thank you so much Laura I spent so much time but it works 🙏
It works perfect, thank you so much!
Thank you so much! Most effective tutorial ever on yt! :)
Grazie mille Laura!! Tutorial perfetto!
Awesome tutorial! Thank u Laura 🤗
this was so helpful thanks so much!!!
Excellent tutorial thank you :)
Super easy and useful. Thanks
Laura, you help me so much! thank you !
Big Thanks!I can really install stable diffusion on mac! Yayyyy
Great Video! Thank you so much!
Thank you so much for the video
Thanks a lot great tutorial ! Time to unleash my creativity :D
thank you so much! it works perfectly even on m2 Max apple
Very very nice and helpful ! Thx 😊
Thank you ! Your video is very helpful :D
Thanks! That's really interesting!
Thanks a lot for your explanation ! You're so cool !
Great video. Let us know if you have any feedback or questions while using the Warp terminal!
Thank you, very helpful.
Hi Laura, thanks for the video. Have you considered making a video on how to create an alias application to run stable diffusion? that would allow users to click an icon from the dock instead of manually navigating to the terminal and running the .sh command
could you guide me how to do this?
Hi Laura! Thank you for instruction! just installed on my MacBook Pro 14 m1 Pro according to your instructions. everything is working! there was just a warning "Torch not compiled with CUDA enabled". and there was also a notice "A new release of pop is available: 23.0.1 - 23.1.2" to update run: pip instal --upgrade pip (and after installation I typed this but nothing happened.. maybe it has updated already? thank you for your work Laura!
Hi, these are just warnings and are not relevant for Mac users. For more info >>>
czcams.com/video/ue-_BT0EtiY/video.html
Thank you! 2024 and it still works!
great video!
Thank you very much!
thank you sooo much!
Thank you, have a great day :-)
thank you so much, it took me almost like an hour lol but yeahhh thanks to you it worked !!!
Great video!
Thank you so muchhhhhhhh i subbed and liked
Great video, thank you
awesome thank you !
Thank you Luara just installed. How can I link my output folder to export to my external drive?
thank you laura
thank you for the tutorial :))
Hi, I just finished watching your video about LoRAs and it was really helpful, and same with this one! I am wondering if you could help me, what specs does the mac have that you use for Stable Diffusion? Would a MacBook Pro M2 13" do the job?
I m not using my mac as mine (M1) is not powerful enough. M2 should be fine though!
You are a gem.
It worked thank youuuuu😁😁😁
Hey Laura, thanks for the tuto, I was wondering what was the performance on the m1/m2
It can be very slow. Although there are some steps you could take to improve the performance when starting SD. I would recommend to use google colab
Laura! You are amazing, I subscribed as thanks for taking the time to post and respond. EDIT UPDATE: I was getting an error message that "ERROR: Could not find a version that satisfies the requirement torch==1.12.1" ---- Turns out I uploaded Python 3.11 which is not supported and when I uploaded 3.10 it seems to be working. Still looking forward to more tutorials if you get into detail about different model packages. THX!
Thank you, Carlos! I m going to post soon a video to fix these small warnings when running SD! Happy you sorted :)
thankyou so much
Thanks for a very clear and simple video Laura. Is the Core ML version o stable diffusion faster than the PyTorch version. I am using Apple MacBook Pro with M2 chip. If so, how do I also install CoreML version of SD 1.5? Thank You
Hi, same here as per Mochi. I need to test them before being able to say something about them. They can be faster, but not sure in terms of flexibility?
i don't have a mac, and i have stable-diffusion for now installed on a debian PC, i watch the video only because i like you :)
lol
THX for this video... 🙂
grazie mille, Laura
GRANDISSIMA, Grazie!
great vid thank you very much for taking time and your effort, not many smart and pretty ladies in tech business :) thanks
Thank you for your video, it allowed me to install Stab-eDiffusion on my M1 Macbook Air. I have also installed Deforum + Automatic111 and have been using it for about 1 week. The 3D option does not work for me, starts to render and quits. Did you happen to solve this issue? Seems to be an issue with memory and I probably will need a more powerful computer. Thanks again.
Thank you so much
Hi Laura, I have quick question. On a i Mac M3 should I follow he same procedure described on this vid? Thanks!
Thank you ! ;)
Grazie grazie ❤
Hi laura, Thanks for the instructions.
Does the same process work for Intel Macs? I have an Intel i9 processor with 32GB ram & AMD Radeon Pro 5500M 4 GB graphic card.
So so thankful for this video installation tutorials. Appreciate. Warp terminal works!! Everything else works, except my stable diffusion doesn't generate any image hahaha...
Lol, Hi! What error is showing on the terminal when you press the generate button?
So thankful dear. If it wasn't you. None of this would happen.
same issue here lol
Very cool! Thanks. Do you know if it is possible to train a Lora using this app on Mac?
Hi Miguel, training a model requires lot of power, so probably best using Colab or similar.
Question, what's the first line of code I need to type in the Terminal, after everything worked fine? Because now I all the time need to redo the whole installation process, while most files are already in place of course. I guess my question is very similar to the one from Laura Carnevali, but I didn't manage so far...
Hi, you don't need to rerun the all file, unless you want to update the folder from gitHub.
To run Stable Diffusion you need to go into the main directory:
>>> cd desktop/stable-diffusion/stable-diffusion-webui
(cd )
then run the ./webui.sh file
>>> ./webui.sh
@@LaCarnevali That worked, thank you very much Laura! Being a graphic designer, the Terminal and Warp are a bit of unknown territory for me. But thanks to you I managed :)
Hi Laura
Love from India.Thankyou for making for such info. videos!! i just wanted to ask if this works only on M1 Mac's or works on Intel mac too. asking before trying!!
Hi!!! Yes it does! The only difference is that Brew is going to be installed in another directory wrt to the video, so you need to use some additional code - but still easy! If you want to give a try, let me know if you need any help :)
hello! thanks for the info, this is some of the best out there right now. Just a heads up, when I try to copy code from your Warp console its hard to see what the commands are. This only comes up when I'm paused tho. Cheers!
Thank you, Jeremiah! Noted :)
Hi Laura. Many thanks for sharing. How can I know my github version and how to update it on Mac M1?
great tutorial! have you got the training to work? i have been trying to train the AI on my face but it keeps crashing when i start the training process.
I tried on Colab and worked okay. Traning the model requires lot of power.
@@LaCarnevali i'm using an 1M ultra 128gb ram. But I just went ahead and used my windows machine with a 3090ti in it. It blows the mac out of the water in terms of GPU speed.
CUDA's is what you need Popo. Just go with the Nvidia's !
@@fullflowstudios Yeah i figured that out real quick! i been using my windows machine for all AI stuff now, its so much faster!
Hi, great tutorial. One thing I'd like to know, is M1 capable of running controlnet? Do you intend to make a video about it?
Hi, the performance on M1 is not great, I would recommend to use an external gpu like colab/runpod
thank you for this very helpful tutorial. i do wonder how i can set up with cloud GPU such as lambda, just for better flexibility with extensions and i cannot seem to find tutorial online
You can use Google Colab (colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb) I ll make a video next week ;)
I love you. thank you.
What is the best settings to improve velocity of work for Mac M1?
Hey laura!
Do you get gpu utilization while training models? This has been my longest running issue with the web-ui, wondering if anyone else has come across it?
You can via MPS - but would recommend to use Colab or Linux/Windows with CUDA GPU
Ciao laura! Grazie per il video, super utile. Una domanda: in caso volessi istallare midjourney? Come lo installo?
midjourney non va installato, vai su Discord e attivalo :)
@@LaCarnevali Grazie! Non ho capito: posso attivare Midjourney e utilizzarlo in locale attraverso il terminale? Inoltre per ogni esportazione (attraverso Stable Diffusion) ci metto anche piu di due minuti se 512x512. Credo ci sia un problema forse?
This did not work out as expected. But it has been a big help! I'm having issues with git saying files can't be checked out and many other problems. Now I'm stuck with the Clip file not loading. Looks like there is something not quite right at Git. It takes a lot longer to download all these files too, about three hours and the video is only 7:18 just so you know. But thanks for the video, I would have never known how to even try this.
Hi Micheal, very weird. You might want to try Colab? See link below.
czcams.com/video/uFNz4y8Ebz4/video.html
Can I ask you about refreshing checkpoints ? I have only one in stable diffusion but I was download more. Restart the process doesn't work :(
Hello! Thanks for this video.
Can you install control net, decorum temporal net and sd cn animation on the mac as well?
Yes - depending on what mac you have (i.e., m1), you might have a slower performance
Laura! Thank you very much for your help! I have a question when you have a chance.. please! Once I've installed the Stable Diffusion local in my mac, what happens if my computer turns off, how can I easly open again stable diffusion without do all the process again?
Hi, you only need to rerun the webui.sh file :)
@@LaCarnevali Hi Laura, when I try that in Terminal after powering off and back on it says “command not found.” Do you know why I’d be getting that error?
@@Moneyline25 you need to dive in the main folder using the cd command, and then you type ./webui.sh as per the video :)
@@LaCarnevali I have the same problem, when I use cd command for the main folder, it says no such file or directory.
@@martinonmushrooms8302 Hi, where do you have the stable-diffusion-webui folder?
If it is on your desktop, you need to dive into it like that:
cd desktop/stable-diffusion-webui
Then you run the webui:
./webui.sh
Good video
Hey Laura! Thank you for so detailing instruction. On the final step terminal runs into error: Stable diffusion model failed to load. What might be the reason? By the way URL to run SB has been generated.
What's the exact error in the terminal?
@@LaCarnevali Error: 'NoneType' object has no attribute 'sd_checkpoint_info'. Please, check your schedules/ init values.
I heard Windows users enter something into the Webui batch that allows to upgrade automatically in Automatic "eleven eleven", can we do the same with mac?? Thank you for this tutorial. subscribed!!
I m scared that on Mac you need to git pull if you want to update it. I will double check :)