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

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey this is a slightly different video to normal and just wanted to share the process to be able to install comfy UI on an M1 or M2 powered Mac as I've just been through the process and there's a few hurdles to set up so you can make use of the amazing comfy UI and all the power and customization it has available as you can create your custom workflows to make use of stable diffusion and all the different things um out there to bring images and animation to life using AI so I'm just going to quickly run through steps to show you how you can set up comy UI and start learning the platform here we go okay so to start off with on your Mac I've opened up a finder window and in the home directory I'm going to create a new folder called Ai and this is where we're going to be setting up our comy UI stable diffusion adding any future models and things like that and this is going to be the base folder for any stable diffusion activity in the future and it's just a normal folder I'm then going to open up terminal on my Mac which you can also find in the utilities folder in your applications and this allows you to interact with the core of your computer run scripts navigate folders make changes and it's really useful for running AI tools particularly like stable diffusion and there is an equivalent of this console um this terminal for Windows or Linux but this is the Mac version I'm going to quickly share a few short codes that allow you to navigate around folders and files with with in terminal so initially if you type in PWD and press enter it'll list where you currently are located and I'm in the users John folder so my home folder you can type in LS and it will list any folders within that folder so you can then choose to navigate onto those you can type CD space for Slash and press enter and it will move to the root of your computer and you can type CD space and then grab a folder from finder and just simply drag it over so we could grab our new AI folder drag it over and it will give us the directory path here and we can press enter and it will move into that AI folder so anything we run here is taking place within that AI folder and then you can reference files there as well now before we can install various scripts to get comy UI up and running we need to have home brew installed on my Mac so you can head to the brew. sh website and you can copy the code here then hop back into terminal and paste that code and press enter and it will request your password enter your password and press press enter and just press enter one more time and it will install the files for Homebrew and without getting into the weeds of what Homebrew is it's just a handy tool that's available for free that allows you to install other scripts and code on your computer such as Python and pip pie torch and other things okay so then within 10 to 20 seconds that's now fully installed which is great and you can check that it's working by going through doctor and pressing enter and it's going to well in my instance it says command not found and if you look up here there is a little warning that Homebrew is not in my path and if you move down it says next steps run this command in your terminal to add it to your path so I can copy the code here paste it here and press enter I can then write Brew doctor again press enter takes a second or two your system is ready to brew so home brew is now up and running great we then want to install python version 3.11 as at the moment that's the latest version that works well with comfy UI so first of all I'm going to type Python 3 space-- version just to see what versions currently installed on my computer and I've got version 3.9.3 so we need to upgrade to 3.11 and we can do that using home brew by typing Brew space install python at 3.11 and pressing enter and this takes a little while as it downloads the files for Python 3.11 and installs it to your computer okay so that's now fully installed and then we want to install pip which may actually come with python 3.11 I'm not sure or it might already installed on my system but I'll show you the process anyway and I'll include all this code in the video description below or via a URL link if it doesn't let me paste it so to install pip we're going to type pip 3 install space-- upgrade space pip space setup tools so that's going to install it and if there is one there already it's going to upgrade it press enter um and it says already satisfied it looks like it comes with 3.11 anyway but if you need to go through that step it's there if you need it we then need to install pytorch um and we need to use the nightly version so the most recent version and that's based on what it says on the comfy UI web page um to be able to make use of the metal graphic support built into the latest Maxs and to get the code for this I could include it below but also if you head over to py torch. org and go to the get started page you can choose your setup so there's a stable version but we want the latest nightly version we're on a Mac we're using pip Python and it gives us the code we need here so we can just copy that jump back into terminal and paste press go or enter um and again as I've already installed it it's already there and again it might be coming with python 3.11 I'm not sure but that's steps there if you need it we then want to clone the GitHub the repository for comy UI into our AI folder so as you can see I'm already in the AI folder here which is great and we're going to clone the latest repository and to do that I'm going to write get clone and then this URL here which I assume will be the most recent for a while yet but um it may change in the future but we can copy that code and press paste and press enter and it will very quickly download a few files and then if we bring up finder and look in our AI folder we now have a comfy UI directory and in there we have various files including a requirements. text file which will list various dependencies that we need to make use of comfy UI now to run this file we need to move into the comy UI directory so that terminal can see that file down in terminal type CD space grab hold of that folder drag it over and press enter so it is now within that comy UI folder and then write pip 3 space install dasr requirements. text and press enter and again it looks like as I've done this before it's already downloaded those various files but that's a step you would go through and it would go through and download all those files from the internet so that they're locally available to run comy UI and then jumping back into finder in that comy UI folder you will see there is a main. python file main.py and that's how how we're going to run com for UI and open it up in our browser so back in terminal as a last step to start com for UI we're going to write Python 3 main.py but as I know I've got an earlier version of python installed as well I'm actually going to type in three1 so it knows a specific version of python we want to use and press enter and there we go nice and quick and it's given us a URL that we can copy so I can paste the URL up here press enter and there we are we are now fully into com for UI and we can move nodes around and start The Learning Journey of figuring out how this all works if you're interested in this this is the process to go through and get it working on a M1 or M2 Mac one last thing if you do turn your computer off or you close your browser and you want to restart comfy UI again just open up terminal if you can spell it type CD space drag in your comfy UI folder so it moves to the correct directory and write out your code Python 3 main.py or in my instance Python 3.11 and press enter and again very quickly it will give you the URL to open up compy UI in your browser and when this all goes wrong as it inevitably might do for you depending on which versions of python are needed what's already installed on your computer things like that I highly recommend going over to chat GPT pasting in any error codes any code you're working with and it can help guide you through some of the steps to solve any issues you might face you could also go there and just type in please help me install Homebrew python 3.11 pip 3 py Tor KN Lee and comy UI on an M1 or M2 Mac it will give you various bits of code to help you out okay and that brings me to the end of the video hopefully this has been helpful and if you are looking to set up comfy UI using your M1 or M2 Mac this process has helped make it a little bit clearer and hopefully you don't hit too many problems in the process and you're able able to load up the interface and start learning how you can make cool AI imagery or animations using stable diffusion and comfy UI lots and lots to learn um if you are interested in videos like this and other intricate AI animation workflows please press subscribe like check out the rest of the channel come and say hello on the Discord and if you are creative making some cool Aid driven animation please head over to AI animation. comom where you can register for free and build a portfolio and potentially win client work in the future as the platform develops there as well all right thanks very much have an awesome day [Music] cheers
Info
Channel: AIAnimation
Views: 27,274
Rating: undefined out of 5
Keywords: ai animation, 3D ai animation, animate ai image, ai character animation, ai animation workflow, generate ai animation, bring ai image to life, ai image animation, turn ai image into video, ai animation tutorial, artificial intelligence animation, ai animation 3D, stable diffusion, comfyui, comfy ui, Automatic1111, A1111, install comfyui on mac, comfy ui on mac os, comfy ui M1, M1, M2, install ComfyUI on mac, how to install comfyui, M3
Id: m9jg1fdOiVY
Channel Id: undefined
Length: 9min 49sec (589 seconds)
Published: Thu Oct 12 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.