Instructor: Okay, let's learn about
Midjourney in painting.
So it's not actually called in painting a Midjourney,
although it is the same sort of feature as
what you get in Dali or Stable Diffusion.
So first we're gonna generate an image,
let's say a man standing or let's say sitting on a bench
in a nice park in surrounded by skyscrapers.
So first we're just generating an image
and we're gonna use that image
to make some edits in painting,
just while this is generating,
the process of in painting is really an iterative process.
You might do multiple times when you're generating an image
and you're taking a part of the image that you don't like
or you need to change slightly and then you are erasing it
and then regenerating that specific section.
So we're gonna take one of our images
and we're going to set this up
so that we can use in painting
and make some of those changes.
Let's see which image we want to use.
I really like this image here,
so I'm gonna upscale version two here.
And while that's running as well,
you need to set something up.
If you haven't done this already, if you press forward slash
and then you go into prefer remix,
you need to turn that on
and if you have that turned on, then you can then
you'll get this option here to vary region.
All right? Once you've upscaled, you get the option to
vary region and you can then make changes.
So if we click very region, it's gonna open this panel.
And there's something I don't like about this image,
which is I don't want it to be a man,
I want it to be a woman.
We have an option here.
We can actually just cut this person out
and we can say a woman sitting on a bench
and I'm gonna hit submit.
And what we've done there is we've masked
the specific part of the image that we want to regenerate
and then we're given a prompt that works specifically
for that region.
And it's important to note this,
that in some cases it's helpful to use your whole prompt.
It depends on how big of the image, of that section
that you're generating needs to be.
But it's, there's also sometimes useful to just,
you know, prompt for that specific section.
So in this case, I would say
I always start with just like the simple square lasso
and I just erase like pretty rudely
because Midjourney's very good at filling in the details
and regenerating and stitching it together
with the existing image.
And I also naively just use the same whole prompt
unless I run into trouble.
If you did run into trouble,
so in some cases you might find it will mess up
and it will put skyscrapers like
in that square that you generated,
it would be very good.
Then I would say start to delete,
iteratively delete certain parts of the prompt
and that way you're gonna stick with the same sorts
of styles.
It's gonna be much better.
The other thing is that you don't necessarily
have to put a prompt in here.
So I could, you know,
one of the things I do is I say
let's just put extremely detailed whatever
and then it will just fill in that section for you.
So let's upscale this. I think it's good.
It done a good job. These all look like women.
You can just see how well it works really out of the box.
So here we go.
Now we have a woman and that's working really well.
Now I'm gonna show you another type of lasso tool
that you can use here.
So before I use the square one
this time I'm gonna use this magic lasso.
And this is pretty good
because not always you want to like erase
really interesting parts of the image.
So you can see here for example,
that like I have this skyscraper here
and maybe I want to get rid of that.
So I'm just clicking and dragging here.
And to be honest, I don't quite like
the way that it does this 'cause it feels like
it should be like the magic lasso tool on Photoshop,
but it's not.
You can get used to it with a little bit of messing around
and I, here I'm just clicking and dragging
until I've highlighted the different parts
of the building that I want to get rid of.
I'm trying to get rid of this whole building.
Again, you don't have to be,
you can be pretty rough with it.
It's very good at stitching things together.
But in this case, I don't want any
of the other buildings to change.
I just want, you know, this to change.
So now I have this part erased
and I'm gonna say, in this case,
I'm gonna get rid of the rest of the prop.
'cause I don't want a woman sitting on a bench
like in the sky.
I'm just gonna say manhattan skyscraper
in the style of Johnny I've and Steve Jobs.
Okay. And now that's just gonna regenerate that building
specifically and fit it in with the rest of the image.
So that's really powerful
and you can do a lot with this if you can imagine
there's a lot you can do.
And a real creative who's working as an artist
or as a graphic designer will probably in paint
quite a few features of the image as they go.
They might even stitch multiple images
together and then import them.
That's also possible to do in Photoshop.
They have the generative fill feature
which is very similar to this.
And as I mentioned before, you have this ability
to do this in Dali as well as in stable diffusion.
In general, I would say that I do most of my in painting
in stable diffusion 'cause you get a lot more control
and you can use tools like segment anything which allow you
to kind of one click segment these things out.
But I would say this feature is really good
and it's a very good start from Midjourney
and I'm glad that they finally added it too.
Alright, so that's just generating,
Okay, here we go.
Interesting styles here. I don't think they quite got the
Johnny Ive like Steve Jobs vibe correct here,
but with a little bit of extra prompting,
I'm sure we could get something similar.
Cool. And we can actually just like with any other
image generation, we can just click Regenerate
or we could ask variations as well.
All of that is built in. All right.
But that's, that's in painting in Midjourney.
Hopefully you guys find it useful.
This feature will continue to improve,
so it might already be updated by the time you watch this.