-: Okay, we're gonna learn how to make consistent characters.
The way this works is using in painting,
and this is just a prompt that I've done earlier,
I'm just gonna paste that in
and I'll explain to you what we're doing.
Consistent characters, you want to be able to
have the model, kind of use the same person again
and again in different situations.
When you're creating a character for the book or a novel
or a game, whatever it is,
you're creating a character for,
you want it to be consistent, you don't want it
to hallucinate, look a little bit different.
In each case, the trick is to ask it
to generate two images side by side of a character
and then, and then it's going to have two different frames,
which will be really helpful
because you've been able to remove one of those frames
and then use in painting to fill in different poses.
So I'm gonna show you how that works.
But the, the key is
that you put in into your prompt two images side by side,
and then you put your prompt
and then you typically,
it's helpful if you say like photo booth portrait
or something like that, just
so it gets in a consistent format of
where you can really see their face.
And then the other thing here is we're setting the aspect
ratio of two to one.
And that means instead of the say 5 12 by 5 12 image,
you're gonna get basically enough space for two of them.
And that's gonna be helpful as well.
So just waiting for that to run.
Okay. And we're just gonna choose the one that we like.
I think this guy at the top here looks like pretty cool.
This one looks a little bit AI.
I'm going to choose the top one. Gonna upscale that.
And you can see it's the same person,
it's just two different shots of the same person.
One of his hair is kind of down a little bit
and the shadow is a little bit different.
You already have now two images of the same face,
which is helpful, but you to really get the effect here,
you can click on Vary (Region).
And this is also possible in any other model
that supports in painting by the way.
So you're gonna go Vary (Region)
and then you're just gonna select
this whole area here,
to erase.
And then typically what you want to do is just kind
of change a little bit of the prompt, right?
Just gonna put this in here.
I'm just gonna change this instead of
two images side by side,
I'm gonna change it to side profile image
and then this is, everything else is the same, right?
So we haven't changed anything else.
So we'll see what that comes back with.
And so that prompt is just gonna be for the,
just the right hand side.
And because we're using, in painting it, it takes the
left hand photo as an input.
So it will make the same person
and it's the same prompt as well.
So it's doubling up on consistency here. And there you go.
You can see it diffusing in,
but you can see that it's the same person as well.
Now while that's waiting, I just want
to explain what you could do with this.
So one is you could just do this manually, right?
Like any type of shot you need,
if you need a zoomed out shot
or you need jumping from a building, whatever it is you need
for your creation, if you're making a novel
or some sort of game
or whatever it is, you could manually make these, right?
And, and then as long as you have one frame consistent,
you can keep making multiple frames and then up scaling them
and using what you have
and chopping them up into different pieces.
But the, the other thing you can do here is if you generate
enough of these images, you could then slice them
all, in Photoshop.
So you could, you know, chop them down the middle.
Now you have 2, 5, 12 by five 12 images
and you can use those to train a custom model.
If you have done the lesson on DreamBooth
or you understand how that works
and Stable Diffusion, you could actually now train a model
based on this character
and be able to replicate this character.
Because all it takes is between 10 and 30 images
of someone for it to understand the,
the character and understand the face.
That could be really powerful because then you would have a
custom model, you could then put
that character into any situation
and it would be consistent.
This is a really helpful trick
and once you understand it,
I think it's also a technique you can use in many other
situations where you need consistency to.
So if you need a consistent building
or you need a consistent backdrop
or whatever it is, you can always just keep one half the
image as the original
and then only in paint the other half of the image
to maintain that visual consistency.
So yeah, this is a really big unlock
for me and I use it all the time.
Hopefully you guys will find it useful too.