> For the complete documentation index, see [llms.txt](https://docs.dreamerland.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dreamerland.ai/image/inpainting/inpaint-not-masked.md).

# Inpaint not masked

We have introduced the fundamental inpaint function, and now we will discuss the concept of "inpaint not masked" in this section.

There are instances when you may want to preserve a specific small area, typically a face, while redrawing or modifying the rest of the image.

Let's see how this work with a simple example. We will use this image as base image in this section

<figure><img src="https://2310956826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftbrc6W2n35oVxftMovDQ%2Fuploads%2FO7fftfZNONIc02vnOPxc%2FIMG_1396%202.JPG?alt=media&amp;token=644feac2-ee27-4f4c-8060-96089779b07a" alt="" width="563"><figcaption><p>a young girl, wearing schcool uniform, in classroom</p></figcaption></figure>

Similar to the normal inpainting process, we begin by selecting the inpaint mode and proceed to draw a mask. However, in this case, we draw the mask specifically on the area that we wish to preserve.

<figure><img src="https://2310956826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftbrc6W2n35oVxftMovDQ%2Fuploads%2FVxC8AxE658yLvJmg8v4L%2FIMG_1399.jpg?alt=media&amp;token=1f9a0727-43f8-43cf-ac81-3ccab07edc0f" alt="" width="563"><figcaption><p>Draw a mask on the face</p></figcaption></figure>

After drawing the mask, remember to check the "Inpaint not masked" option. To maintain accurate body composition, it is advisable to utilize a control layer in conjunction with the inpainting process. In this case, we will employ Pose control with the base image.

<figure><img src="https://2310956826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftbrc6W2n35oVxftMovDQ%2Fuploads%2FoJnanJJtDgQlZVL23GEM%2FIMG_1400.jpg?alt=media&amp;token=3741e8b1-1ba4-4f75-9df0-23abe440a951" alt="" width="563"><figcaption><p>Check "inpaint not masked", employ Pose control layer</p></figcaption></figure>

Lastly, input the desired prompt. In this case, let's use the following prompt: "1 girl, wearing bodysuit, pink hair, long hair, in cyberpunk city."

Now, click on the "Start drawing" button. Below is the resulting image we obtained:

<figure><img src="https://2310956826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftbrc6W2n35oVxftMovDQ%2Fuploads%2FBrzRQxo1VvBQdGIbZtOR%2FIMG_1401.JPG?alt=media&amp;token=36236026-7e99-413e-a5b8-3be665f9eec0" alt="" width="563"><figcaption></figcaption></figure>
