Intro to Inpainting
A Simple Intro to Inpainting
Inpainting is a super powerful tool for those interested in leveraging it. Using our canvas, creators can mask out and adjust small details, ultimately offering more control over the final results.
The process is very simples, so let’s jump right in!
Step 1 - Generate Your Image
First, navigate to our Canvas on the left hand menu of the Webapp, underneath the ‘Generate Images’ link. This will bring you to an open workspace setting where you can prompt, provide reference images, and even create sketches.
![[Left to Right: Reference Image, Move Generation Area, Mask, Sketch]](https://storage.crisp.chat/users/helpdesk/website/1bdbbd21f5237000/screenshot-2023-05-11-at-33151_d2nken.png)
For this tutorial, we are going to show the process of taking a creation from start to finish in the Canvas. The first step will be to prompt something we like. Just as in our regular prompt screen, you can generate up to 16 images in a single batch. You can find more about prompting in our introductory tutorial.
Note: The canvas only saves the initial prompting round of inferences to your workspace, so it is recommended to download the inferences you like! All the images made from masking and sketching must be saved manually.

Step 2 - Mask Area
Once you have decided which image output you like best, it’s time to adjust your image using the mask feature (highlighted in green below). As you can see, we have masked out a larger area below.

We also change the prompt to reflect the elements we want added. First, let’s add a wand.

It tends to be easier to generate different elements individually, one at a time, to ensure the AI understands what area is meant to represent what element. We will next give our character a crown.

Sometimes users may find that they need to mask out larger areas to get a better result. In this case, the top of the crown doesn’t look quite right. So, to fix this, we simply mask out more of the head to accommodate the image creation.
As a side note, notice how much change is possible with inpainting. As you can see, we can reimagine great areas, such as full outfits, color, and more.

Step 3 - Finish the Image
Once the output looks correct, it’s time to download your work.

For those who want to fully refine their images on the app, you may find that uploading the image back to the normal generation interface - the ‘Generate Images’ page - and setting the influence to 85 or higher produces very strong results.
To do this, simply describe your image in the prompt box and generate. This typically cleans up any strange misalignments in the linework from masked image generation. This also gives the added benefit of being able to use the ‘Remove Background’ and ‘Upscale’ tools.

There are endless possibilities for Inpainting use cases and we hope this gives you a strong jumpstart!
Updated on: 15/05/2023
Thank you!