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

preview_player
Показать описание
This video is a quick wakthrough to show how to get Comfy UI installed locally on your m1 or m2 mac.


------------------- -------------------- ---------------------

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

Write 'brew doctor' to test install.

Check installed pyrthon version:
python3 --version

Install Python 3.11:

Install Pip:
python3 -m pip install --upgrade setuptools

Install Pytorch:
Get code here:

Clone ComfyUI Git: (*make sure you're in the right folder)

Install requirements:

Run ComfyUI: (make sure you're in the correct folder)
or
Рекомендации по теме
Комментарии
Автор

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

coldbluddjp
Автор

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

ilyanemihin
Автор

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

ringdigital
Автор

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

skaramicke
Автор

Wow. As someone who never uses terminals and doesn’t know shit from Shinola about coding, I’m astonished I actually got the dang thing installed without pulling my hair out and breaking down to tears.

oldradiosnphonographs
Автор

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.

ClarkRuell
Автор

OMG i've being waiting years for this <3 thank you so much!

uchiha
Автор

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

illuminum
Автор

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

JunaidAzizChannel
Автор

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

alexlindgren
Автор

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

madsholst-ogpf
Автор

the only tutorial you need for mac os, trust me

leventeditor
Автор

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

haltandburn
Автор

Thank you! This was incredibly helpful and easy to follow along with! Amazing video! Will be going through your channel and subscribing :)

CuriousG
Автор

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

tonytitani
Автор

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

kedixia
Автор

Worked very well. Thanks for putting this together.

MichaelMcGetrick
Автор

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.

obscuremusictabs
Автор

Thanks a bunch:) easy and straight forward guide.

khalidskalli
Автор

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

zacharykrevitt