-: All right, let me walk you through Comfy UI.
So, we're using Google CoLab to run this,
because to be honest,
I've struggled to get it to work on my Mac,
there are some issues there,
and it's built really to work on Windows.
Using Google CoLab you can run it on its own separate system
with an Nvidia GPU.
I would recommend, by the way,
you upgrade to CoLab Pro.
I haven't for this case,
just because I'm just running the most basic model,
the Stable Diffusion 1.5,
but if you wanna run Flux, or some of the other stuff,
it's a Stable Diffusion Excel,
then you're probably gonna run out of memory,
and will need to upgrade.
You go into this CoLab and it's pretty straightforward,
you just run this thing here to set up the environment,
and just create some space, and all these things.
So, if you look here, it's ComfyUI folder,
and it's got a different,
it's gonna download the models and stuff into here.
So, this is what you would have
locally on your computer as well
if you were running it locally.
And that seems to be all done.
And then you wanna choose which models you download.
So, in this case, for example,
it's downloading the Stable Diffusion v1.5,
and then it's gonna save that in the models/checkpoints.
You could uncomment this, so. (voice clips out)
Press Command + /, if you're on a Mac,
and then it would download that model as well.
I'm just gonna get Stable Fusion 1.5.
And then we also just need the VAE,
which is another kind of model that goes into models/vae/,
and that's to decode the image afterwards.
And there's a bunch of them in here there,
and you could add whatever it is you want as well,
like you could add Flux into it.
But just gonna run this, just gonna download the model.
You can see it's downloading here.
And if you were doing this locally, by the way,
you could download it into your ComfyUI folder,
into models, and then checkpoints.
And you can see it's downloaded it.
There's also the vae thing here,
and you can see that's been downloaded too.
Okay, now I'm gonna run this with Cloudflared,
I haven't been able to get the other way to run it working.
So, the other way is with a local tunnel, or CoLab iframe,
and this one worked just fine,
this Cloudflared example.
So, just going to run this.
What this does is it runs it locally on Google CoLab,
but then it creates a URL
where you can actually try this out on cloudflared.
So, that's pretty cool.
You're just gonna see that comes up with it.
Yeah, here we go, this.
And it's still loading.
Just gonna wait.
And what this is doing
is this is running the ComfyUI interface,
but then getting it to load on this URL,
and it takes a little bit of time to spin up,
you can see it's blank right now, it's still loading.
And while that's loading,
let me just talk to you a little bit
about how to get it running on your own local computer.
So, I recommend this guide,
"How to install Flux AI model on ComfyUI."
This is a stable diffusion art website,
so it should work great,
and they walk you through how to do it.
There's a few different things you need
when you're running the ComfyUI.
One is that you need to download the model,
which is what I already showed you,
and that goes into models and checkpoints.
And so, in this case it's this model.
And then you also need to load the interface,
like the workflow,
which is gonna make a lot more sense to you in a second.
Let me see.
Okay, here we go.
So, now this is loaded,
and this is an example of a workflow.
First of all, it loads the model.
We can see, there's just this one model here.
Any model that you add into your models folder
is gonna show up here.
Once you hit refresh, then it will update,
and if you had another model, it would show it in here.
And what these things are,
these are different nodes.
And the first node just loads the model.
The second node processes the prompt.
And then this one processes the negative prompt.
So, this would create
a beautiful scenery nature glass bottle landscape,
purple galaxy bottle.
That's the prompt.
And then we don't want any text or watermarks on there.
And then it initializes the image down here,
and then feeds all that stuff up into the KSampler,
which is where the actual kind of work happens
with StableDiffusion.
Then we have the VAE decoding.
You can see that this is like a little bit more complicated,
it shows the guts of the operation period
compared to automatic fill of 11,
where you can't really see a lot of this happening,
this actually gives you all the different steps.
And then it saves the image at the end,
so I'm just gonna click Queue Prompt,
and hopefully it works.
So, you can see,
it's lit in green where it's currently processing.
Cool, it did all that,
and now it's loading this.
Decodes, and then saves the image.
And here we go. There's the image.
So, we have that saved now.
And if we go back to our Google CoLab,
we should be able to see where the images are as well.
So, if we download this image,
then you can see it's the same one that we saw
in the interface.
So, that's loaded locally.
Now, the benefit of using ComfyUI
is that you do get a lot more control over this,
and this work is saveable and loadable.
So you could go and save this workflow,
or you could add new nodes, or whatever it is you wanna do.
You can kind of load, reset the view,
or kind of load in a bigger set of nodes,
and get to the point where you have a full workflow.
Maybe you wanna generate four images
instead of something else,
or maybe you want a change,
run some tests where you sample two different times,
or maybe for some workflows,
like for some models, you wanna add like, additional steps.
I mean, you can do all of that,
and then whenever you hit Queue Prompt,
then it's gonna run through
all the different steps in order.
And the nice thing about this
is you can go and load these workflows from other people.
So, if we go to top AI,
you can see an example of this where, you can see,
there's a bunch of different things in here.
These are different prompts.
We have the models.
But then you can also find ComfyUI workflows as well.
So, say for example, you wanted to make images like this,
then it has all the code diagram,
and you can see this one's a much more complicated one.
And you could go and download these models,
like they have a custom model here,
like a custom anime model that they created,
and then you can download the nodes.
You can download, here we go,
this version here, download that,
and then you could go back into ComfyUI,
and then click Load.
And then you can choose that from it.
That's quite useful, and adds to a lot of creativity.
People can find recipes of things that work,
and then they can share that with other people.
So, I don't use ComfyUI that much,
because it's a little bit overkill for my use case,
and I think the main people that use it
are people who are doing a heavy creative work,
people who are doing text to video,
or people who are doing other types of like,
hardcore image generation stuff with a lot of custom models.
So, it's worth checking out if you are going deep into that,
it's what most of the pros use.
But I wouldn't say I use it on a day-to-day basis.
I also found that it doesn't work quite well on Mac yet,
which I mentioned, so, hopefully, they'll figure that out,
but it's still fairly early days.