Allows you to regenerate a part of the image that may be pixellated or have some parts that you do not want to include in the image:
Pretty nice guide on how to use inpainting: Summary: Use Latent/Latent Noise → Fill + Original does not create as diverse image Use Inpaint only as generating as it only generates the parts that you have inpainted instead of the entire image (Takes less time) Use higher denoising: Less denoising more detail and more change (1 change completely, 0 changes nothing)
https://www.youtube.com/watch?v=No1_sq-i_5U

Original


After Inpainting

There are some artifacts on the face even after increasing the sampling steps from 20 to 50 for LMS
Click send to Inpaint
Use the brush tool to black out the parts that you want to regenerate
I normally do not change the default settings however you should change the sampling method different from the one that you have originally used for the corrupted image(Ex. I used LMS for the original generation, so I decided to try Euler a to see if the artifacts can be resolved)