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
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!!!
You. Are. Amazing. The instructions they give are so complicated. You made it super easy
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
8 ай бұрын
Awesome, glad to here it :-)
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 !!!!!!
Awesome tutorial covering all you need from start to finish, very much appreciated starting point.
@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.
Incredible instructions - thank you so much for the very clear step by step guide. Absolute hero!
This was the most clear and concise tutorial for getting this running. Thank you!
This is definitely the best tutorial I ever seen. Thank you so much!
just went through this step by step and it worked exactly as needed- thank you so much!
Amazing man, really fast walktrough!! Got it working first go.
Thank you. You made this significantly easier than it would have been with other guides.
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
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.
This is awesome! It fixed my problems with loading some custom_nodes. Thank you so much sir!
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!
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.
Thank you for quick and easy to implement tutorial. Good job!
OMG i've being waiting years for this
This helped me out a lot. Thanks for the guide!
YOU ARE THE GOAT! Been trying to do this for weeks! THANKS!
@AIAnimationStudio
8 ай бұрын
😅... I'll take that. Glad it helped
wow my man i am forever greatful I came across this vid. appreciate you. HARD SUB!
OMG THANK YOU - so easy and concise, you're a gem
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!
Great explanation! Everything works and so simple to follow! Thank you a lot!!!
Absolutely amazing!! I was able to log in following every step!
Thanks, I was able to get my M3 Pro Macbook working first time
Great Tutorial . Keep up the good work :)
Great video. Thank you for sharing your hard work.
Thank you. Worked like a charm.
Thank you for the very helpful tutorial
Thank you soooo much, dude, I was going nuts and you helped me a lot.
@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.
Brilliant tutorial, so well paced and detailed. Thank you very much!!
This is a Ultra Good Video! Thank you!
Thanks a bunch:) easy and straight forward guide.
Extremely helpful! Thanks!
Great tutorial thanks a lot!
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! ^___^
thanks brother! str8 forward 🙌
Brilliant! Thank you very much!
👍Thanks. Useful information.
You are the best - thanks for this video!
Thank you! That worked! I'm about to get started . Subscription earned!❤❤
@AIAnimationStudio
4 ай бұрын
Brilliant. I'm hopngi to do some more Comfy based content soon.
installed in single go, legend for a reason
the only tutorial you need for mac os,trust me
Amazing! Thank you, man!
Amazing video!!!!! Thank you so much!
thank you! with your tutorial is so easy to understand!
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
7 ай бұрын
will try it, thank you
@dustinrolstad752
5 ай бұрын
I dropped a .safetensors file into the checkpoint folder, but it still says it's missing.
Thanks man. It all worked. That's rare to me :O
very useful! thank you so much
Very Helpful, thanks!
Worked very well. Thanks for putting this together.
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
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.
Thanks a million.. no way I could do it by myself.. really helped, thx!
@AIAnimationStudio
2 ай бұрын
Cool!... glad it helped 👍
thanks a million! it works great
Helped a lot, Thank you
You sir, are the best.
You sir, are the best. Thank you very much.
@AIAnimationStudio
7 ай бұрын
Thanks very much😅
so helpful, thanks so much
Cheers mate great tutorial
@AIAnimationStudio
Ай бұрын
Thanks 👍... one day soon I'll hopefully post some new stuff.
Very helpful!
Thank you for your sharing🥰
Thank u very much brother
i am not computer savvy AT ALLL seriously you rock. I DID IT!! haha i felt so accomplished
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
Thank you very much!
Thank you so much!
super good job
THANK YOU!
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
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.
thank you!
Thanks for the instructions! May I know how to uninstall all the things we just installed when I don't need them anymore?
1 month later, and it worked perfectly.
@AIAnimationStudio
8 ай бұрын
Good to know, hopefully it'll work for a while yet. 😀👍.
Thank you!
Grazie!
Thank you
thanks man
thanks!
thanks ❤
perfekt ,thanks
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
6 ай бұрын
Can you help! I am stuck at this git clone part I have created a account but it still shows authentication failed
@quangvuong5219
18 күн бұрын
im also stuck at that point.. can you show us how to get through?
amazing amazing amazing
tks man
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
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. 👍
Is it working also on the older MacBooks Pro without M chips, please?
Great help. Will it be the same with a i7 mac?
10/10
what's system requirements, how much gb need for complete installation
Could you also do do one installing ComfyUI Manager on mac? Would be so helpful, im stuck here now!
@DevValladares
9 ай бұрын
Edit: Nvm the linux install worked
@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.
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.
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
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
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
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!!
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
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
8 ай бұрын
@@AIAnimationStudio great thanks will look out for that
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.
I get this error when running the last step ModuleNotFoundError: No module named 'torch'
@DevValladares
9 ай бұрын
Figured it out!! ChatGPT is your friend here
@darthjager8883
6 ай бұрын
You haven’t installed PyTorch nightly
@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 ?
Will i be able to create Video to video overlays with this on my mac? If so you would be a legend!
Hey! It works great! Do you know how do you install comfyUI manager on a mac? Thanks!
@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.
9 ай бұрын
Thanks but I didn't figure it out I gave up I couldn't find any tutorial online@@AIAnimationStudio 🤣🤣🤣
@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
9 ай бұрын
And it's me again, I finally did it. I had obviously misplaced the ComfyUi Manager folder.
cant install, terminal - error: externally-managed-environment
I have this error "Torch not compiled with CUDA enabled" when I run main.py, could you please help.
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
9 ай бұрын
It should save the latest of where you were. Plus you can save the JSON file at any point and reload it.
@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
9 ай бұрын
Yeah new in-depth tutorial is coming soon ish.
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!
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