← Back to blog
Tutorial

Inpainting - Walkthrough

Header

Inpainting: Enhancing Specific Areas

Inpainting is a great way to improve specific areas within an image. Let's say you’ve generated a fantastic image. Everything is perfect and exactly as you imagined, except for one small detail. Re-prompting the entire image would change it completely and would be another guessing game to get back to where you were.

Instead, you can mask specific areas and inpaint them. Here’s how to do it.

Example: Correcting Eyes

Take this example: Many aspects of the image are already correct, but the eyes are not quite right.

Blog Walkthrough Inpainting 01 Blog Walkthrough Inpainting 02

On the left next to the generated image, you’ll find options for further processing. Click on the brush icon to access the Inpainting overlay.

Blog Walkthrough Inpainting 03

 

Inpainting Settings

Blog Walkthrough Inpainting 04

In this area, you will find new settings. The most important setting is the size of your brush, as it determines how precisely or broadly the area you want to change can be marked.

Below that, you’ll find the prompt area. But first we will apply the masked area that you want to change.

Applying the Mask

Draw a mask over the area you want to change.

 

Editing the Masked Area

In the next step, determine what exactly should happen in the masked field. 

Blog Walkthrough Inpainting 06

Finally, click the large “Inpaint” button and wait for your image to be regenerated. Here is our example.

Blog Walkthrough Inpainting 01 Blog Walkthrough Inpainting 07

Further Tutorials

If you enjoyed this tutorial, feel free to check out our other tutorials in the blog-section where we explain the major features of Cogniwerk.ai. Such as finetuning models or ControlNet