What is Inpainting?
In Turkish: İç boyama (inpainting) · Topic: Vision, audio and robotics
A technique in which a selected region of an image is erased and refilled by AI so that it blends with the surrounding content, used to remove flaws or to remove, swap or add objects.
How does it work?
The user paints over the area to edit, creating a mask. The model reads the pixels outside the mask as context and generates the masked region so that it fits that context. In diffusion-based systems, the region is first filled with noise and then cleaned up step by step into a coherent picture. A text prompt can also be added, for example “put a cup of coffee on the empty table.”
Why does it matter?
Cloning and patching work that once took hours in photo retouching can now be done in seconds. It is widely used for cleaning up product photos, restoring old pictures and creative compositing. The fact that details that never existed can be added to an image also raises questions about how authentic an edited photo should be considered.
Example
A stranger standing behind someone in a holiday photo is brushed over and removed, and the model fills the gap with the surrounding sand or wall texture.
FAQ
What is the difference between inpainting and outpainting?
Inpainting changes or removes a region inside an image. Outpainting extends the image beyond its edges by generating new area that did not exist.
How does the model decide what replaces the removed object?
It looks at the color, texture and perspective around the mask and predicts the most plausible content. If a text prompt is given, the prediction is steered in that direction.