Install ComfyUI on Mac OS (M1, M2 or M3)

Фильм және анимация

This video is a quick wakthrough to show how to get Comfy UI installed locally on your m1 or m2 mac.
Find out more about AI Animation, and register as an AI creative for free at aianimation.com
------------------- -------------------- ---------------------
Times
00:00 Intro
00:37 Create a folder
01:00 How to use Terminal
02:12 Install Homebrew
03:25 Install Python 3.11
04:03 Install pip and setuptools if needed
04:43 Install Pytorch Nightly
05:30 Clone ComfyUI github repo
06:30 Install dependencies
06:52 Run
------------------- -------------------- ---------------------
Lines of code used:
Navigate Terminal directories:
pwd • Where are you now?
ls • list folders in the directory you're in.
cd • change directory
cd.. • change to home directory.
cd / • go to root directory.
cd (drag folder in) • goes to folder.
cd - • go back to where you were
Install Homebrew: Their website: brew.sh/
Write 'brew doctor' to test install.
Check installed pyrthon version:
python3 --version
Install Python 3.11:
brew install python@3.11
Install Pip:
python3 -m pip install --upgrade setuptools
Install Pytorch:
Get code here:
pytorch.org/get-started/locally/
Clone ComfyUI Git: (*make sure you're in the right folder)
git clone github.com/comfyanonymous/Com...
(**above url not cut off by KZread) github.com/comfyanonymous/ComfyUI.git
Install requirements:
pip3 install -r requirements.txt
Run ComfyUI: (make sure you're in the correct folder)
python3 main.py
or
python3.11 main.py

Пікірлер: 325

  • @ringdigital7088
    @ringdigital70887 ай бұрын

    Wow! I was almost ready to get my pc working ( which would be a total rabbithole in itself ), I am so glad you shared these steps with us. HUGE appreciation!!!

  • @FF-fd9nx
    @FF-fd9nx5 ай бұрын

    You. Are. Amazing. The instructions they give are so complicated. You made it super easy

  • @coldbluddjp
    @coldbluddjp8 ай бұрын

    You are a legend! I learned so much about terminal commands alone from this video, regardless of your effortless comfyUI installation guide. THANK YOU

  • @AIAnimationStudio

    @AIAnimationStudio

    8 ай бұрын

    Awesome, glad to here it :-)

  • @lucianachunlu6320
    @lucianachunlu63204 ай бұрын

    very helpful! ive been watching tons of videos trying to go through everything that comfyui need. this is the best one helping me to setup my mac for comfyui, and its definitly easy to follow. thank you !!!!!!

  • @alexlindgren1
    @alexlindgren19 ай бұрын

    Awesome tutorial covering all you need from start to finish, very much appreciated starting point.

  • @AIAnimationStudio

    @AIAnimationStudio

    9 ай бұрын

    Great. Thanks. I think I recorded as much for KZread as I did to have a reference for myself again in the future . . Enjoy the learning journey... it's pretty endless.

  • @sunnyrajput329
    @sunnyrajput3296 ай бұрын

    Incredible instructions - thank you so much for the very clear step by step guide. Absolute hero!

  • @craiggrella
    @craiggrella6 ай бұрын

    This was the most clear and concise tutorial for getting this running. Thank you!

  • @olgnovk
    @olgnovk7 ай бұрын

    This is definitely the best tutorial I ever seen. Thank you so much!

  • @Loam_
    @Loam_3 ай бұрын

    just went through this step by step and it worked exactly as needed- thank you so much!

  • @Nick-do5ii
    @Nick-do5ii8 ай бұрын

    Amazing man, really fast walktrough!! Got it working first go.

  • @haltandburn
    @haltandburn6 ай бұрын

    Thank you. You made this significantly easier than it would have been with other guides.

  • @kedixia
    @kedixia9 ай бұрын

    Thank you very much. I had an incomplete of ComfyUI and it worked in some cases but not in others. This video helped a lot.👍

  • @AIAnimationStudio

    @AIAnimationStudio

    9 ай бұрын

    Cool, glad to hear. So much to learn and try out once it's up and running, with Comfy UI manager, custom nodes, models, VAE's, Loras. But a lot of fun in a really evil hard work kinda way.

  • @Jasperrr7
    @Jasperrr78 ай бұрын

    This is awesome! It fixed my problems with loading some custom_nodes. Thank you so much sir!

  • @EmilyNilsen
    @EmilyNilsen8 ай бұрын

    I love your channel and tutorials, and now I have ComfyUI on my Mac. I hope you do make some intricate AI animation workflow tutorials using ComfyUI!

  • @user-kt2kz5qg4z
    @user-kt2kz5qg4z3 ай бұрын

    Thank you for showing me is such detail ! I loved the way you demonstrated dragging the folder over to terminal to get the URL correctly. I always have had trouble on OSX with finding the address of a file. Very irritating. You made it so easy.

  • @marcinkrupinski
    @marcinkrupinski6 ай бұрын

    Thank you for quick and easy to implement tutorial. Good job!

  • @uchiha879
    @uchiha879Ай бұрын

    OMG i've being waiting years for this

  • @MetaPuppet
    @MetaPuppet6 ай бұрын

    This helped me out a lot. Thanks for the guide!

  • @tonytitani410
    @tonytitani4108 ай бұрын

    YOU ARE THE GOAT! Been trying to do this for weeks! THANKS!

  • @AIAnimationStudio

    @AIAnimationStudio

    8 ай бұрын

    😅... I'll take that. Glad it helped

  • @boztikmedia8784
    @boztikmedia87845 ай бұрын

    wow my man i am forever greatful I came across this vid. appreciate you. HARD SUB!

  • @devon.online
    @devon.online9 ай бұрын

    OMG THANK YOU - so easy and concise, you're a gem

  • @oraocean
    @oraocean8 ай бұрын

    Thank you! following video is much clear than text! I use your tutorial, alter Homebrew to anaconda, and it works! And drag folder from finder to terminal, that makes things easier!

  • @svitlanatuchyna7154
    @svitlanatuchyna71542 ай бұрын

    Great explanation! Everything works and so simple to follow! Thank you a lot!!!

  • @HadassaCandiani
    @HadassaCandiani21 күн бұрын

    Absolutely amazing!! I was able to log in following every step!

  • @fototipsandinfo9437
    @fototipsandinfo94377 ай бұрын

    Thanks, I was able to get my M3 Pro Macbook working first time

  • @marcelruetschlin3577
    @marcelruetschlin35775 ай бұрын

    Great Tutorial . Keep up the good work :)

  • @DarrinYoxtheimer
    @DarrinYoxtheimer5 ай бұрын

    Great video. Thank you for sharing your hard work.

  • @obscuremusictabs5927
    @obscuremusictabs59277 ай бұрын

    Thank you. Worked like a charm.

  • @aligand
    @aligand8 ай бұрын

    Thank you for the very helpful tutorial

  • @jesusaguadoalvarez2621
    @jesusaguadoalvarez26219 ай бұрын

    Thank you soooo much, dude, I was going nuts and you helped me a lot.

  • @AIAnimationStudio

    @AIAnimationStudio

    9 ай бұрын

    Glad to hear it helped. I'll try and do a follow-up at some point, showing more of Comfy, installing the manager, models, custom nodes and some cool animation workflows.

  • @madsholst-og8pf
    @madsholst-og8pf12 күн бұрын

    Brilliant tutorial, so well paced and detailed. Thank you very much!!

  • @suken1019
    @suken10195 ай бұрын

    This is a Ultra Good Video! Thank you!

  • @khalidskalli3371
    @khalidskalli3371Ай бұрын

    Thanks a bunch:) easy and straight forward guide.

  • @JamyVodegel
    @JamyVodegelАй бұрын

    Extremely helpful! Thanks!

  • @m76r72
    @m76r726 ай бұрын

    Great tutorial thanks a lot!

  • @stevenn92
    @stevenn923 ай бұрын

    Thank you very much for making these clear instructions! I tried several times with instructions online and kept getting stuck with small code errors.... But got it first try with your video. THX! ^___^

  • @XxrkylexX
    @XxrkylexX7 ай бұрын

    thanks brother! str8 forward 🙌

  • @AndrewGoltz
    @AndrewGoltz5 ай бұрын

    Brilliant! Thank you very much!

  • @nic-ori
    @nic-ori9 ай бұрын

    👍Thanks. Useful information.

  • @roberthayes4312
    @roberthayes43125 ай бұрын

    You are the best - thanks for this video!

  • @ibrajimenez2098
    @ibrajimenez20984 ай бұрын

    Thank you! That worked! I'm about to get started . Subscription earned!❤❤

  • @AIAnimationStudio

    @AIAnimationStudio

    4 ай бұрын

    Brilliant. I'm hopngi to do some more Comfy based content soon.

  • @cryptophani1790
    @cryptophani17903 ай бұрын

    installed in single go, legend for a reason

  • @leventeditor
    @leventeditor9 ай бұрын

    the only tutorial you need for mac os,trust me

  • @mohdshahranbindaud8337
    @mohdshahranbindaud83376 ай бұрын

    Amazing! Thank you, man!

  • @GlobalProductionGEP
    @GlobalProductionGEP5 ай бұрын

    Amazing video!!!!! Thank you so much!

  • @krisnovachuk2685
    @krisnovachuk26852 ай бұрын

    thank you! with your tutorial is so easy to understand!

  • @ilyanemihin6029
    @ilyanemihin60297 ай бұрын

    Thanks for tutorial! It works) Some additions - it's needed to download default checkpoint model for start generation in default workflow, also command "python3.11 main.py --force-fp16" - will improve speed generation on Mac

  • @sltwtr806

    @sltwtr806

    7 ай бұрын

    will try it, thank you

  • @dustinrolstad752

    @dustinrolstad752

    5 ай бұрын

    I dropped a .safetensors file into the checkpoint folder, but it still says it's missing.

  • @koen.mortier_fitchen
    @koen.mortier_fitchen4 ай бұрын

    Thanks man. It all worked. That's rare to me :O

  • @onchainsherpa
    @onchainsherpa6 ай бұрын

    very useful! thank you so much

  • @JSS_Voodoo
    @JSS_Voodoo2 ай бұрын

    Very Helpful, thanks!

  • @MichaelMcGetrick
    @MichaelMcGetrickКүн бұрын

    Worked very well. Thanks for putting this together.

  • @illuminum8576
    @illuminum85768 ай бұрын

    Awesome, for some reason it said it installed python 3.11, but actually installed 3.10. It still worked when I removed the .11 in python3 main.py! Thank you

  • @AIAnimationStudio

    @AIAnimationStudio

    8 ай бұрын

    Great, glad to hear it.👍. It definitely takes a bit of trial and error, especially if you've installed other things in the past.

  • @dariodipaola8156
    @dariodipaola81562 ай бұрын

    Thanks a million.. no way I could do it by myself.. really helped, thx!

  • @AIAnimationStudio

    @AIAnimationStudio

    2 ай бұрын

    Cool!... glad it helped 👍

  • @IvanIschenko
    @IvanIschenko8 ай бұрын

    thanks a million! it works great

  • @prabhakarkumarjha5589
    @prabhakarkumarjha5589Ай бұрын

    Helped a lot, Thank you

  • @ThisIsRabbitHole
    @ThisIsRabbitHole6 ай бұрын

    You sir, are the best.

  • @TheBlackbeansoup
    @TheBlackbeansoup7 ай бұрын

    You sir, are the best. Thank you very much.

  • @AIAnimationStudio

    @AIAnimationStudio

    7 ай бұрын

    Thanks very much😅

  • @davidmallinson
    @davidmallinson8 ай бұрын

    so helpful, thanks so much

  • @kensiu1833
    @kensiu1833Ай бұрын

    Cheers mate great tutorial

  • @AIAnimationStudio

    @AIAnimationStudio

    Ай бұрын

    Thanks 👍... one day soon I'll hopefully post some new stuff.

  • @JefHarrisnation
    @JefHarrisnation6 ай бұрын

    Very helpful!

  • @tiatian8065
    @tiatian80658 ай бұрын

    Thank you for your sharing🥰

  • @NajishKhan1
    @NajishKhan120 күн бұрын

    Thank u very much brother

  • @galacticarchitech
    @galacticarchitech6 ай бұрын

    i am not computer savvy AT ALLL seriously you rock. I DID IT!! haha i felt so accomplished

  • @JunaidAzizChannel
    @JunaidAzizChannel26 күн бұрын

    Thank you! great tutorial. I got into an issue with installing pyTorch. Fixed it by making a virtual environment and installing it in the venv

  • @dmitrykarpov793
    @dmitrykarpov793Ай бұрын

    Thank you very much!

  • @sliq9814
    @sliq981412 күн бұрын

    Thank you so much!

  • @user-wu9wp5cq5u
    @user-wu9wp5cq5u2 ай бұрын

    super good job

  • @agtonugroho
    @agtonugrohoАй бұрын

    THANK YOU!

  • @skaramicke
    @skaramicke4 ай бұрын

    Thank you for this video! To contribute back, here's a bunch of timecodes you can put in the description to get chapters on the video. 00:00 Intro 00:37 Create a folder 01:00 How to use Terminal 02:12 Install Homebrew 03:25 Install Python 3.11 04:03 Install pip and setuptools if needed 04:43 Install Pytorch Nightly 05:30 Clone ComfyUI github repo 06:30 Install dependencies 06:52 Run

  • @AIAnimationStudio

    @AIAnimationStudio

    4 ай бұрын

    and we have a new winner of 'KZreadr of the day!!!' ... Thanks for that... I kept noticing I'd not added them each time I replied to a comment... but... well ya know.... never enough time.. Chapters added. Thank you.

  • @PieterWibaut
    @PieterWibaut7 ай бұрын

    thank you!

  • @Khu-Moo-Nart-Win
    @Khu-Moo-Nart-Win5 ай бұрын

    Thanks for the instructions! May I know how to uninstall all the things we just installed when I don't need them anymore?

  • @mikegrok
    @mikegrok8 ай бұрын

    1 month later, and it worked perfectly.

  • @AIAnimationStudio

    @AIAnimationStudio

    8 ай бұрын

    Good to know, hopefully it'll work for a while yet. 😀👍.

  • @MrOktony
    @MrOktonyАй бұрын

    Thank you!

  • @SamhainBaucogna
    @SamhainBaucogna7 ай бұрын

    Grazie!

  • @lucasvigliocco3074
    @lucasvigliocco30748 ай бұрын

    Thank you

  • @lKaos66
    @lKaos66Ай бұрын

    thanks man

  • @gabrielmorales930
    @gabrielmorales9309 ай бұрын

    thanks!

  • @tenicg7045
    @tenicg704523 күн бұрын

    thanks ❤

  • @Stellalife706
    @Stellalife7066 ай бұрын

    perfekt ,thanks

  • @jaimeortega8939
    @jaimeortega89397 ай бұрын

    Super useful, thanks. I only got stuck for a bit when cloning the repo. I had to create a github account, then read about access tokens (password wouldn't work on the terminal). But I got there in the end.

  • @necroversegames6133

    @necroversegames6133

    6 ай бұрын

    Can you help! I am stuck at this git clone part I have created a account but it still shows authentication failed

  • @quangvuong5219

    @quangvuong5219

    18 күн бұрын

    im also stuck at that point.. can you show us how to get through?

  • @tarthechef
    @tarthechef3 ай бұрын

    amazing amazing amazing

  • @joaopimenteljr3076
    @joaopimenteljr30766 ай бұрын

    tks man

  • @erdbeerbus
    @erdbeerbus8 ай бұрын

    great explanation! thank you ... I have tried to install the comfy MANAGER, and it runs ... :) but when I tried to install the nodes for "video combine" I missed the codecs I have on my pc: h264 and h265 and prores ... I only have gif and webp output options here on my m2 mac ... do u have an idea what I have to do? I assume I have to install ffmpeg ... cuz the codecs are in the directory //as josn files ... thx in advance for any help :)

  • @AIAnimationStudio

    @AIAnimationStudio

    8 ай бұрын

    Yeah that'll be related to ffmpeg. Getting that installed should solve it. Just restart ComfyUI once done. I just shared another video, which runs through running ComfyUI in the cloud via Vast. Essentially renting some 4090 GPUs. Whether you need that or not, the code used could be used locally for getting ComfyUI setup with models, custom nodes, etc etc. Might be useful. 👍

  • @denisgoga99
    @denisgoga995 ай бұрын

    Is it working also on the older MacBooks Pro without M chips, please?

  • @NicolasDelafraye
    @NicolasDelafraye5 ай бұрын

    Great help. Will it be the same with a i7 mac?

  • @odinsonkenobi
    @odinsonkenobi3 ай бұрын

    10/10

  • @manifixdesigns
    @manifixdesigns9 ай бұрын

    what's system requirements, how much gb need for complete installation

  • @DevValladares
    @DevValladares9 ай бұрын

    Could you also do do one installing ComfyUI Manager on mac? Would be so helpful, im stuck here now!

  • @DevValladares

    @DevValladares

    9 ай бұрын

    Edit: Nvm the linux install worked

  • @AIAnimationStudio

    @AIAnimationStudio

    9 ай бұрын

    glad you got it working. Yeah I might do a follow up soon. Plus one setting it up in the cloud so Mac users (or anyone) can rent multiple high end gpus to massively speed up generation.

  • @elgualicho
    @elgualicho3 ай бұрын

    thanks for your video! I noticed that you have a Stable diffusion webui folder, I have it also. I wonder if the models does work for comfy.

  • @MiaoJu
    @MiaoJu7 ай бұрын

    Awesome, thank you for the video! This is the most helpful video I've ever seen. Quick question: I downloaded sdxl model file and put it to checkpoint path. However, the generation rate is fairly slow which seems running on my CPU instead of M1/M2 chip. Might you know how to leverage my M1 chip by any chance? Thanks again!

  • @AIAnimationStudio

    @AIAnimationStudio

    7 ай бұрын

    Thanks very much. Quite a lot I could cover here. I'd recommend you checkout the new Pytorch Lora which can greatly increase generation speeds.(or even SD Turbo model which is going to evolve and get better and better) Also I think at the moment Nvidia PCs are better able to produce things more quickly. But with the right workflow setup I'm getting good speeds on my Mac.

  • @MiaoJu

    @MiaoJu

    7 ай бұрын

    @@AIAnimationStudio Thank you for your kind reply. Do you have any suggestions about how to use M1 chip in ComfyUI? os.environ['CUDA_VISIBLE_DEVICES'] = str(args.cuda_device) I can see this line in the main file which might be related. Thank you so much!

  • @MiaoJu

    @MiaoJu

    7 ай бұрын

    @@AIAnimationStudio Sorry just print it out and it is mps, I guess there might be some other things I need to try. thank you for all the help!!

  • @ReidDesigns
    @ReidDesigns8 ай бұрын

    Thanks for this, was easy to follow. Just wondering what people’s render times are for image and animation on the M2 Mac’s? Like how long on average would a 512x512 image take to generate? Thanks

  • @AIAnimationStudio

    @AIAnimationStudio

    8 ай бұрын

    It varies a lot depending on the Sampler settings, CFG scale and steps. I'll try and share some times soon for an M2 , mac, but for a still image, it's pretty quick at 512 x 512. The newly released PyTorch Lora can MASSIVELY speed up generations, too. I shared a new video today about setting up ComfyUI on a rented GPU (or 8 GPUs). Which includes a Workflow with the new Lora included in the process. Which unlocks much faster generations and high-resolution output without the VRAM issues Mac Users are currently hitting.

  • @ReidDesigns

    @ReidDesigns

    8 ай бұрын

    @@AIAnimationStudio great thanks will look out for that

  • @obscuremusictabs5927
    @obscuremusictabs59277 ай бұрын

    EDIT: The best fix for crashing on an M1 Mac is to use Chrome. Don't use Safari. Leaving my previous comment because it still is the solution for being able to use masks. For anyone having crashing issues on an M1 Mac. I accidentally stumbled upon a fix. I couldn't get masks to work for which the solution is running the following in the terminal before you run the two main terminal commands: export PYTORCH_ENABLE_MPS_FALLBACK=1 Apparently it forces the Mac to default to the CPU. I started to notice that whenever it was in this mode it wouldn't crash and if it did it would crash after a long time. Whereas before it would often crash after just a few generations.

  • @zacharykrevitt7560
    @zacharykrevitt75609 ай бұрын

    I get this error when running the last step ModuleNotFoundError: No module named 'torch'

  • @DevValladares

    @DevValladares

    9 ай бұрын

    Figured it out!! ChatGPT is your friend here

  • @darthjager8883

    @darthjager8883

    6 ай бұрын

    You haven’t installed PyTorch nightly

  • @soundsl1kemusic

    @soundsl1kemusic

    4 ай бұрын

    got it too and I installed PyTorch nightly a several times, but I guess I will not work for me. can't run the app. can't generate a url. how can I see if I downloaded or installed PyTorch ?

  • @NicolasLuthy
    @NicolasLuthy5 ай бұрын

    Will i be able to create Video to video overlays with this on my mac? If so you would be a legend!

  • @VideoMonk.
    @VideoMonk.9 ай бұрын

    Hey! It works great! Do you know how do you install comfyUI manager on a mac? Thanks!

  • @AIAnimationStudio

    @AIAnimationStudio

    9 ай бұрын

    Hey, yeah. You've probably figured it out now but I'll try and make a video showing some basic setups for models, using ConfyUI, basic animation and I'll include installing the comfyUI manager.

  • @VideoMonk.

    @VideoMonk.

    9 ай бұрын

    Thanks but I didn't figure it out I gave up I couldn't find any tutorial online@@AIAnimationStudio 🤣🤣🤣

  • @jesusaguadoalvarez2621

    @jesusaguadoalvarez2621

    9 ай бұрын

    Was just about to ask the same question, I've trying to figure it out but I can't make it. Waiting for your new video. 🙂

  • @jesusaguadoalvarez2621

    @jesusaguadoalvarez2621

    9 ай бұрын

    And it's me again, I finally did it. I had obviously misplaced the ComfyUi Manager folder.

  • @razgon_v_million
    @razgon_v_million7 ай бұрын

    cant install, terminal - error: externally-managed-environment

  • @konayzar
    @konayzar6 ай бұрын

    I have this error "Torch not compiled with CUDA enabled" when I run main.py, could you please help.

  • @advomalik
    @advomalik9 ай бұрын

    Hey, thanks for the tutorial. When using ComfyUI on Mac does this method allow you to contain your workflows? From what I see everytime you have to build your nodes from scratch?

  • @AIAnimationStudio

    @AIAnimationStudio

    9 ай бұрын

    It should save the latest of where you were. Plus you can save the JSON file at any point and reload it.

  • @advomalik

    @advomalik

    9 ай бұрын

    @@AIAnimationStudio Awesome, thanks. Got it working. Any chance you're putting more tutorials out? note: yours was super helpful for a no-code beginner. would love to see you explore more workflows specifically Mac related. and if you can add videos on how to boost speed on Mac etc that will help too. cheers man, you're a blessing.

  • @AIAnimationStudio

    @AIAnimationStudio

    9 ай бұрын

    Yeah new in-depth tutorial is coming soon ish.

  • @ilitchdhoomon6246
    @ilitchdhoomon62466 ай бұрын

    Hello, are you guys experiencing long render time with SDXL checkpoints? I have an M2, on SD 1.5 based checpoint it generates images very fast, though i believe controlnet only work on SDXL checkpoints. Let me know if you guys have this issue also. Cheers!

  • @ffairchildd
    @ffairchildd5 ай бұрын

    How fast can macbook pro m3 generate ai art sdxl or 1.5? Can you do a benchmark comparison? Im worried of buying an m3 because SD only works good on nvidia gpus

Келесі