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.
@PromptingPixels7 ай бұрын
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.
@instamodis7728Ай бұрын
Maaan, I'm in love with you :)) i watched another tut and it didn't work. But yours is awesome :) Thank you.
@dominichawgood49768 ай бұрын
this worked perfectly. thanks for the putting the time in on a really helpful tutorial!
@aaronwang46416 ай бұрын
Thanks so much for the turorial, really helpful and easy to follow up step by step!
@AkshaySinghJamwal11 ай бұрын
Thanks, this was really helpful. Short, sweet and to the point.
@PromptingPixels11 ай бұрын
Awesome - try to actively cut the fluff in the videos as much as possible. Thanks for watching!
@marcosansalone3 ай бұрын
I'm a bit lost, at 3:13 you start doing stuff and is not clear. What is exactly the code you are writing in the terminal? I can't replicate that.
@zdufsАй бұрын
he saved the text in visual studio to Downloads folder and named it torch-test.py and ran it in terminal
@henriquematias19863 ай бұрын
i think extending more on where to download, how to download, what is a LORA, etcs, would be a great continuation for this video. I'll check if there anything on your channel regarding that! thanks a lot.
@m.thek.584828 күн бұрын
Thanks my friend, I am not sure if without your video I would have managed. 🙏
@PromptingPixels26 күн бұрын
You are welcome 😊
@NyxRuin7 ай бұрын
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
@HPMichalke4 ай бұрын
Thank you so much for your tutorial! that is a great starting point
@daancouzijn46269 ай бұрын
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?
@PromptingPixels8 ай бұрын
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.
@xxagonzxx4 ай бұрын
@@PromptingPixels Could you elaborate further on this? I want to fix this but this is so niche i'm afraid I won't be able to find help.
@FredBytes10 ай бұрын
This video was super helpful, thank you for the explainer and step by step.
@PromptingPixels10 ай бұрын
Happy to hear it did well for ya! Have fun now with all the workflow nodes - it can get a little messy!
@laurenthenryАй бұрын
Hello ! Thanks a ton for the tutorial. Worked like a charm. Question though : if we close the tab and close the terminal window. Is Comfy UI closed ? Or is it still running in the background and we need to enter a cmd in the terminal to kill it ?
@PromptingPixels26 күн бұрын
Howdy! Closing terminal will close the processes. Cmd+c in terminal also works to shut it down more gracefully.
@susanguo75784 ай бұрын
Thank you so much for your tutorial! It's really helpful.
@seis6-r8u5 ай бұрын
great tutorial thanks! could you recommend a Mac setup similar to having a desktop pc with a rtx4090?
@Rachelcenter15 ай бұрын
4:07 you lost me here because I dont have any terminal experience and you're linking it to some tutorial that you have on your computer but havent instructed us to put on our computer. I had downloaded comfy ui yesterday and had all kinds of errors so I'm trying to watch your tutorial instead and when I try to clone the repository into the place I had it installed yesterday, it tells me "fatal: destination path 'ComfyUI' already exists and is not an empty directory". Surprised this line of code doesnt just write over the current directory I already have.
@michaelpatrignani753310 ай бұрын
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.
@PromptingPixels9 ай бұрын
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.
@vinhalwayslearns44512 ай бұрын
why my mac dont have tutorial folder when finished install python? :(
@Qeu66yt-to8em9 ай бұрын
Muchas gracias. Por fin he conseguido instalar comfyui en mi mac.
@mit136speichenumdieweltАй бұрын
Thank you for the video. The topic is completely new to me and I would like to make AI Video Avatar for my website with my face, multilingual etc.. Would I be on the right track with this tool? Thank you for help and answer.
@PromptingPixels26 күн бұрын
Yeah, for short form videos ComfyUI can be used. In particluar you'd want to look at LivePortrait: github.com/kijai/ComfyUI-LivePortraitKJ Otherwise, for general AI videos take a look at Hunyuan - github.com/kijai/ComfyUI-HunyuanVideoWrapper. Hope that helps!
@mit136speichenumdiewelt25 күн бұрын
Thank you for coming back. I will have a look into this.
@yomi0ne2 ай бұрын
thank you, very concise tutorial
@jippalippa5 ай бұрын
Excellent tutorial; thanks! Generally speaking, have you found the experience on mac stable enough? I'm asking as automatic1111's implementation didn't always work properly on macOS (M1 Ultra).
@PromptingPixels5 ай бұрын
Honestly, for just basic txt2img or img2img tasks, I find that a Mac can work just fine. However, for anything labor-intensive (such as controlnets+loras, animatediff, etc.), I think it's best to rely on a Windows or Linux machine with a dedicated GPU, as the Mac isn't nearly as performant. If you're having app issues, I recommend checking out WebUI Forge (github.com/lllyasviel/stable-diffusion-webui-forge) or DrawThings (drawthings.ai/), as they might be a bit more stable - especially the latter of the two.
@AlexK-w7g10 ай бұрын
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.
@AlexK-w7g10 ай бұрын
I'm an idiot... got everything to work...
@kikuru310 ай бұрын
@@AlexK-w7g feel ya
@Prinack2715 сағат бұрын
Hi, I installed ComfyUI and installed the checkpoint. But when I run the queue, there's a popup said that "Error occurred when executing IPAdapterModelLoader: Weights only load failed. Re-running torch.load with weights_only set to False will likely succeed, but it can result in arbitrary code execution.Do it only if you get the file from a trusted source. WeightsUnpickler error: Unsupported operand 60" Ive tried updating comfy, downloaded the nodes directly from repository and so on. Cant find any info on this error." Hw do I resolve this? MY checkpoint is "v1-5-pruned-emaonly.ckpt" that I downloaded from hugging face
@VincenzoCosenzaАй бұрын
I'm thinking of buying a mac mini. How much RAM do you suggest for generating images?
@anokhatv78297 ай бұрын
Loved the video, but can someone explain the "Cloning the ComfyUI Repo" part. Still stuck there. I'm new to macbook
@PromptingPixels7 ай бұрын
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.
@the-healing-portal8 ай бұрын
This was super helpful! Thank you so much.
@romishriki-d3u5 ай бұрын
thank you. i I got stuck in the tutorial step, what should I do?
@guifeliper2 ай бұрын
Where do I download the juggernaut_reborn?
@guifeliper2 ай бұрын
I found some in hugging face but I get heckpointLoaderSimple: - Value not in list: ckpt_name: 'v1-5-pruned-emaonly.ckpt' not in ['Juggernaut Reborn.safetensors']
@raviswami98528 ай бұрын
How do you access the "manager" since it's missing in the base install ?
@RDUBTutorial2 ай бұрын
great video thanks....it took your video and 2 others ...mostly yours at the end for me (AI geezer noob) to get this to the point where I could get the Comfy UI to provide a URL and open the UI in a webpage. Hazzahhhh. Now off to figure out how to get some models. Question: suppose I don't have a lot of storage on my computer but have piles of adjacent external tb4 raid storage ...would i be able to store my models there and if yes how would I redirect that?
@hanqianggeng79406 ай бұрын
I made it! Thank you very much!
@Deluded_Penguin9 ай бұрын
thanks so much -- simple and easy to follow!
@yegorartyukh82923 ай бұрын
Hey, thank you so much for such a straightforward tutorial! I have a question concerning a problem that I have been struggling with for a while when trying to use Inpaint Preprocessor with Load Checkpoint (Realistic Vision V5.1 Inpainting) and ControlNet Model (control_v11p_sd15_inpaint) to inpaint a masked area of a loaded image based on a text prompt. Whenever the process reaches VAE Encode node, the error message emerges: "!!! Exception during processing!!! convolution_overrideable not implemented. You are likely triggering this with tensor backend other than CPU/CUDA/MKLDNN, if this is intended, please use TORCH_LIBRARY_IMPL to override this function Traceback (most recent call last): File "/Users/yegorartyukh/ComfyUI/execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/yegorartyukh/ComfyUI/execution.py", line 82, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/yegorartyukh/ComfyUI/execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/yegorartyukh/ComfyUI/nodes.py", line 296, in encode t = vae.encode(pixels[:,:,:,:3]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/yegorartyukh/ComfyUI/comfy/sd.py", line 346, in encode samples[x:x+batch_number] = self.first_stage_model.encode(pixels_in).to(self.output_device).float() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/yegorartyukh/ComfyUI/comfy/ldm/models/autoencoder.py", line 179, in encode z = self.encoder(x) ^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl return self._call_impl(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl return forward_call(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/yegorartyukh/ComfyUI/comfy/ldm/modules/diffusionmodules/model.py", line 520, in forward h = self.conv_in(x) ^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl return self._call_impl(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl return forward_call(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/yegorartyukh/ComfyUI/comfy/ops.py", line 93, in forward return super().forward(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/torch/nn/modules/conv.py", line 549, in forward return self._conv_forward(input, self.weight, self.bias) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/torch/nn/modules/conv.py", line 544, in _conv_forward return F.conv2d( ^^^^^^^^^ NotImplementedError: convolution_overrideable not implemented. You are likely triggering this with tensor backend other than CPU/CUDA/MKLDNN, if this is intended, please use TORCH_LIBRARY_IMPL to override this function" I was trying different solutions: Python versions 3.10, 3.11, 3.12. Different PyTorch versions. Setting the device explicitly to mps and/or to CPU in the main script. My current specs are: MacBook Air M3 2024 16GB macOS Sonoma 14.3 Python 3.11 PyTorch 2.5 Preview (Nightly) I will be incredibly grateful for any hints or help.
@amirgnia541211 ай бұрын
Are u be able to generate video on Mac with comfyUi?
@PromptingPixels11 ай бұрын
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).
@amirgnia541211 ай бұрын
@@PromptingPixels simply YOU ROCK
@thetravelerz7 ай бұрын
what happens if i didn't select yes to allow conda to overwrite my scripts in the beginning
@nunomota98386 ай бұрын
Conda not found 😢
@Saroranch7 ай бұрын
it runs slowly is there any optimizations ?
@asta_dev6 ай бұрын
I used the M1 Max with 32GPU and encountered significant performance issues while generating images and unable to generate videos. The GPU was running at 100% capacity and the process was very slow. Based on this experience, I don't believe that the M1 is suitable for AI generation.
@yourenotallowed74944 ай бұрын
All these AI programs as well as 3D softwares are optimized with NVIDIA CUDA cores. That’s why you’ll find significant performance issues on Mac. Mac GPU would take up to 200 secs to generate an image while an RTX 4090 would take 6 seconds…
@alejandrogarcia94727 ай бұрын
Thanks you help me a lot
@JonaSaxify8 ай бұрын
conda command not found after trying to install Anaconda. I'm using zsh
@PromptingPixels8 ай бұрын
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
@synthoelectro2 ай бұрын
very helpul, everything is different on mac ;)
@freemoney88448 ай бұрын
can i use this on my macbook air m1 2023 ?
@RoopeBb Жыл бұрын
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?
@PromptingPixels11 ай бұрын
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 KZbin.
@RoopeBb11 ай бұрын
@@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! :)
@supersquareАй бұрын
Thank you!!
@rgbin11 ай бұрын
Thank you!
@Beauty.and.FashionPhotographer7 ай бұрын
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?
@erdbeerbus9 ай бұрын
excellent way ... Thank you a lot!
@sukfunman14647 ай бұрын
why install nightly built rather the stable release built? The fragility in the nightly built will get me into lots of unnecessary frustration.
@kennydesign482410 ай бұрын
Thanks a lot, but I got this error after run it: AttributeError: module 'mpmath' has no attribute 'rational'
@PromptingPixels10 ай бұрын
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!
@littleraindrops173910 ай бұрын
@@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 🥺
@PromptingPixels10 ай бұрын
This could be an environment issue, otherwise may need to run the following command to install pip: python -m pip install --upgrade pip
@alzamonart7 ай бұрын
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.
@jasongaretthatcher5 ай бұрын
How did you install with conda? I'm trying and it's not working. Did you have to install them all individually?
@battenburgthrilled10 ай бұрын
how is the performance of this in a M1 macbook pro?
@PromptingPixels10 ай бұрын
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.
@milivanilli5 ай бұрын
Thnaks, you are an Angel!
@lalitsingh-lp3cb8 ай бұрын
thanks.. really helpful
@stanly1998100510 ай бұрын
why not create a virtual environment specifically for comfyui
@PromptingPixels10 ай бұрын
Yes, you can definitely do (and should) do this. Thank you for pointing this out!
@talktechy8 ай бұрын
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 ?
@SylvainBergeon4 ай бұрын
Thanks, it took me only 30mn to get it working and outputting my first image.
@MichaelCarson110 ай бұрын
No longer working if you updated to 14.4. Seems to be a GPU issue. Pretty big bummer.
@PromptingPixels10 ай бұрын
Appears booting with --cpu flag may resolve the issue: github.com/comfyanonymous/ComfyUI/issues/2992
@pikushaa10 ай бұрын
anu updates on this?
@PromptingPixels10 ай бұрын
@@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.
@sebrock4 ай бұрын
Works today on MacOS 14.6.1 (23G93)
@erdbeerbus9 ай бұрын
the police sound at 6xx remembers me on my good times in the US ...
@maantube11 ай бұрын
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).
@PromptingPixels11 ай бұрын
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.
@PromptingPixels11 ай бұрын
This may also work: conda install torchvision -c pytorch
@maantube11 ай бұрын
thanks! @@PromptingPixels
@tmquan1994 ай бұрын
I got this error, anyone who know how to fix it? TypeError: Trying to convert Float8_e4m3fn to the MPS backend but it does not have support for that dtype. Prompt executed in 100.55 seconds huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks... To disable this warning, you can either: - Avoid using `tokenizers` before the fork if possible - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
@TheDanEdwards11 ай бұрын
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.
@PromptingPixels11 ай бұрын
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.
@marcososa19866 ай бұрын
I was going insane because I couldn't even do step one, turns out, the firewall was blocking everything lol.
@6mystique5 ай бұрын
hey, thank you for this tutorial, however im complete beginner and from 3rd minute I'm really don't know what are you talking about and what you are doing. everything was so clear to me before but later... you do something what I completely not follow. ehh
@thebullhornstreamer47424 ай бұрын
My name is Shawn too, same spelling :)
@zeta.lifestyles11 ай бұрын
💫
@ElevateMeEM9 ай бұрын
does this work for imac
@PromptingPixels8 ай бұрын
M-series chips it should be no problem.
@LivingwithkenАй бұрын
i dont see the manager like you
@chrisstahl26532 ай бұрын
This tutorial is not suitable for beginners. You need to know at least some basic commands for the terminal, such as: ls = list the contents of the directory cd [name of the directory] = change to another directory cd .. = go up one directory Another thing: my terminal could not connect to the websites and I had to download through safari and then copy manually, may happen to you, be prepared. But the most frustrating thing is, you get to the end of the video and then he just says: Yeah and then copy your model over from SD WebUI. Not a word about how to get a model if you don't have one!!!! And it is not easy, just before typing this I tried to find out and gave up for now. I appreciate the effort, but letting me go through the whole installation process and then not showing me how to be able to actually start using the interface is NOT step-by-step
@djamesphotocraft34488 ай бұрын
nope did not work
@captainayaan4 ай бұрын
Thanks very much for the tutorial, really helpful and easy to follow up step by step!
@tinaliao64888 ай бұрын
I'm stuck on this step for install pytorch, ~ % conda install pytorch torchvision torchaudio -c pytorch-nightly. zsh: command not found: conda