Tags:

Introduction
This is a simple and straight to the point guide for inpainting in WebUIs like Forge Neo/ReForge and the like. I will list the settings I use and then go over how each one impacts the final image.

Simple Steps
- From the Txt2img tab, press the paint icon (the 5th one from the left) to send your image to the inpaint tab
- Everything I don’t mention below, leave to default like the image above
- Set Inpaint area to “Only masked”
- Set “Only masked padding, pixels” to 64
- Set “Sampling steps” to 45
- Set Width and Height to 1024
- Set Denoising strength to 0.5 or higher (higher number results in more drastic changes)
- Set Sampling method/Schedule type/CFG to whatever you used to gen your image in txt2img
- Use the inpaint window to mask the part of the image you want to adjust or change (like the bra above)
- change the positive prompt to only include tags of the masked area you want to change (like above I only have the tags “string bikini, red bikini, anime coloring and covered nipples” active)
- Click Generate until you get the result you like.
Example Images
This is the original image generated from txt2img.

I sent the image to inpainting and just masked the pupils. I set all the values like I mentioned above with the Denoising Strength set to 50, and then I set the tags to “power \(chainsaw man\), cross-shaped pupils, red pupils, yellow eyes”.

Next, I sent that image back to inpainting and decided to change the bikini top to red and give her razor sharp nipples. The settings are the one from the first screen shot above.

The final upscaled image is the preview image for this article. I use MultiDiffusion for upscaling.
Information Break Down
Resize Mode – Depends on if you’re changing the width and height of the final image from the source image. Completely irrelevant for inpainting. Leave it on default
Mask Blur – Controls how blurry the mask area will be during the inpainting process. You don’t need to change this from default but you can experiment if you like.
Mask Mode – Pretty self explanatory. Leave it on Inpaint Masked.
Masked Content – Set it to original. Original uses the source image to generate the new image. (in conjunction with Mask Blur) Fill uses solid colors from the original image. Fill can also work pretty good but I haven’t done a lot of experimenting here. Latent noise gives undesirable results, I don’t use it. Latent nothing gives nothing.
Inpaint Area – Set it to Only Masked since we only want to work in the masked area. Whole picture inpaints with the entire image taken into account. If you wanted to change an entire character for instant, you can use this.
Only Masked Padding, Pixiels – This controls how much of the image outside of the mask will be considered while it generates the inpainted image. I set it to 64 but you can experiment to see if you can get better results with a different number.
Sampling Steps – More steps equal longer attention to the details of the masked area in question. I set it to 45 but you can adjust this for yourself.
Resize To: Width/Height – This is the most important part. Setting the resize to 1024 by 1024 is what gives us such good inpainting results. Change this could results in undesirable outcomes. You’re welcome to experiment.
Denoising Strength – Controls the degree of change to the new masked area. Higher numbers give more drastic changes. I don’t set it below 0.5 since I’m typically trying to correct something like hands or eyes.
There’s nothing else much to it. You can even open up a painting program and make some manual adjustments so your inpainting results can be more drastic. I’ve manage to completely replace multiple characters in a single image using separate loras. (not all at once, but one after the next) It all depends on how creative you want to be.



