6 Swap Backgrounds with AI - SCAI021
Sloup
1 follower
Feb 11, 2026
Phlearn – AI Learning Path - SCAI021\Phlearn – AI Learning Path\ultimate-guide-to-compositing-in-photoshop-using-ai-and-more\6-Swap Backgrounds with AI.mkv
Hey there, and welcome back.
In this section, we're going to show you how to create a brand new
background using artificial intelligence.
This is such a cool technique.
You can use it with people.
You can use it with products.
Basically, all you have to do is select your subject, inverse the
selection, and then use generative fill to create a brand new background.
Let's get into Photoshop, show you how it's done.
So here we are in Photoshop.
We have our, uh, PSD.
This is the, uh, like PSD that's included with your download.
You can see I prepped and already did this.
And then this is, this is the image.
This is the JPEG image that comes like this.
So this is the, this person was actually just photographed on that background.
Now I like this image a lot.
The blue is really cool.
This jacket, her pants, a little bit of a bluish tint in the hair, but I was like,
let's add some like blue in the photograph.
So let's go ahead and show you how to do it.
Let's, we're going to click on F for full screen and go ahead and zoom in there.
Now, first thing we want to do, let's go ahead to our contextual
taskbar and go to select subject.
There we go.
Now you can also get through select and then down to subject.
If you don't see your contextual taskbar, that's another way to do it.
As you can see, it did a pretty good job.
We just need to refine this a little bit.
So we're going to hit L for our lasso tool, L for the lasso tool.
And then it thought this area on the inside of her jacket was not the subject.
So we're going to add this to the selection.
So we're going to hold shift and then click and drag right around there.
Boom.
You can see that added that to the selection.
Okay, let's go ahead and zoom in here.
We're going to hold shift and click and drag here to make sure that
got added to the selection also.
Okay.
Holding shift.
And I want to make sure her whole face is correct.
Boop.
There we go.
You can hold alt or option and select to like minus some areas out
of the selection if you want to.
There we go.
And just kind of take a look.
It doesn't have to be perfect around the jacket and things like that.
You just want to make sure that the majority like of the
large details are taken care of.
All right.
And that looks pretty decent to get started.
Okay.
Let's go ahead and zoom out.
Now I'm going to do this a couple of times.
We're going to use generative fill a couple of different times
to create some new backgrounds.
So first thing I want to do is go ahead and save this
selection so I can reuse it.
So let's show you how to do that.
We're going to go up here to select and then down here to save selection.
There we go.
And we're just going to call this subject a one.
There we go.
Subject.
Oh, call it whatever you want.
I'm just going to call it subject.
Oh, one.
There we go.
Any day.
Okay.
Now we're let's hit control or command D or you can hit D select right
over here in your contextual taskbar.
And if you want to load your selection, super easy to simply go to select
down here to load the selection.
And then you can see I've got subject.
Oh, one here.
There we go.
And hit, okay.
And you can see it loaded that selection.
Perfect.
So the first thing we want to do, always select your subject.
That's the easiest way to do it because it's in the contextual taskbar.
Next, we're going to inverse the selection.
So we can do that right over here in the contextual taskbar.
Again, that's this icon.
So we're going to click there and you can see now my background is selected.
I have a border, a selection border around the edges and you can see, yep.
In fact, my background is selected.
Fantastic.
So we're ready for generative fill.
All you have to do is click on generative fill here in your contextual taskbar.
And I'm going to call this white wall with, let's say it's a plaster wall.
Wall with small blue flowers and plants and hit generate.
And there we go.
All we have to do is hit enter and Photoshop is going to do the rest.
Just make sure you have your properties window open, and that's going to allow
you to see your variations as they populate.
There we go.
And here we have a few different variations.
That's looking pretty cool.
Let's go ahead and click on generate.
We'll just do this one more time.
Keep in mind, you have a lot of options.
You can continue to hit generate and get different results as you like.
There we go.
Let's see.
Yeah, that looks really good.
Honestly, like, Ooh, I think I like this one even better.
And yeah, maybe I like that one even better.
I think this is like really, really nice.
Honestly.
Yeah.
Maybe that's my favorite of these.
So if we take a look at this, I mean, how easy was that?
Just that's the before and that's the after, right?
Like incredible.
You can see the shadows look really good to everything.
Like she actually looks like she's in place there.
Fantastic.
Let's go ahead and make that invisible.
We're going to go to select and then down here again to load selection.
There we go.
And we're just going to go to subject.
Oh, one.
There we go.
So load selection.
Let's go ahead and just create a new layer on top of that.
Inverse the selection.
There we go.
And then we'll hit generative fill.
So we're going to call this ancient, uh, ancient stone wall with plants and blue
flowers and hit on generate there.
So basically exactly the same thing.
We're just doing a completely new layer with new generations.
And you can do all that on the same generative fill layer.
I just want to show you how you can do this on new generative fill
layers, just in case you need to.
There we go.
And that looks really, really good.
Let's go ahead and hit generate one more time.
Fantastic.
And then the last one we're going to do after this is done, man,
all these look really good.
Honestly, I'm like, I'm really impressed.
That one is killer.
I mean, let's just take a look at this.
We don't need this blank layer in the middle.
So we just hit delete.
That's our before and the after.
Like all I was done using artificial intelligence, just using a text prompt.
So I hope this opens up some possibilities.
Like you can photograph someone pretty much anywhere and then
completely replace the background.
This works really well with products.
Like if you photographed a product in a studio and want to see the product
in a few different environments, you can use AI for that too.
All right, let's go ahead and do one more example here.
We're going to just use this, uh, same exact, uh, layer here.
We're going to go back to our properties panel just to show you,
you don't have to create new layers.
You can simply type in a new prompt here.
So we're going to call this wall with blue art and graffiti.
I hope that's how you spell graffiti.
If it's not, that's okay.
But basically because I typed in a brand new prompt here, it's just going to show
up on the same generative fill layer, and it's going to be my new variations here.
So you can do all this on the same generative fill layer.
That's cool.
Right?
Like, wow.
And all this is like, you know, I don't really do one more.
Cause I actually really like these.
Um, it, it kind of fits the style of my subject as well.
Like, okay, cool.
You want them on, uh, you know, like a nice background with flowers.
Great.
You want them in like, you know, maybe like a urban environment photographed
against, you know, a wall with graffiti on it.
I think this one works really, really well.
There we go.
That's good too.
And then you can see it's all here in the variations.
So how cool is this?
Like if you photograph your subject, you know, and then you were like, Hey, you
want to be in this background?
Do you want to be in this background?
For you as editor, it really is just a click away.
Um, and for them, they get to have all these different variations of
them looking really, really good.
So again, here's the original and you can see, we have a few different
variations that we were able to do.
I hope you enjoyed this section.
This is such an incredible technology and, uh, yeah, that's all there is to it.
Very, very easy and, uh, very, very useful.
Thanks so much.
I'll see you in the next section.
Bye everyone.
