How to Install ComfyUI Mac (M1/M2/M3): Step-by-Step Guide

  Рет қаралды 8,881

Prompting Pixels

Prompting Pixels

Күн бұрын

#stablediffusion #aiart #generativeart #aitools #comfyui
ComfyUI is a flexible GUI to interact with Stable Diffusion models. Here's how you can install it on Mac so you can start to experiment with it today.
Time Stamps
Intro: 0:00
ComfyUI Repo: 0:17
Setting up Anaconda: 0:40
Installing Pytorch Nightly: 2:04
Validating the Installation: 2:39
Cloning the ComfyUI Repo: 3:34
Installing Requirements: 4:33
Launching ComfyUI: 5:08
Adding a Model: 6:02
Generating an Image: 6:50
Locating the Outputs Folder: 7:23
Outro: 8:39
ComfyUI Links:
Website: github.com/comfyanonymous/Com...
Installation Instructions: github.com/comfyanonymous/Com...
Apple Dev Docs for Pytorch: developer.apple.com/metal/pyt...
Important links:
- 👾 Discord: / discord
- 🌐 Website: promptingpixels.com/
- 🛠️ GitHub: github.com/content-and-code

Пікірлер: 68
@dominichawgood4976
@dominichawgood4976 2 ай бұрын
this worked perfectly. thanks for the putting the time in on a really helpful tutorial!
@AkshaySinghJamwal
@AkshaySinghJamwal 4 ай бұрын
Thanks, this was really helpful. Short, sweet and to the point.
@PromptingPixels
@PromptingPixels 4 ай бұрын
Awesome - try to actively cut the fluff in the videos as much as possible. Thanks for watching!
@aaronwang4641
@aaronwang4641 19 күн бұрын
Thanks so much for the turorial, really helpful and easy to follow up step by step!
@Oya-mw6vi
@Oya-mw6vi 2 ай бұрын
This was super helpful! Thank you so much.
@hanqianggeng7940
@hanqianggeng7940 6 күн бұрын
I made it! Thank you very much!
@Deluded_Penguin
@Deluded_Penguin 3 ай бұрын
thanks so much -- simple and easy to follow!
@FreddyOropeza
@FreddyOropeza 4 ай бұрын
This video was super helpful, thank you for the explainer and step by step.
@PromptingPixels
@PromptingPixels 4 ай бұрын
Happy to hear it did well for ya! Have fun now with all the workflow nodes - it can get a little messy!
@mibesto8039
@mibesto8039 Ай бұрын
Thanks for this concise and very helpful guide. I'm a total dweeb when it comes to working in the terminal, and your instructions made everything simple and straightforward. I still have so much to learn, but your video was the most helpful one I found to quickly and correctly load Comfy UI onto my MacBook Pro with an M1 processor.
@PromptingPixels
@PromptingPixels Ай бұрын
Thanks so much for the kind words! If you have any other questions, don't be a stranger - drop them in the comments/Discord/website etc and I'll try my best to get back.
@erdbeerbus
@erdbeerbus 3 ай бұрын
excellent way ... Thank you a lot!
@alejandrogarcia9472
@alejandrogarcia9472 Ай бұрын
Thanks you help me a lot
@lalitsingh-lp3cb
@lalitsingh-lp3cb 2 ай бұрын
thanks.. really helpful
@Qeu66yt-to8em
@Qeu66yt-to8em 3 ай бұрын
Muchas gracias. Por fin he conseguido instalar comfyui en mi mac.
@rgbin
@rgbin 4 ай бұрын
Thank you!
@talktechy
@talktechy Ай бұрын
Thanks, in my Mac M1. I installed Metal acceleration. i still got this error” torch.cuda.is_available() should be True but is False. xformers' memory efficient attention is only available for GPU “ when i tried to use some workflow. do you know how to fix ?
@RoopeBb
@RoopeBb 5 ай бұрын
Once again Great and well laid out video full of info and easy to follow. Started to learn comfy but just can’t get my head around all the nodes and noodles. I’ll keep fiddling around with it as everyone’s saying it’s very versatile and you can really dive deep with it. Any course or video recommendations?
@PromptingPixels
@PromptingPixels 5 ай бұрын
Hi again! Thanks for sharing - yeah the nodes can be a bit overwhelming at the start. Still wrapping my head around it as well. However, the very deconstructed nature of it makes it really nice to experiment and learn it at a much deeper level. Definitely will get a beginners video on ComfyUI once I have a little more confidence in the interface and the nuances. Honestly, I always like referring to dev docs first and foremost. Then either /r/stablediffusion or other videos that other creators have contributed to here on KZfaq.
@RoopeBb
@RoopeBb 5 ай бұрын
@@PromptingPixels Looking forward to watch your ComfyUI videos! That's a really good tip, I will definitely take a look at the dev docs and then Reddit. Thanks! :)
@alzamonart
@alzamonart Ай бұрын
Just stumbled across this video and was short and to the point -- Many thanks :) Two things though: 1) I tried installing dependencies (torch, torchaudio etc) via pip - python script gave errors. Uninstalled and reinstalled via conda - solved. 2) Forcing a floating point flag as in 5:23 actually gave me errors. Simple main.py worked fine.
@raviswami9852
@raviswami9852 Ай бұрын
How do you access the "manager" since it's missing in the base install ?
@Beauty.and.FashionPhotographer
@Beauty.and.FashionPhotographer Ай бұрын
off topic question: there is no such thing for us guys who won a mac, to roght click the preview image and get a popup window with all these options to save the image and do other things wit it? Right?
@thetravelerz
@thetravelerz Ай бұрын
what happens if i didn't select yes to allow conda to overwrite my scripts in the beginning
@freemoney8844
@freemoney8844 Ай бұрын
can i use this on my macbook air m1 2023 ?
@marcososa1986
@marcososa1986 38 минут бұрын
I was going insane because I couldn't even do step one, turns out, the firewall was blocking everything lol.
@user-dn8ml4uk6o
@user-dn8ml4uk6o Ай бұрын
I get an error when trying to install conda 2:04 Could not solve for environment specs The following packages are incompatible ├─ pin-1 is installable and it requires │ └─ python 3.12.* , which can be installed; └─ torchvision is not installable because there are no viable options
@Saroranch
@Saroranch 28 күн бұрын
it runs slowly is there any optimizations ?
@anokhatv7829
@anokhatv7829 Ай бұрын
Loved the video, but can someone explain the "Cloning the ComfyUI Repo" part. Still stuck there. I'm new to macbook
@PromptingPixels
@PromptingPixels Ай бұрын
Cloning is the same as copying it to your hard drive. There are a couple ways you could do this - either with the `git clone` command which was presented in the video. Or under that same box you could download the zip of the repo and then just extract it to your preferred location on the hard drive. Downside to this approach is that you can't perform a `git pull` command to update the repo when the author publishes updates to the repo. Alternatively, if you are having a hard time getting ComfyUI to work on your machine, Pinokio (pinokio.computer/) is super easy and offers a 1-click installer.
@erdbeerbus
@erdbeerbus 3 ай бұрын
the police sound at 6xx remembers me on my good times in the US ...
@zetaluxs
@zetaluxs 5 ай бұрын
💫
@michaelpatrignani7533
@michaelpatrignani7533 3 ай бұрын
Hi, i have a problem. Is the first time I use ComfyUI. When I shut down Mac, when I restart it, how can I open ComfyUI. When I open prompt and copy the line (python main.py --force-fp16) don't work... "python: can't open file '/Users/michaelpatrignani/main.py': [Errno 2] No such file or directory" was the error message.
@PromptingPixels
@PromptingPixels 3 ай бұрын
So sorry i am late on replying. Based on your error you need to run that command within comfyui directory (it appears you are running it in your home directory). In other words, you'll want to do this: 1. Open terminal 2. Navigate to the comfyui directory (i.e. cd tutorial/comfyui/) - or you can open the terminal and drag and drop the ComfyUI folder onto it and press enter. Your terminal should look something like this: ``` (content-ai) shawn@Shawns-MBP ~ % cd tutorial/ComfyUI (content-ai) shawn@Shawns-MBP ComfyUI % ``` 3. Run the command: python main.py --force-fp16 Let me know if this works.
@nunomota9838
@nunomota9838 7 күн бұрын
Conda not found 😢
@daancouzijn4626
@daancouzijn4626 2 ай бұрын
I'm lost at the step on 02:40. I've copy/pasted the code python script in Visual Studio Code and when I run the test in terminal, it says "[Errno 2] No such file or directory". Even though it is installed. What am I doing wrong?
@PromptingPixels
@PromptingPixels 2 ай бұрын
Sorry - was away for a bit. Hard to diagnose on a comment - but the error suggests you arent running the command in the right directory. For example, in terminal you often start at the root directory (i.e. typically your home folder - often the users name). But if you saved the script in downloads, documents, etc. you would need to navigate to that directory in your terminal window to run the script. Make sense? If not - chime back in or write a new comment so i dont miss it.
@sukfunman1464
@sukfunman1464 Ай бұрын
why install nightly built rather the stable release built? The fragility in the nightly built will get me into lots of unnecessary frustration.
@user-wc7md4tz3k
@user-wc7md4tz3k 4 ай бұрын
I'm a complete newbie to all of this and I just couldn't install it properly. I tried 5 different tutorials and each time i ended up with the same result. Comfyui starts but ckpt_name is unclickable. Then i used the help of chatgpt to uninstall and clean up, and do it all over again. I tried homebrew 3 times as well. Any sugestions? I've killed many, many, many hours doing this.
@user-wc7md4tz3k
@user-wc7md4tz3k 4 ай бұрын
I'm an idiot... got everything to work...
@kikuru3
@kikuru3 4 ай бұрын
@@user-wc7md4tz3k feel ya
@amirgnia5412
@amirgnia5412 5 ай бұрын
Are u be able to generate video on Mac with comfyUi?
@PromptingPixels
@PromptingPixels 5 ай бұрын
Hey there - just got around to testing this. At first I was getting an MPS error like you had mentioned in your other comment. However, this Reddit post provided some insight (www.reddit.com/r/StableDiffusion/comments/174xjxa/animatediff_mac_is_it_possible/) booted it with the following flags: python main.py --force-fp16 --use-split-cross-attention --normalvram And was able to successfully generate a very short 16 frame video at 21 seconds per iteration (5 minutes total). Here was the exact workflow I used to achieve this: promptingpixels.com/wp-content/uploads/2024/02/animatediff-mac-comment-reply-yt.json To note, was testing on an M1 Mac 16GB Ram (so should be able to work on your machine as well).
@amirgnia5412
@amirgnia5412 5 ай бұрын
@@PromptingPixels simply YOU ROCK
@JonaSaxify
@JonaSaxify 2 ай бұрын
conda command not found after trying to install Anaconda. I'm using zsh
@PromptingPixels
@PromptingPixels 2 ай бұрын
Might need to add path to .zshrc or simply restart terminal. Typically conda will add the initialize script there automatically. Let me know how it goes
@Chris001DooM
@Chris001DooM 4 ай бұрын
how is the performance of this in a M1 macbook pro?
@PromptingPixels
@PromptingPixels 3 ай бұрын
For a single image, its generally the same as WebUI. Roughly 15 seconds or so to generate a 512x512 image on an M1. Bigger performance gains and memory management with GPU on Windows.
@kennydesign4824
@kennydesign4824 4 ай бұрын
Thanks a lot, but I got this error after run it: AttributeError: module 'mpmath' has no attribute 'rational'
@PromptingPixels
@PromptingPixels 4 ай бұрын
This could be an upstream error. Did you get through the steps in this documentation developer.apple.com/metal/pytorch/ and also run pip install -r requirements.txt? Also, try upgrading mpmath with the following command: pip install --upgrade mpmath Let me know how it turns out!
@littleraindrops1739
@littleraindrops1739 4 ай бұрын
@@PromptingPixels i got this error too, then i run this code"pip install --upgrade mpmath", i got "command not found: pip", but i already install it and i 🥺
@PromptingPixels
@PromptingPixels 3 ай бұрын
This could be an environment issue, otherwise may need to run the following command to install pip: python -m pip install --upgrade pip
@ElevateMeEM
@ElevateMeEM 2 ай бұрын
does this work for imac
@PromptingPixels
@PromptingPixels 2 ай бұрын
M-series chips it should be no problem.
@maantube
@maantube 5 ай бұрын
Step 2 Install Anaconda terminal shows the following error > Could not solve for environment specs The following package could not be installed └─ torchaudio is not installable because it requires └─ pytorch 2.3.0.dev20240125 , which does not exist (perhaps a missing channel).
@PromptingPixels
@PromptingPixels 5 ай бұрын
This looks like pytorch would need to be installed (at the 2:04 mark of the video). I'd suggest running through that step again and reviewing terminal to see if any errors are mentioned in the output.
@PromptingPixels
@PromptingPixels 5 ай бұрын
This may also work: conda install torchvision -c pytorch
@maantube
@maantube 5 ай бұрын
thanks! @@PromptingPixels
@TheDanEdwards
@TheDanEdwards 5 ай бұрын
Thanks. Yet I can't help but notice that following IRS form instructions bear a striking resemblance to installing stuff like this. And the constant dependence upon interpreters like Python and scripts will only lead to underperforming software. Maybe someday someone will create a generative AI program that can be downloaded as a compiled program that makes full use of Apple Silicon and Metal.
@PromptingPixels
@PromptingPixels 5 ай бұрын
Definitely agree that it does feel overly complicated at times? However, I think a year from now we'll get more and more simple one-click install files that are much more beginner-friendly akin to Diffusion Bee and Draw Things. Yeah, it would be great to see more performant diffusion models on the mac. The text generation models seem to perform quite well - even folks getting Mixtral8x7b running on their machines with just ample RAM and no dedicated GPU.
@stanly19981005
@stanly19981005 4 ай бұрын
why not create a virtual environment specifically for comfyui
@PromptingPixels
@PromptingPixels 4 ай бұрын
Yes, you can definitely do (and should) do this. Thank you for pointing this out!
@MichaelCarson1
@MichaelCarson1 4 ай бұрын
No longer working if you updated to 14.4. Seems to be a GPU issue. Pretty big bummer.
@PromptingPixels
@PromptingPixels 3 ай бұрын
Appears booting with --cpu flag may resolve the issue: github.com/comfyanonymous/ComfyUI/issues/2992
@pikushaa
@pikushaa 3 ай бұрын
anu updates on this?
@PromptingPixels
@PromptingPixels 3 ай бұрын
@@pikushaa Looks like some sort of system bug going on - even Oracle is advising not to upgrade at this time to 14.4 (blogs.oracle.com/java/post/java-on-macos-14-4) Likely just going to have to wait until Apple applies a fix.
@djamesphotocraft3448
@djamesphotocraft3448 2 ай бұрын
nope did not work
@tinaliao6488
@tinaliao6488 Ай бұрын
I'm stuck on this step for install pytorch, ~ % conda install pytorch torchvision torchaudio -c pytorch-nightly. zsh: command not found: conda
@galaxyfrog-dot-org
@galaxyfrog-dot-org Ай бұрын
chatgpt it
Install ComfyUI on Mac (local StableDiffusion)
14:45
designers decode
Рет қаралды 574
Always be more smart #shorts
00:32
Jin and Hattie
Рет қаралды 49 МЛН
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 14 МЛН
Hidden FREE Mac Apps!
28:14
Snazzy Labs
Рет қаралды 166 М.
Install ComfyUI on Mac OS (M1, M2 or M3)
9:49
AIAnimation
Рет қаралды 46 М.
p5js and ComfyUI (How to use StableDiffusion, LCM Loras, SDXL Turbo)
11:40
How To Do "Hires Fix" In ComfyUI
5:45
Prompting Pixels
Рет қаралды 9 М.
macOS vs Linux | the ULTIMATE comparison
12:12
uncover+
Рет қаралды 220 М.
【Step by Step】 Install ComfyUI on Mac m1 m2 m3
12:00
time-chick
Рет қаралды 6 М.
ComfortUi 1 | Installing ComfyUi Portable and on Automatic1111
28:49
How To Do img2img Within ComfyUI - Beginner's Guide
4:23
Prompting Pixels
Рет қаралды 7 М.
WATERPROOF RATED IP-69🌧️#oppo #oppof27pro#oppoindia
0:10
Fivestar Mobile
Рет қаралды 17 МЛН
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 2,1 МЛН
Опять съемные крышки в смартфонах? #cmf
0:50
Хотела заскамить на Айфон!😱📱(@gertieinar)
0:21
Взрывная История
Рет қаралды 6 МЛН
Мой инст: denkiselef. Как забрать телефон через экран.
0:54