From the course: Midjourney: Tips and Techniques for Creating Images

Changing part of an image with Vary Region (inpainting) - Midjourney Tutorial

From the course: Midjourney: Tips and Techniques for Creating Images

Changing part of an image with Vary Region (inpainting)

- [Instructor] In this video, we're going to take a look at Midjourney's Vary Region feature, which is in painting, and will allow us to make changes to a portion of an image, generating new results in just that section. Okay, let's see this in action. It only happens on uprezzed images, and we're going to create a brand new text prompt together. So let's press that slash key, imagine prompt, and I'll enter colon. I'm going to type in a wizard holding a magic wand being hit by lightning in a field at night. I'll press comma, let's go dash dash ar, let's choose 17:10 in this case. And just to have some variation, I'll also go dash dash c for chaos and set the value to be 55. And let's see the results it produces. Okay, we have quite a few different images to choose from. In my case, I'm going to go with the image on the top right hand corner. I'll press U2 to uprez that. And now that we have upscaled slash uprezzed this, we can start to work with Vary Region. So let's click on that button, Vary Region, and an entirely new window pops up. One extremely important note is that we do want to have remix turned on in order to use this. So for any reason that you don't, I'm just going to x out of here for a second and just do a dash search for settings followed by Return. You want to make sure remix mode is turned on. Okay, so I'm going to dismiss that. Let's go back to Vary Region. So the first step is to identify the region in the image that we'd like to change. And I kind of want to change the staff over here. So I'll select just the marquee tool and we can then just draw over an area that we'd like to change. Now there is no need to repeat the entire prompt. In fact, we want to get rid of all of this and type in what we would like to see. And I'm going to type in a small magic wand and let's just press the Submit Job. Midjourney gets to work, it's going to provide us with some other images minus the chaos that we had and based on this new text prompt that we entered. Okay, here are the new results. This definitely looks like a smaller magic wand here, the one on the top left. And in general, all of the wands now produced are smaller. Let's now try to vary another area of the image on the top left. I'm going to press U1 in order uprez that so we can have access to that very region feature. So I'll click on the Vary Region button, and this time we can choose the other tool. We have the lasso tool. Okay, I'm going to try to freeform click and drag as much as possible around the wizard's hat. And now let's describe what we'd like to see. And in my case, I want to see a baseball hat on my wizard. Let's see what it comes up with. He's got a pretty giant baseball cap with an A on it over here, this one's a bit smaller. These aren't so much of a baseball hatch. This he kind of looks like he's on the bottom right, looks like he's in an Indiana Jones film. So I'm going to go with the one on the top right. So I'll escape out of here and just press U2 in order to enlarge it. And just keep in mind that if you don't get what you're looking for, try different prompts or even using the no command or image widths to get different results. Now, I've included a few different examples in the exercise files that you can take a look at showing some things that I've done with Vary Region inside of Midjourney. Last but not least, we can use images with the Vary Region command. In order to see this, let's start off with a text prompt. So I'll call up the Imagine Prompts and I'll say a group of tourists in a museum looking at a famous statue shot in the 1960s. I'll follow this with a comma and dash dash ar 4:6, followed by Return. And just because I've changed my settings to the V6 alpha at this time, the parameter V6 is appended at the end of this. Here are the results, I like the third one. I'm going to up uprez, U3. Okay, now that we've uprezzed the image, I like to change the main statue in the center by referencing an asset. And inside the Midjourney images, you'll see a number of public domain images that you can use, including a head of a youth statue. So let's open that and just press Return to upload it to Discord. And right click it to copy the link. Heading back to the uprezzed image, we're going to go to Vary Region. I'm going to select the lasso tool knowing that I turned on remix in an earlier movie. Let's highlight the text prompt and press Command + V or Control + V in order to paste the link of the statue that we would like to reference. I'll click on the arrow and Midjourney will get to work. And as you can see, Midjourney supplies us with four different image variations, all with a head within frame. I like the first one, in this case, so I'll press U1 in order to uprez it. And that's how you can use the Vary Region feature inside of Midjourney.

Contents