Sign In

How to use inpaint to change an image.

84

Hello!

This is a tutorial a user requested on how to create an ending frame for a video that requires a first and last frame.

https://civitai.com/articles/17191/how-to-make-nsfw-videos-easily-and-quickly-locally

https://civitai.com/articles/17239/how-to-make-videos-using-first-and-last-frames-quickly

The first thing is to use the png info in automatic1111.

032640.png

This way we will get the prompts, Loras and checkpoints that were used to make that image and use them in the new image.

032712.png

Now we use the button to inpaint all that information automatically.

032733.png

Now we will go to img2img to use inpaint and we will have to activate the additional networks tab.

032832.png

If we click on the brush icon, we can choose the brush size for the mask and thus be able to choose which part of the image we want to change.

032847.png

I'm going to change the girl's facial expression, and I'm going to change the boy's so that instead of grabbing her thigh, he's grabbing her breast. So I'll make a mask that includes the parts I want to change.

Captura de pantalla 2025-08-04 033011.png

Now we need to change the prompts so that the image changes.

Captura de pantalla 2025-08-04 033042.png

Here I have the original facial expression, so I'll change it to the new one I want it to have.

Captura de pantalla 2025-08-04 033131.png

Now I will change the boy's original pose.

Captura de pantalla 2025-08-04 033155.png

For this other new pose.

Captura de pantalla 2025-08-04 033231.png

We click on the generate button.

033247.png

The girl's face changed, but the boy's arm didn't.

Captura de pantalla 2025-08-04 033411.png

Since I liked the face, I upload the new image and now I only have to change the boy's arm. And I proceed to put the mask on with the inpaint.

Captura de pantalla 2025-08-04 033456.png

I proceed to delete all the prompts that have nothing to do with the area I want to change, so the AI will focus more on changing the boy's arm.

Captura de pantalla 2025-08-04 033527.png

The final prompt will be this:

Captura de pantalla 2025-08-04 033555.png

Since it's a lot of change to only use 0.75 of denoising (which is the change the AI will make to the original image)...

033652.png

I've decided to add more denoising so that it has more room to "move the pixels around."

033703.png

We click on the "generate" button again and wait for the result.

Captura de pantalla 2025-08-04 033808.png

Oh, look, the change was made successfully! Well, that's the end of the tutorial. I hope it helps you make lots of videos!

84