Generative Inpainting
Generative inpainting. 2021–2022: LaMa research and more widely accessible generative image processing

Prompt
Apply Generative Inpainting to small distracting background imperfections, replacing them with seamless continuations of nearby surfaces. Match local color, material texture, grain, perspective, shadow softness, and edge sharpness so repaired regions have no visible patch boundaries or repeated patterns. Keep the original subject and composition.
Identify
Masked image areas1 are filled with newly synthesized content2.
Principle
A model fills in the gap based on the environment and, if necessary, text.
Example
LaMa, 2021; DALL·E 2, 2022.
Try it out
Replace an object; check shadows and continuous patterns.
Background
Inpainting fills in missing or selected areas within an image. Classical methods existed before generative AI; this slide focuses on machine learning-based augmentations from the early 2020s. LaMa was presented as a preprint in 2021 and at the WACV conference in 2022. The method uses Fourier convolutions for large-scale spatial context and also demonstrates periodic structures. DALL·E 2 made describable image changes with appropriate surroundings, shadows, and textures publicly visible in 2022. The illustration is a documented demo from that time, not a newly created historical reconstruction. The key learning question is which cues are preserved. A local exchange must match the perspective, light, and material of the surrounding image.
Distinction
A plausible addition does not necessarily reconstruct the original content that was actually concealed.
Aftermath
Inpainting works within the chosen image area. Unlike repair by copying, it can invent new objects and structures.
Further examples · 7 images






Question
Why can a seamlessly repaired photograph still be historically inaccurate?
Show possible answer +Hide answer −
The model generates a plausible addition from its patterns and the context; it does not know the actually missing content.