Installing ComfyUI start to finish in Feb 2024 - beginner Tutorial w/ best practices.

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys I got a little bit of a different video today things are moving very fast in the space as you know and some people are worried that they didn't install kyui properly and as luck would have it I have a brand new machine so I thought it' be a good opportunity to answer your question about manual versus portable install and answer some of your questions with regards best practice as of February the 11th 2024 so let's get going first you need to head to GitHub and click confy UI make sure you're on the confy anonymous repo and scroll down and this is your first option are you going to install manually or are you're going to install with a so-called direct link to download the simple answer is you're much better off using the portable install as opposed to the manual install and the reason for that is the manual install does not give you any benefits over the Standalone install in fact the Standalone install has benefits in the sense that the environment is all virtual and local to that folder so you're not going to mess up anything else your life is going to be easier uh so click that and it's downloading but I want to touch on something uh if you scroll a little bit further down you'll see that there is an option here to use the py toch nightly which has alleged performance Improvement to the author's credit it does say might and the answer is it has no real performance Improvement uh again as of February 11th 2024 from what I can tell so when you go and check out your uh releases page and this is an important Point you'll see that if you extend the assets folder you're going to find that at the very bottom the author does in fact provide you with that option to download the portable install with with the latest P torch now that's not the one we're using here we're downloading uh this one here the standard one with uh cu1 121 and that's the one that I highly recommend uh at at this moment in time you'll see it's probably this one we're downloading at this moment in time um this brings me to the next point so once you're download as finished uh we're going to need seven Zed what's that that's 7zip let me show you what it looks like okay here's szip make sure you're on 7-zip.com because seven zip support much longer file path it's got other advantages but 7even zip is the way to go so go and download that so once you've installed seven zip on your machine you'll find that it doesn't automatically open uh the 7even Z files that you've just downloaded for confy UI so a restart will fix it but it's much easier to go to tools options make sure 7 Z is selected hit apply I've already done it on my version press okay and you're all set all right so all you need to do now is right click your file choose open with hey seven zip is now here because it's Associated as an extension you click config UI Windows ET ET you press extract this window pops up personally I've created a little folder called AI That's where I put all my little AI tools uh that's where I put fukus Etc they all live in their own little virtual environment they all portable install life is much much easier this way so I highly recommend going that way and you press okay and it's going to take a long time so we're going to wait for this to finish and we'll be back after [Music] that all right so this is when I'm very happy to have invested in a pci5 port because I must say that was Blazing fast a fast SSD is just as useful as a fast GPU when you deal with models and things like that in SD through fi or any other tool because the files are very large so being able to get rid of them rapidly and moving them around rapidly is very useful so let's get rid of the compressed file we won't need that ever again and we can check what's inside o there's a very important file so let's go and have a look at what it says uh it tells us that we can use a GPU model or a CPU model but it will be slow and by slow it means unusable let's face it so you want to have an Nvidia GPU if you're following this tutorial I don't have an AMD GPU they're badly supported at this moment in time but it's still possible of course so it also answers your question as to how do you update it and we're going to touch on that in a second so let's start config UI in GPU mode by simply going to there this little icon and clicking it all right so this is going to take a little while so I'm going to fast forward it for you guys little word of warning here the first time it runs it's going to be very slow even if you have good specs like you see here uh couple of things to note you'll see that maybe in your version it says that it's not using what's called Transformers but it's written X formers and for that reason you might worry hey am I getting the best performance possible the truth is yes in reality since spy torch has been updated uh you don't need to use the Transformers uh there's absolutely no reason to do so uh it's going to cause you more headaches down the line than than not using them so rely on the default uh way of running confi UI you'll also notice that you have this option here to use the Double Dash notation to pass on parameter and one of them is going to be things like high vram low vram mode uh High vram mode all it does is if you have enough vram for example 24 gig uh it will try to use only the vram as opposed to using also your shared Ram which is very slow again here there's really no real advantage that I discovered from using this mode and the reason for that is if you do exceed your vram for whatever reason maybe you're using very large model maybe using uh a lot of different models on a single workflow you're not going to benefit from uh only limiting yourself to vram it's just going to run out of vram so once you've executed this automatically the confy UI window will open with the default workflow that's why we always see this little bottle this purple bottle in in most of the default workflows that's where it comes from and uh another thing I wanted to point out is that if for whatever reason you lose that window you can control click it and it will reappear so you never lose the other thing that um you should be aware of is that you can do this so for example I can use two different workflows and switch from one to the other run this one go back to that one it's not a problem you can do this there's absolutely no issue whatsoever with uh this this particular technique so feel free to do so you can have 20 windows open sometimes I have even 30 workflows open simultaneously what you can't do is run them simultaneously because of course it would exceed your Hardware capabilities all right so the next thing we're going to need is confy UI manager and I'm going to give you a few tips there that are not often mentioned uh the first one being that while confy manager is awesome and you should 100% use it I use it it's not always appropriate to use it and you'll see why when we get to the little bit more advanced of this tutorial so let's go and install it the first thing we need is to clone it uh where the custom node directory for configu is located and in order to do this we need to use git for Windows now there's two main ways to install git on Windows that will give you a command line interface that allows you to use git first one is git SCM which is sort of like the OG and then there's another one which is this one the git for windows. org personally I prefer this one because it gives you a cute little gooey a shell integration that works very well and a credential manager which kind of saves you having to install GitHub Windows which is another thing and uh yeah so go with that one but hey if you want to use CM go for that so let's go and download it and let's install it so quick little uh tip here when you install git for Windows I would recommend disabling scalar you're not going to need it uh also when you press next it's going to ask you which text editor you want to use so go for notepad if you don't have anything else at home is brilliant the problem is it's also superbly Sunset so don't use that I personally use Sublime but it's not free so go for notepad if you don't have anything else or install Sublime if you're very serious about developing and this is something you want to do in the future but again it's not free so keep that in mind so I'm going to go for Sublime and for the next options press next let get decide uh you want to choose uh this option which is the recommended option you want to use the bundled open SSH again the goal here is not to be perfect the goal here is to get you up and running with something that works and that you're not going to regret in a few months okay uh the open SSL Library the windows style checkout Min TTY fast forward and merge great credential manager you want the caching uh you don't want anything it's experimental we're not here to take risks okay press install off we go and I'll see you in a second so maybe this is of use to some of you but maybe not to everyone especially if you're new when you do work and you're trying to update your install or things of that nature you want to stop the server to do this you hit contrl C press y when it ask you if you want to terminate the bad job and you're back to your desktop all right so in order to to run this command now we need to go to our install so it's going to be under AI config youi portable and we're going to locate where we need to run the git command which is going to be under confy UI custom nodes from there what you do is you click here in the file explorer and you type CMD it's going to take you directly to this directory so you can work from there little trick here maybe you're not familiar with it maybe you are I find it quite useful I know I'm not using Powershell but this is again a beginner's tutorial just a quick note for those that are upgrading computers the way I am uh what you can do is you can take your config uui Windows pable folder and pull it over to uh the new computer that you want to use you can use a network connection or a USB stick whatever works and it will function it will work on the new machine as long as of course the underlying Hardware isn't too different you can't go from Nvidia to AMD you would have to uh obviously make certain modifications uh in my case however for the sake of this tutorial what I'm currently doing is I'm ping over all my models so by that I mean the contents of the models folder uh clip vision control Nets um my luras my checkpoints I'm a big fan of Jugger note so I'm currently pulling this in and I'll show you where to get your models uh from going forward but just so you know it's possible to do this upgrade process very easily if you're new to this you need to download a model first and foremost of course so for those getting started I recommend maybe something like epic realism I'm not affiliated with any model Creator but I know this one works well it also works with anime diff so if you do more advanced thing in the future it'll work nicely it's V is backed in its clip skip is known it's one it's really easy to use the good thing about this website again not affiliated with them but what's nice is that it tells you the prompt that they've used us proms aren't that important anymore quite frankly uh especially in light of the new development with things like IP adapter control Nets Etc but it's always good to know what sampler uh they've used what model was used how many steps were used the CFG scale the even the seed so you can sort of give it a shot yourself right so go and download this to do so just go on the model page select the version you want so the latest one of course in this case and press download so as you can see these are very large files and my models are still downloading to my machine as we speak from my previous one uh if you wanted an sdxl model uh maybe try juron note it's really easy to use as well so it's a good starter model um there's nothing wrong with it by the way you can do very Advanced things with it um and you know after that it's a creative Endeavor it's a process you're going to need to download luras and you'll see there's a lot of things to download if you're getting confused as to why I'm I'm saying model and checkpoint uh interchangeably that's because they are essentially checkpoints are the big models that make the images right the luras and Aller variations of luras are going to be like micro or mini models you can add on to a chain of floras to maybe draw a specific character you had in mind and these are things that you can train yourself it's really fun especially if you have a lot of vram there's a lot of technical details I'm not going to get into now because this is a beginner's tutorial but yes go and download your model and we'll come back hey this is Stefan from the future so unfortunately I'm in jail uh and this really sucks because I forgot to tell you that models have licenses and licenses are very serious uh you cannot use models that are not meant for commercial consumption in commercial projects you cannot do so without explicitly requesting permission from not only the person who put out the model on C AI but you should also uh make sure that that you obey all licenses specifically the sdxl I the base model that most of the cvti models are based on and as you'll see this license require you to pay about $20 uh a month I believe uh to stability AI if you want to use it in a commercial context things are very very vague right now when it comes to commercial usage I recommend you contact a lawyer if you intend to put things into production I certainly am myself uh in order to make sure you do everything by the book I'm not kidding this is important so after you downloaded your model and placed it into the correct folder which is under models checkpoints and you can place it anywhere you can even create subfolders personally I like to organize myself with my inpainting model my SVD my Turbo models my 1.5 models etc etc some of them will have yaml file attached some of them will have text file attach because I like to organize my models that way but the way you do your thing is the way you decide how you want to do your thing however they do have a specific placement because the various nodes will expect to find the correct model in the correct place so you can't for example put a face rester model into your checkpoints and expect that to work it's not going to work it's going to want to be in there and vice versa of course so once you've done that you go to back to your folder where you have stored confy UI and you run the app and let's see if we get any errors nope it's installing nicely it might need to download some initial requirements at the beginning uh let's try to zoom out a little bit here yep uh so some requirements are satisfied I mean this is a brand new machine some are not so it's kind of pulling things out and confy UI jumps out and appears and now obviously I have my manager that's been installed there will come a time where you want to update config UI itself I'm not talking about config UI manager I'm not talking about models I'm not talking about extra nodes I'm talking about config UI itself to do so you go to config UI Windows portable update and you simply double click the batch file ideally actually you would start it from a console so you can see what's going on there's another option which is confi and python dependencies but that one is not really recommended there is no real reason for you to run it at any given time that on the other hand you might have to run every day because that's how fast the developers confy Anonymous are moving and maybe even another extra tip you're not stuck to this sportable install and here here's what I mean by that back in uh yeah January the 5th you see so it's fairly recent I had a little problem where I had downloaded this version and I knew that there was a newer version because I could see it on GitHub repo but I couldn't run update that it didn't work so the developers kindly replied and said hey there is a way to do this so here's what I had to do if you want you can go to this thread I'll put it into the uh comments and I will teach you how to essentially go from the portable install to the git install so when you want to update config UI you can do so by just doing standard git pull and you're done so this is important because it shows that you're not stuck and you have that flexibility and you will want when you get more advanced to have that flexibility so thank you again to LTR data for this tip uh because this is quite useful so let's go back to confi and let's look at our manager uh if we click manager now we can install custom nodes I recommend personally that you install them one by one the reason for that is there's this weird how can I say uh Trend to download a very complex workflow everything goes red they tell you to install the missing custom node and everything will be fine well not quite that's not how it works I I'm afraid and if you don't believe me you just need to go to the endless GitHub threads from the poor node creators that are trying to do their best Fielding hundreds of tickets from people saying it doesn't work it doesn't work it doesn't work the truth is it's an early stage product let consider it to be an alpha so sometimes yes you can use the manager to install a missing node and sometimes it's best to install it manually and this is particularly true for uh for example the W node the W node are very popular but there is a recommended installation process the same is true if you want to do face replacement using reactor you're not going to have too much luck with the manager and the reason for that is the manager has no idea in what order things need to be installed but if we wanted to get started what we could do is find maybe a a cool node I person personally like RG3 so RG3 adds new reroutes new seed nodes it it's really cool let me show you how it works you just press install it's going to do its uh thing in the background so this is important to understand it's downloading the files the git files in the background for this node it's building essentially a node map right and nothing it stops there and here you see that it asks you to restart the server this is true for every node set so I know it's tempting to install every Noe that you're missing in one go but please don't do that you're going to end up regretting it do one by one and then go check what's going on into well that was very quick this is this machine is blazing fast and you can see that's actually on reboot decides to go and install things then and only then so if you have a multiple step process for a node it's not going to work so well so please please please be careful so now we have our G3 installed confi has refreshed itself you need to close the previous window or hit Refresh on an existing window and then if I double click this and I type RG3 there you go here's the reroute from RG3 why is this reroute better than the other reroute by the way because you can do like showing them the label you can rotate it you can do anything you want with it it's really cool I recommend it I'm not affiliated with anyone for that matter but yes so you're all set config UI is running you have a model so now let's go and load our checkpoint using the default workflow so in my case I have tons of model because I've just gotten them from my computer in your case maybe you only have let's take a 1.5 model this one the reason I choose a 1.5 model is because the clip text encode for sdxl model is slightly different and I want to keep it as clean as possible it's trained on 512 512 so make sure that this is reflected in your empty latent and simply hit Q and what's going to happen if all goes well uh yep there you go it's processed and it took a glorious 3 seconds to produce this beautiful image the standard default image in configu ey you're ready to go everything after that would really be adding complications and I will have separate tutorials on new nodes I tend to focus on more advanced things this is a rarity for me to do this please understand that it's not my full-time job I run an AI studio so yes here we go that's how you install confy UI on a brand new machine it wasn't that hard I hope you enjoyed all right that's another one done no I I told you I I plugged your website no I did I did you
Info
Channel: Stephan Tual
Views: 1,375
Rating: undefined out of 5
Keywords: AI, comfyUI, install, beginner, easy, github, custom nodes, comfymanager, sd15, sdxl, workflow, rgthree, ai, stable diffusion, artificial intelligence, machine learning, technology, tutorial
Id: Aa16JNuLk9U
Channel Id: undefined
Length: 23min 2sec (1382 seconds)
Published: Tue Feb 13 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.