How to Install Stable Diffusion on M1 Macs

Sdílet
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

Komentáře • 561

  • @soumayaseghir4177
    @soumayaseghir4177 Před rokem +15

    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  Před rokem +13

      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 Před rokem +3

      @@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  Před rokem +2

      @@soumayaseghir4177 Happy it worked!! 😄🥰

    • @WildWorldTravelers
      @WildWorldTravelers Před rokem +1

      @@LaCarnevali can you help me?? How you did it??

    • @enocorxl
      @enocorxl Před rokem +3

      i have the same problem

  • @aaron7006
    @aaron7006 Před rokem

    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!

  • @LYREMusicGroup
    @LYREMusicGroup Před rokem +2

    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 Před 11 měsíci

      How do you reopen it after you save it to the browser? Thanks in advance

  • @esmeraldosinforme
    @esmeraldosinforme Před rokem +2

    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!

  • @snaessens
    @snaessens Před rokem +3

    Thank you Laura for this tutorial. I couldn't have installed Stable Diffusion on my Mac without your video! Just subscribed to your channel!

  • @2ndEarth
    @2ndEarth Před rokem +1

    I looked in many different places to find good download instructions, your video is by far the best one, great job!

  • @UnrealOcean
    @UnrealOcean Před rokem +1

    thank u laura, your instruction to use Warp to install made this very easy!

  • @atony229
    @atony229 Před rokem +2

    Worked exactly as you instructed. Thank you!

  • @mikopetras8607
    @mikopetras8607 Před rokem +1

    Thank you, Laura, it worked perfectly. I needed to go for details and links to your page :)

  • @subtledagger3052
    @subtledagger3052 Před rokem +5

    Worked perfectly. Thank you very much!

  • @nicolas.c
    @nicolas.c Před rokem +3

    worked like a charm! best explanation straight to the point, thanks!👏

  • @allensong6693
    @allensong6693 Před rokem +1

    thank you so much. Laura, i finally installed sd on my mac. it's working perfectly. many thanks.Best to you.

  • @harmonicdissent
    @harmonicdissent Před rokem

    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 Před rokem +1

    Thank you, your clear instructions worked for me.

  • @kikilei2605
    @kikilei2605 Před rokem +2

    Wow thank you very much for sharing the amazing tutorial! It worked perfectly😊

  • @ellegolding7938
    @ellegolding7938 Před 5 měsíci

    Managed to get it done after a few errors but got there at the end. Thank you for your video. Very helpful.

  • @bimyou2794
    @bimyou2794 Před 9 měsíci +1

    After hours and hours ....
    also several times trying.. trial and error , 😭😭😭finally it works because of you!!thank you Laura 🔥🔥🔥

  • @jejakpotret
    @jejakpotret Před 11 měsíci +1

    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

  • @TONG34567
    @TONG34567 Před rokem +1

    woo. your article help me a lot! I have searched CZcams for week. Thanks a lot!

  • @ismo3974
    @ismo3974 Před rokem +1

    Amazing video, it worked perfectly on my end as well

  • @carolcross_aiexperiement

    Thank you. This is what I was looking for. I want to create some of the liquid, dreamy, animations.

  • @jasonyang8007
    @jasonyang8007 Před rokem

    Thank you so much, so clear and easy to follow :)

  • @3ig3rand
    @3ig3rand Před rokem

    Muchas gracias Laura, me ayudaste un montón!!!

  • @bardoof
    @bardoof Před měsícem

    Thank you so much. It works without a problem.

  • @nadiatremoulet2977
    @nadiatremoulet2977 Před 10 měsíci

    After several hours and several attempts BOOM...mil GRACIAS. Without you I would not have succeeded ☺

  • @JanAnton
    @JanAnton Před 9 měsíci

    You have just gained a new follower, Laura 😊 thanks for a very nice tutorial

  • @filmreifberaten
    @filmreifberaten Před 6 měsíci

    You are an angel. Worked like a charm. Thank you so much from Switzerland

  • @TheFoodyFrog
    @TheFoodyFrog Před rokem

    Thank you so much Laura I spent so much time but it works 🙏

  • @user-xy8ec8zw7w
    @user-xy8ec8zw7w Před rokem +1

    It works perfect, thank you so much!

  • @melissavanderree3655
    @melissavanderree3655 Před rokem

    Thank you so much! Most effective tutorial ever on yt! :)

  • @Beetoe
    @Beetoe Před rokem

    Grazie mille Laura!! Tutorial perfetto!

  • @CaviarTaco
    @CaviarTaco Před 9 měsíci

    Awesome tutorial! Thank u Laura 🤗

  • @BigChangeGmbH
    @BigChangeGmbH Před 11 měsíci

    this was so helpful thanks so much!!!

  • @007deetee
    @007deetee Před rokem +1

    Excellent tutorial thank you :)

  • @alexzakharov7911
    @alexzakharov7911 Před rokem

    Super easy and useful. Thanks

  • @milenakuzior3083
    @milenakuzior3083 Před 9 měsíci

    Laura, you help me so much! thank you !

  • @arson363
    @arson363 Před 6 měsíci

    Big Thanks!I can really install stable diffusion on mac! Yayyyy

  • @syruptear7620
    @syruptear7620 Před rokem

    Great Video! Thank you so much!

  • @merlinvongarnier1802
    @merlinvongarnier1802 Před rokem +1

    Thank you so much for the video

  • @CelestiC
    @CelestiC Před 6 měsíci

    Thanks a lot great tutorial ! Time to unleash my creativity :D

  • @Tyrell_ai
    @Tyrell_ai Před rokem

    thank you so much! it works perfectly even on m2 Max apple

  • @vincentdoms2712
    @vincentdoms2712 Před 10 měsíci

    Very very nice and helpful ! Thx 😊

  • @ChocoSunsei
    @ChocoSunsei Před 9 měsíci

    Thank you ! Your video is very helpful :D

  • @oliverzhang6102
    @oliverzhang6102 Před rokem

    Thanks! That's really interesting!

  • @MR-cj7og
    @MR-cj7og Před rokem

    Thanks a lot for your explanation ! You're so cool !

  • @warpdotdev
    @warpdotdev Před rokem +2

    Great video. Let us know if you have any feedback or questions while using the Warp terminal!

  • @raaaaah-gh2pi
    @raaaaah-gh2pi Před 10 měsíci

    Thank you, very helpful.

  • @appaloosa_
    @appaloosa_ Před rokem +5

    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 Před rokem

      could you guide me how to do this?

  • @nikolaiskiba2294
    @nikolaiskiba2294 Před rokem +1

    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  Před rokem +1

      Hi, these are just warnings and are not relevant for Mac users. For more info >>>
      czcams.com/video/ue-_BT0EtiY/video.html

  • @SN-em9hx
    @SN-em9hx Před 20 dny

    Thank you! 2024 and it still works!

  • @jamesbriggs
    @jamesbriggs Před rokem +1

    great video!

  • @aouzestudio
    @aouzestudio Před rokem +1

    Thank you very much!

  • @valeriaparkhomenko1974
    @valeriaparkhomenko1974 Před rokem +1

    thank you sooo much!

  • @lalpremi
    @lalpremi Před rokem +1

    Thank you, have a great day :-)

  • @coolkoreamag
    @coolkoreamag Před rokem

    thank you so much, it took me almost like an hour lol but yeahhh thanks to you it worked !!!

  • @atopng
    @atopng Před rokem +1

    Great video!

  • @N3_r
    @N3_r Před 3 měsíci

    Thank you so muchhhhhhhh i subbed and liked

  • @tsourleephotography
    @tsourleephotography Před rokem

    Great video, thank you

  • @hola_maggi
    @hola_maggi Před rokem

    awesome thank you !

  • @fred4838
    @fred4838 Před 7 měsíci

    Thank you Luara just installed. How can I link my output folder to export to my external drive?

  • @videographerindubai
    @videographerindubai Před rokem

    thank you laura

  • @olafmueller5716
    @olafmueller5716 Před rokem

    thank you for the tutorial :))

  • @LeWorm45
    @LeWorm45 Před 11 měsíci

    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  Před 11 měsíci

      I m not using my mac as mine (M1) is not powerful enough. M2 should be fine though!

  • @cjsim2
    @cjsim2 Před rokem +1

    You are a gem.

  • @LockBoyCinema
    @LockBoyCinema Před rokem

    It worked thank youuuuu😁😁😁

  • @Adrian_Galilea
    @Adrian_Galilea Před rokem +1

    Hey Laura, thanks for the tuto, I was wondering what was the performance on the m1/m2

    • @LaCarnevali
      @LaCarnevali  Před rokem +2

      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

  • @izcarus
    @izcarus Před rokem +4

    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  Před rokem +2

      Thank you, Carlos! I m going to post soon a video to fix these small warnings when running SD! Happy you sorted :)

  • @dreamhackr8921
    @dreamhackr8921 Před rokem +1

    thankyou so much

  • @ddude2
    @ddude2 Před rokem +1

    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  Před rokem +1

      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?

  • @oliversimon9800
    @oliversimon9800 Před 10 měsíci

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

  • @stefanantonitsch7182
    @stefanantonitsch7182 Před rokem

    THX for this video... 🙂

  • @vld-mr
    @vld-mr Před 8 měsíci

    grazie mille, Laura

  • @marcoatmac
    @marcoatmac Před 11 měsíci

    GRANDISSIMA, Grazie!

  • @THEARPE07
    @THEARPE07 Před rokem

    great vid thank you very much for taking time and your effort, not many smart and pretty ladies in tech business :) thanks

  • @JimmyHoussen
    @JimmyHoussen Před rokem

    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.

  • @michaelwilliams1678
    @michaelwilliams1678 Před rokem

    Thank you so much

  • @kantaklaro4473
    @kantaklaro4473 Před 18 dny

    Hi Laura, I have quick question. On a i Mac M3 should I follow he same procedure described on this vid? Thanks!

  • @SebastiansBlog23
    @SebastiansBlog23 Před 10 měsíci

    Thank you ! ;)

  • @gianlucapadulamaltempo618

    Grazie grazie ❤

  • @rawstersnazer7645
    @rawstersnazer7645 Před 10 měsíci

    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.

  • @EdvvinWang
    @EdvvinWang Před rokem +1

    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...

  • @user-ld6oe3of6x
    @user-ld6oe3of6x Před rokem +1

    Very cool! Thanks. Do you know if it is possible to train a Lora using this app on Mac?

    • @LaCarnevali
      @LaCarnevali  Před rokem

      Hi Miguel, training a model requires lot of power, so probably best using Colab or similar.

  • @Korfmaker
    @Korfmaker Před rokem +1

    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...

    • @LaCarnevali
      @LaCarnevali  Před rokem +1

      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

    • @Korfmaker
      @Korfmaker Před rokem +1

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

  • @Rabhishekphotography
    @Rabhishekphotography Před rokem

    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  Před rokem

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

  • @ProductionsIndeed
    @ProductionsIndeed Před rokem +1

    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!

  • @kasetia21
    @kasetia21 Před 9 měsíci

    Hi Laura. Many thanks for sharing. How can I know my github version and how to update it on Mac M1?

  • @PopoRamos
    @PopoRamos Před rokem +2

    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.

    • @LaCarnevali
      @LaCarnevali  Před rokem

      I tried on Colab and worked okay. Traning the model requires lot of power.

    • @PopoRamos
      @PopoRamos Před rokem

      @@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.

    • @fullflowstudios
      @fullflowstudios Před rokem +1

      CUDA's is what you need Popo. Just go with the Nvidia's !

    • @PopoRamos
      @PopoRamos Před rokem

      @@fullflowstudios Yeah i figured that out real quick! i been using my windows machine for all AI stuff now, its so much faster!

  • @Natelelouch
    @Natelelouch Před 10 měsíci

    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?

    • @LaCarnevali
      @LaCarnevali  Před 10 měsíci

      Hi, the performance on M1 is not great, I would recommend to use an external gpu like colab/runpod

  • @yalulin
    @yalulin Před rokem +1

    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  Před rokem +2

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

  • @masihhaha9225
    @masihhaha9225 Před rokem +1

    I love you. thank you.

  • @dmitrykarpov793
    @dmitrykarpov793 Před 24 dny

    What is the best settings to improve velocity of work for Mac M1?

  • @Boondoggle14
    @Boondoggle14 Před rokem +1

    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  Před rokem

      You can via MPS - but would recommend to use Colab or Linux/Windows with CUDA GPU

  • @TheSoggetto
    @TheSoggetto Před rokem

    Ciao laura! Grazie per il video, super utile. Una domanda: in caso volessi istallare midjourney? Come lo installo?

    • @LaCarnevali
      @LaCarnevali  Před rokem +1

      midjourney non va installato, vai su Discord e attivalo :)

    • @TheSoggetto
      @TheSoggetto Před rokem

      @@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?

  • @michaelcottam9519
    @michaelcottam9519 Před rokem

    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.

    • @LaCarnevali
      @LaCarnevali  Před rokem

      Hi Micheal, very weird. You might want to try Colab? See link below.
      czcams.com/video/uFNz4y8Ebz4/video.html

  • @milenakuzior3083
    @milenakuzior3083 Před 9 měsíci

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

  • @dkamhaji
    @dkamhaji Před 11 měsíci

    Hello! Thanks for this video.
    Can you install control net, decorum temporal net and sd cn animation on the mac as well?

    • @LaCarnevali
      @LaCarnevali  Před 11 měsíci

      Yes - depending on what mac you have (i.e., m1), you might have a slower performance

  • @WildWorldTravelers
    @WildWorldTravelers Před rokem

    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?

    • @LaCarnevali
      @LaCarnevali  Před rokem

      Hi, you only need to rerun the webui.sh file :)

    • @Moneyline25
      @Moneyline25 Před rokem

      @@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?

    • @LaCarnevali
      @LaCarnevali  Před rokem

      @@Moneyline25 you need to dive in the main folder using the cd command, and then you type ./webui.sh as per the video :)

    • @martinonmushrooms8302
      @martinonmushrooms8302 Před 10 měsíci

      @@LaCarnevali I have the same problem, when I use cd command for the main folder, it says no such file or directory.

    • @LaCarnevali
      @LaCarnevali  Před 10 měsíci

      @@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

  • @Sudip_Sarkar_Charles_Edwards

    Good video

  • @valerievnaa
    @valerievnaa Před 11 měsíci

    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.

    • @LaCarnevali
      @LaCarnevali  Před 11 měsíci

      What's the exact error in the terminal?

    • @digital.mente.
      @digital.mente. Před 9 měsíci

      @@LaCarnevali Error: 'NoneType' object has no attribute 'sd_checkpoint_info'. Please, check your schedules/ init values.

  • @John_Krone
    @John_Krone Před rokem +1

    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!!

    • @LaCarnevali
      @LaCarnevali  Před rokem +1

      I m scared that on Mac you need to git pull if you want to update it. I will double check :)