How to Install Stable Diffusion on M1 Macs

  Рет қаралды 78,794

Laura Carnevali

Laura Carnevali

Күн бұрын

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

Пікірлер: 562
@soumayaseghir4177
@soumayaseghir4177 Жыл бұрын
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.
@LaCarnevali
@LaCarnevali Жыл бұрын
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.
@soumayaseghir4177
@soumayaseghir4177 Жыл бұрын
@@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. 🥰
@LaCarnevali
@LaCarnevali Жыл бұрын
@@soumayaseghir4177 Happy it worked!! 😄🥰
@WildWorldTravelers
@WildWorldTravelers Жыл бұрын
@@LaCarnevali can you help me?? How you did it??
@enocorxl
@enocorxl Жыл бұрын
i have the same problem
@esmeraldosinforme
@esmeraldosinforme Жыл бұрын
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!
@LYREMusicGroup
@LYREMusicGroup Жыл бұрын
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!
@ShadowbannedMedia
@ShadowbannedMedia Жыл бұрын
How do you reopen it after you save it to the browser? Thanks in advance
@snaessens
@snaessens Жыл бұрын
Thank you Laura for this tutorial. I couldn't have installed Stable Diffusion on my Mac without your video! Just subscribed to your channel!
@aaron7006
@aaron7006 Жыл бұрын
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!
@2ndEarth
@2ndEarth Жыл бұрын
I looked in many different places to find good download instructions, your video is by far the best one, great job!
@UnrealOcean
@UnrealOcean Жыл бұрын
thank u laura, your instruction to use Warp to install made this very easy!
@nicolas.c
@nicolas.c Жыл бұрын
worked like a charm! best explanation straight to the point, thanks!👏
@subtledagger3052
@subtledagger3052 Жыл бұрын
Worked perfectly. Thank you very much!
@atony229
@atony229 Жыл бұрын
Worked exactly as you instructed. Thank you!
@kikilei2605
@kikilei2605 Жыл бұрын
Wow thank you very much for sharing the amazing tutorial! It worked perfectly😊
@mikopetras8607
@mikopetras8607 Жыл бұрын
Thank you, Laura, it worked perfectly. I needed to go for details and links to your page :)
@harmonicdissent
@harmonicdissent Жыл бұрын
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.
@rigorojas
@rigorojas Жыл бұрын
Thank you, your clear instructions worked for me.
@jejakpotret
@jejakpotret 11 ай бұрын
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
@allensong6693
@allensong6693 Жыл бұрын
thank you so much. Laura, i finally installed sd on my mac. it's working perfectly. many thanks.Best to you.
@TONG34567
@TONG34567 Жыл бұрын
woo. your article help me a lot! I have searched KZfaq for week. Thanks a lot!
@ismo3974
@ismo3974 Жыл бұрын
Amazing video, it worked perfectly on my end as well
@ellegolding7938
@ellegolding7938 5 ай бұрын
Managed to get it done after a few errors but got there at the end. Thank you for your video. Very helpful.
@jasonyang8007
@jasonyang8007 Жыл бұрын
Thank you so much, so clear and easy to follow :)
@bimyou2794
@bimyou2794 9 ай бұрын
After hours and hours .... also several times trying.. trial and error , 😭😭😭finally it works because of you!!thank you Laura 🔥🔥🔥
@JanAnton
@JanAnton 10 ай бұрын
You have just gained a new follower, Laura 😊 thanks for a very nice tutorial
@007deetee
@007deetee Жыл бұрын
Excellent tutorial thank you :)
@user-xy8ec8zw7w
@user-xy8ec8zw7w Жыл бұрын
It works perfect, thank you so much!
@Ying2022lan
@Ying2022lan 3 ай бұрын
Hello thank you very much for the tutorial. but every time I am installing it I run into this error" TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'. may I know how to resolve it?
@melissavanderree3655
@melissavanderree3655 Жыл бұрын
Thank you so much! Most effective tutorial ever on yt! :)
@TheFoodyFrog
@TheFoodyFrog Жыл бұрын
Thank you so much Laura I spent so much time but it works 🙏
@bardoof
@bardoof 2 ай бұрын
Thank you so much. It works without a problem.
@3ig3rand
@3ig3rand Жыл бұрын
Muchas gracias Laura, me ayudaste un montón!!!
@CaviarTaco
@CaviarTaco 9 ай бұрын
Awesome tutorial! Thank u Laura 🤗
@milenakuzior3083
@milenakuzior3083 10 ай бұрын
Laura, you help me so much! thank you !
@BigChangeGmbH
@BigChangeGmbH 11 ай бұрын
this was so helpful thanks so much!!!
@alexzakharov7911
@alexzakharov7911 Жыл бұрын
Super easy and useful. Thanks
@carolcross_aiexperiement
@carolcross_aiexperiement Жыл бұрын
Thank you. This is what I was looking for. I want to create some of the liquid, dreamy, animations.
@filmreifberaten
@filmreifberaten 6 ай бұрын
You are an angel. Worked like a charm. Thank you so much from Switzerland
@nadiatremoulet2977
@nadiatremoulet2977 11 ай бұрын
After several hours and several attempts BOOM...mil GRACIAS. Without you I would not have succeeded ☺
@merlinvongarnier1802
@merlinvongarnier1802 Жыл бұрын
Thank you so much for the video
@vincentdoms2712
@vincentdoms2712 10 ай бұрын
Very very nice and helpful ! Thx 😊
@ChocoSunsei
@ChocoSunsei 10 ай бұрын
Thank you ! Your video is very helpful :D
@CelestiC
@CelestiC 7 ай бұрын
Thanks a lot great tutorial ! Time to unleash my creativity :D
@Beetoe
@Beetoe Жыл бұрын
Grazie mille Laura!! Tutorial perfetto!
@syruptear7620
@syruptear7620 Жыл бұрын
Great Video! Thank you so much!
@warpdotdev
@warpdotdev Жыл бұрын
Great video. Let us know if you have any feedback or questions while using the Warp terminal!
@MR-cj7og
@MR-cj7og Жыл бұрын
Thanks a lot for your explanation ! You're so cool !
@appaloosa_
@appaloosa_ Жыл бұрын
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
@VoxerArt
@VoxerArt Жыл бұрын
could you guide me how to do this?
@oliverzhang6102
@oliverzhang6102 Жыл бұрын
Thanks! That's really interesting!
@Tyrell_ai
@Tyrell_ai Жыл бұрын
thank you so much! it works perfectly even on m2 Max apple
@arson363
@arson363 6 ай бұрын
Big Thanks!I can really install stable diffusion on mac! Yayyyy
@jamesbriggs
@jamesbriggs Жыл бұрын
great video!
@fred4838
@fred4838 7 ай бұрын
Thank you Luara just installed. How can I link my output folder to export to my external drive?
@raaaaah-gh2pi
@raaaaah-gh2pi 11 ай бұрын
Thank you, very helpful.
@atopng
@atopng Жыл бұрын
Great video!
@N3_r
@N3_r 4 ай бұрын
Thank you so muchhhhhhhh i subbed and liked
@valeriaparkhomenko1974
@valeriaparkhomenko1974 Жыл бұрын
thank you sooo much!
@nikolaiskiba2294
@nikolaiskiba2294 Жыл бұрын
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!
@LaCarnevali
@LaCarnevali Жыл бұрын
Hi, these are just warnings and are not relevant for Mac users. For more info >>> kzfaq.info/get/bejne/q8tdkqWFlavYmY0.html
@aouzestudio
@aouzestudio Жыл бұрын
Thank you very much!
@coolkoreamag
@coolkoreamag Жыл бұрын
thank you so much, it took me almost like an hour lol but yeahhh thanks to you it worked !!!
@JimmyHoussen
@JimmyHoussen Жыл бұрын
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.
@tsourleephotography
@tsourleephotography Жыл бұрын
Great video, thank you
@lalpremi
@lalpremi Жыл бұрын
Thank you, have a great day :-)
@kasetia21
@kasetia21 10 ай бұрын
Hi Laura. Many thanks for sharing. How can I know my github version and how to update it on Mac M1?
@LockBoyCinema
@LockBoyCinema Жыл бұрын
It worked thank youuuuu😁😁😁
@olafmueller5716
@olafmueller5716 Жыл бұрын
thank you for the tutorial :))
@rawstersnazer7645
@rawstersnazer7645 10 ай бұрын
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.
@kantaklaro4473
@kantaklaro4473 Ай бұрын
Hi Laura, I have quick question. On a i Mac M3 should I follow he same procedure described on this vid? Thanks!
@hola_maggi
@hola_maggi Жыл бұрын
awesome thank you !
@izcarus
@izcarus Жыл бұрын
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!
@LaCarnevali
@LaCarnevali Жыл бұрын
Thank you, Carlos! I m going to post soon a video to fix these small warnings when running SD! Happy you sorted :)
@cjsim2
@cjsim2 Жыл бұрын
You are a gem.
@dreamhackr8921
@dreamhackr8921 Жыл бұрын
thankyou so much
@stefanantonitsch7182
@stefanantonitsch7182 Жыл бұрын
THX for this video... 🙂
@videographerindubai
@videographerindubai Жыл бұрын
thank you laura
@SN-em9hx
@SN-em9hx Ай бұрын
Thank you! 2024 and it still works!
@milenakuzior3083
@milenakuzior3083 10 ай бұрын
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 :(
@THEARPE07
@THEARPE07 Жыл бұрын
great vid thank you very much for taking time and your effort, not many smart and pretty ladies in tech business :) thanks
@ddude2
@ddude2 Жыл бұрын
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
@LaCarnevali
@LaCarnevali Жыл бұрын
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?
@yalulin
@yalulin Жыл бұрын
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
@LaCarnevali
@LaCarnevali Жыл бұрын
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 ;)
@Adrian_Galilea
@Adrian_Galilea Жыл бұрын
Hey Laura, thanks for the tuto, I was wondering what was the performance on the m1/m2
@LaCarnevali
@LaCarnevali Жыл бұрын
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
@michaelwilliams1678
@michaelwilliams1678 Жыл бұрын
Thank you so much
@SebastiansBlog23
@SebastiansBlog23 11 ай бұрын
Thank you ! ;)
@ProductionsIndeed
@ProductionsIndeed Жыл бұрын
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!
@LaCarnevali
@LaCarnevali Жыл бұрын
Thank you, Jeremiah! Noted :)
@LeWorm45
@LeWorm45 Жыл бұрын
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?
@LaCarnevali
@LaCarnevali Жыл бұрын
I m not using my mac as mine (M1) is not powerful enough. M2 should be fine though!
@saroule
@saroule Жыл бұрын
Does the quality is it better than diffusionBee osx app?
@Buinhikl
@Buinhikl 2 ай бұрын
hi from germany, thank you so much for the tutorial. I got it installed and running just fine, but the next day, the web doesnt load. I copy paste the link and refresh, but it says Safari cant connect to the server. What should i do?
@Boondoggle14
@Boondoggle14 Жыл бұрын
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?
@LaCarnevali
@LaCarnevali Жыл бұрын
You can via MPS - but would recommend to use Colab or Linux/Windows with CUDA GPU
@user-ld6oe3of6x
@user-ld6oe3of6x Жыл бұрын
Very cool! Thanks. Do you know if it is possible to train a Lora using this app on Mac?
@LaCarnevali
@LaCarnevali Жыл бұрын
Hi Miguel, training a model requires lot of power, so probably best using Colab or similar.
@Zoltarman
@Zoltarman 8 ай бұрын
Hello laura. Please. Is there a Colab or something with a AI text to speech where I can past the text from a book and push a button for it to read? Google translator can do it, but I looking for a better version.
@dkamhaji
@dkamhaji 11 ай бұрын
Hello! Thanks for this video. Can you install control net, decorum temporal net and sd cn animation on the mac as well?
@LaCarnevali
@LaCarnevali 11 ай бұрын
Yes - depending on what mac you have (i.e., m1), you might have a slower performance
@marcoatmac
@marcoatmac 11 ай бұрын
GRANDISSIMA, Grazie!
@trant0101
@trant0101 4 ай бұрын
Hi i'm unable to generate images. Getting this pop up" NansException: A tensor with all NaNs was produced in Unet. This could be either because there's not enough precision to represent the picture, or because your video card does not support half type. Try setting the "Upcast cross attention layer to float32" option in Settings > Stable Diffusion or using the --no-half commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check." I'm using Mac mini M1
@gianlucapadulamaltempo618
@gianlucapadulamaltempo618 Жыл бұрын
Grazie grazie ❤
@vld-mr
@vld-mr 9 ай бұрын
grazie mille, Laura
@mattswork
@mattswork Жыл бұрын
Thank you so much for this! Unfortunately im getting right to the end and then it says RuntimeError: "LayerNormKernelImpl" not implemented for 'Half' ...any ideas :(?
@LaCarnevali
@LaCarnevali Жыл бұрын
Hi, run the code adding the --no-half option, i.e., ./webui.sh --no-half
@its.harlow
@its.harlow Жыл бұрын
Hi, thanks for sharing. I've however ran into an error stating that "ERROR: Could not find a version that satisfies the requirement torch==1.12.1 (from versions: none) ERROR: No matching distribution found for torch==1.12.1" how to I trouble shoot this?
@LaCarnevali
@LaCarnevali Жыл бұрын
Hi Joanna, you need to upgrade torch (probably need change environment). You can watch this video at min 6:30 as I am looking into this error and solving it: kzfaq.info/get/bejne/q8tdkqWFlavYmY0.html
@Excspiritual
@Excspiritual Жыл бұрын
Hi! Could you please help me out? I have macbook pro m2 and i want to make animated videos on stable diffusion but I don’t have an idea how. Could you please provide me some insights?
@MihaiLazar85
@MihaiLazar85 5 ай бұрын
Is working on big sur?
@kratossand-fd5br
@kratossand-fd5br 11 ай бұрын
thanks laura. the video is very helpful. i followed it and downloaded stable diffusion. the issue is that when i close my terminal and the web page, i am unable to open stable diffusion again with the same local link. what do i do?
@LaCarnevali
@LaCarnevali 11 ай бұрын
open the terminal, dive the in main folder using cd, and run ./webui.sh
@alexilgatto
@alexilgatto Жыл бұрын
Hi Laura, the installation went smooth, but I could get the stable diffusion page just the first time I ran it then, when I put the IP address ,says "unable to connect"... Do I have to install it on documents folder? I installed it on another partition. Thanks!
@LaCarnevali
@LaCarnevali Жыл бұрын
Hi Alessandro. Can you see any error popping up on your terminal?
@federica108
@federica108 11 ай бұрын
Hey Laura, I managed to install Stable Diffusion thanks to your tutorial! However, if I close the terminal app and turn off my computer, when I turn it on again, I cannot access the same URL anymore! Is there a command I need to write each time on the Terminal to be able to use Stable Diffusion? And the second issue is, I needed to install ControlNet and I put it in the folder extentions, but it does not recognise it in Stable Diffusion (it always tells that I need to install ControlNet to run specific commands). Do yo have any tips for this? Thanks 😘
@LaCarnevali
@LaCarnevali 11 ай бұрын
Ciao! You can initialise SD by diving into the folder with your terminal and running ./webui.sh. Regarding ControlNet, which one are you downloading?
@Rabhishekphotography
@Rabhishekphotography Жыл бұрын
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!!
@LaCarnevali
@LaCarnevali Жыл бұрын
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 :)
@EdvvinWang
@EdvvinWang Жыл бұрын
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...
@LaCarnevali
@LaCarnevali Жыл бұрын
Lol, Hi! What error is showing on the terminal when you press the generate button?
@EdvvinWang
@EdvvinWang Жыл бұрын
So thankful dear. If it wasn't you. None of this would happen.
@justsomegirlwithoutamustache
@justsomegirlwithoutamustache Ай бұрын
same issue here lol
SDXL in ComfyUI!
44:57
Laura Carnevali
Рет қаралды 9 М.
9 Powerful Mac Apps in 7 Minutes.
7:01
MacVince
Рет қаралды 54 М.
Пробую самое сладкое вещество во Вселенной
00:41
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 46 МЛН
How to Install Automatic 1111 Stable Diffusion Web UI on MacOS M1/M2
8:33
The Best Ways for Running SDXL on Mac
10:54
TechXplainator
Рет қаралды 2,4 М.
Revealing my Workflow to Perfect AI Images.
13:31
Sebastian Kamph
Рет қаралды 312 М.
Installing Stable Diffusion Web UI on Apple Silicon M2 - A1111
2:53
Mac Settings That ACTUALLY Make A Difference
11:23
FromSergio
Рет қаралды 409 М.
Intro to LoRA Models: What, Where, and How with Stable Diffusion
21:01
Laura Carnevali
Рет қаралды 187 М.
Super Easy AI Installer Tool 0.0.2 - Kohya's GUI
1:17
AiMedia
Рет қаралды 7 М.