Inpainting and outpainting (uncrop)
Last updated
Last updated
Inpainting is a technique used in image processing to fill in missing or damaged parts of an image in a way that blends seamlessly with the surrounding areas. This process can reconstruct removed elements or extend the background of an image while preserving the visual coherence of textures, colors, and patterns.
Inpainting is a part of background generation parameters
Parameter | Description |
---|---|
adapter_type | inpainting |
ip_image2 | url to mask image |
Let's check the example. There is a generated image with some hand issues:
Quickly created mask:
And the result:
Outpainting, or "uncropping," is a technique used to expand an image beyond its original borders by generating new visual content that seamlessly extends the existing scene. Unlike inpainting, which fills in missing areas within an image, outpainting creatively imagines what might lie beyond the current frame, effectively "uncropping" it to add context or detail.
Let's make a horizontal image of the vertical one.
And the result:
Prompt or image description is generated by default so for this particular example is: "there is a boat that is sitting on the sand near a building".
We can use our prompt as well:
And the result: