Boundless: Generative Adversarial Networks for Image Extension

Dilip Krishnan, Piotr Teterwak, Aaron Sarna, Aaron Maschinot, Ce Liu, David Belanger, William T. Freeman

Abstract

Image extension models have broad applications in image editing, computational photography and computer graphics. While image inpainting has been extensively studied in the literature, it is challenging to directly apply the state-of-the-art inpainting methods to image extension as they tend to generate blurry or repetitive pixels with inconsistent semantics. We introduce semantic conditioning to the discriminator of a generative adversarial network (GAN), and achieve strong results on image extension with coherent semantics and visually pleasing colors and textures. We also show promising results in extreme extensions, such as panorama generation.

Introduction

Image extension, or extrapolation, is the task of synthesizing content beyond the boundaries of an existing image. While image inpainting—filling missing regions within an image—has seen significant progress, extension remains difficult because the model lacks surrounding context on all sides. This often results in "semantic drift," where the generated content becomes increasingly disconnected from the original scene's logic, leading to repetitive patterns or blurry artifacts.

The "Boundless" framework addresses these issues by leveraging a Generative Adversarial Network (GAN) that incorporates semantic conditioning. This allows the model to maintain long-range coherence, enabling realistic extensions even at high ratios, such as 75% of the original image width.

Methodology

The Boundless architecture is based on a Wasserstein GAN (WGAN) with several key modifications designed to ensure both local realism and global semantic consistency.

Semantic Conditioning

The core innovation is the use of a dual-conditioned discriminator. Beyond spatial conditioning (which ensures boundary continuity), the discriminator is conditioned on high-level semantic features. These features are extracted from a pre-trained InceptionV3 network applied to the ground truth image. By feeding these activations into the discriminator, the generator is forced to produce content that aligns with the specific "theme" or category of the source image.

Boundless Architecture: The generator G uses gated and dilated convolutions, while the discriminator D is conditioned on semantic features from a pretrained network C.

Generator Refinements

The generator uses an encoder-decoder structure with gated convolutions, which help the model distinguish between valid pixels and synthesized ones. Dilated convolutions are employed to increase the receptive field, allowing the network to "see" further into the known region. Additionally, skip connections and instance normalization are used to preserve high-frequency details and minimize visual artifacts.

Experiments and Results

The model was trained on the Places365-Challenge dataset, specifically focusing on the top 50 classes to ensure a diverse range of natural and architectural scenes.

Quantitative Evaluation

Boundless was benchmarked against state-of-the-art inpainting models like DeepFill and Partial Convolutions (PConv), as well as Photoshop’s Content-Aware Fill (CAF). Using the Fréchet Inception Distance (FID) metric, Boundless showed superior performance. At a 75% extension ratio, Boundless achieved an FID of 8.79, significantly outperforming DeepFill (31.21) and PConv (31.83).

Qualitative Comparison

Visually, Boundless maintains structural integrity much better than its competitors. While other models often produce "melting" textures or incoherent repetitions as they move away from the source boundary, Boundless preserves horizons, architectural lines, and complex textures like foliage or water.

Qualitative comparison of image extension at 25%, 50%, and 75% ratios. Boundless (Ours) maintains structural and semantic coherence better than baselines.

Discussion and Limitations

The Boundless model excels at extending textures and large-scale structures. However, it faces challenges when dealing with complex, discrete objects. While it can seamlessly extend a forest or a building facade, it may struggle to reconstruct or extend specific objects like vehicles or humans, often resulting in distorted or "ghostly" appearances. Future work involves incorporating object-level priors to improve the handling of these complex semantic entities. Despite these limitations, the model's efficiency—performing inference in roughly 0.1 seconds—makes it a practical tool for real-time image editing and panorama generation.

Summary updated

BibTeX
@misc{krishnan2019boundless,
  author = {Dilip Krishnan and Piotr Teterwak and Aaron Sarna and Aaron Maschinot and Ce Liu and David Belanger and William T. Freeman},
  title = {{Boundless: Generative Adversarial Networks for Image Extension}},
  year = {2019},
  eprint = {1908.07007},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.07007},
}
Figure