Painting a mask

Change a painted area while using its original content as the starting point.

Turn on Paint a mask in img2img and paint the area you want to change. controls how much the masked content can change.Use this for edits where you want to retain some of the existing content, such as changing a coat's texture. is useful for replacing content more fully.The mask limits the edit, but resizing, edge blending, and post-processing can affect the final image. Inspect the boundary and any areas you need to preserve exactly.The examples compare masked img2img and inpainting with the same image and mask. Their responses to strength depend on the worker workflow.Use a supported Stable Diffusion 1.5, 2, or SDXL model. Support for combining a mask with depends on worker software.

The examples on this page were made from one prompt, one model and one seed, changing only the setting shown. Other pictures, models and settings respond differently; compare on your own request with the seed and the other settings fixed.

In the glossary