[Paper Review] In&Out : Diverse Image Outpainting via GAN Inversion
This paper proposes In&Out, a GAN inversion-based framework for diverse image outpainting that generates semantically consistent, high-quality extensions beyond input image boundaries. By conditioning micro-patch generation on spatial coordinates and optimizing for multiple latent codes, the method achieves high visual quality, structural diversity, and user-controlled categorical outpainting without texture repetition.
Image outpainting seeks for a semantically consistent extension of the input image beyond its available content. Compared to inpainting -- filling in missing pixels in a way coherent with the neighboring pixels -- outpainting can be achieved in more diverse ways since the problem is less constrained by the surrounding pixels. Existing image outpainting methods pose the problem as a conditional image-to-image translation task, often generating repetitive structures and textures by replicating the content available in the input image. In this work, we formulate the problem from the perspective of inverting generative adversarial networks. Our generator renders micro-patches conditioned on their joint latent code as well as their individual positions in the image. To outpaint an image, we seek for multiple latent codes not only recovering available patches but also synthesizing diverse outpainting by patch-based generation. This leads to richer structure and content in the outpainted regions. Furthermore, our formulation allows for outpainting conditioned on the categorical input, thereby enabling flexible user controls. Extensive experimental results demonstrate the proposed method performs favorably against existing in- and outpainting methods, featuring higher visual quality and diversity.
Motivation & Objective
- To address the limitations of existing image outpainting methods that produce repetitive textures and lack diversity due to deterministic, context-leaky I2I translation.
- To enable multi-modal, diverse outpainting by formulating the problem as GAN inversion with coordinate-conditioned micro-patch generation.
- To support flexible user control through categorical conditioning for targeted scene extensions.
- To achieve high-fidelity, structure-rich outpainting without artifacts or boundary seams.
- To enable recursive outpainting for panoramic image generation with minimal repeating patterns.
Proposed method
- A modified StyleGAN2 generator is trained to generate spatially consistent micro-patches conditioned on both a shared global latent code and individual patch coordinates.
- The outpainting process involves inverting the generator to find multiple latent codes that reconstruct the input image while synthesizing diverse content in outpainted regions.
- A multi-loss optimization framework includes reconstruction loss, perceptual loss, and diversity-promoting losses (Lms and Ldiv) to balance realism and diversity.
- A prior regularization loss (Lprior) ensures inverted latent codes remain within the manifold of the pre-trained generator, preventing artifacts and distribution drift.
- Categorical conditioning is introduced by conditioning the generator on class labels, enabling controlled generation of specific objects or scene elements in the outpainted region.
- Recursive outpainting is enabled by treating previously outpainted micro-patches as new inversion targets, facilitating panoramic image synthesis.
Experimental results
Research questions
- RQ1Can GAN inversion be effectively leveraged to generate diverse, high-quality image outpaintings beyond the input image boundary?
- RQ2How can multi-modal generation be achieved in image outpainting without relying on deterministic image-to-image translation?
- RQ3Can coordinate-conditioned micro-patch generation enable structured, non-repetitive outpainting with high semantic consistency?
- RQ4To what extent can user-controlled categorical conditions guide the structure and content of outpainted regions?
- RQ5Can recursive outpainting via inversion generate complex, large-scale panoramas without repeating patterns?
Key findings
- The proposed method achieves superior visual quality and diversity compared to baseline methods, with fewer artifacts and more realistic scene extensions.
- The inclusion of Lprior significantly improves realism by preventing distribution drift, avoiding visible seams or input replication in outpainted regions.
- The diversity losses (Lms and Ldiv) effectively promote distinct latent codes, resulting in varied outpainting solutions without compromising reconstruction quality.
- Categorical outpainting enables targeted scene editing, such as inserting specific objects or modifying landscape structures based on user-provided class labels.
- Recursive outpainting successfully generates high-quality panoramas with rich structural complexity and minimal repeating patterns.
- User studies and FID scores confirm that In&Out outperforms existing methods in realism, while LPIPS scores demonstrate significant gains in diversity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.