Image outpainting—the task of hallucinating content beyond an image's original boundaries—represents a significant challenge in computer vision. Unlike inpainting, which benefits from surrounding context on all sides, outpainting must generate coherent structures from a single boundary. This paper introduces a specialized framework designed to produce "very long" panoramic natural scenery from a single square input.
The Challenge of Boundary Extension
The primary difficulties in outpainting are maintaining structural consistency and preventing quality degradation during recursive generation. In multi-step outpainting, where a model uses its own previous output as the next input, errors and blurriness typically accumulate, leading to "drifting" textures and broken horizons. Previous methods often relied on patch-matching from external databases, which is computationally heavy and limited by the diversity of the source data.
Methodology: Architecture for Continuity
The authors propose an end-to-end generative model based on a modified ResNet-50 encoder-decoder architecture. To address the unique requirements of horizontal expansion, they introduce three key architectural innovations:
- Recurrent Content Transfer (RCT): By replacing standard fully connected layers with a two-layer LSTM, the model treats the horizontal feature maps as a sequence. This allows the network to "propagate" information from the known input region to the unknown predicted region, ensuring long-range consistency.
- Skip Horizontal Connection (SHC): These connections fuse encoder features directly into the decoder, helping the model "remember" the spatial configuration of the original input while generating new content.
- Global Residual Block (GRB): Utilizing asymmetric dilated convolutions (e.g., $1 \times 7$ kernels), the GRB increases the horizontal receptive field. This allows the model to account for distant structures without a massive increase in parameters.
The system is trained using a masked reconstruction loss with cosine decay to ensure boundary smoothness, alongside global and local adversarial losses (WGAN-GP) to maintain high visual fidelity.
Key Results and Performance
The model was evaluated on a curated dataset of 9,000 natural scenery images (including 3,000 from the SUN benchmark). Quantitatively, the approach achieved a Fréchet Inception Distance (FID) of 13.713, significantly outperforming Pix2Pix (19.734) and Contextual Attention (19.040).
One of the most impressive capabilities of this framework is its stability over multiple recursive steps. The model can generate coherent panoramas up to 16 steps long, effectively turning a $128 \times 128$ square into a $128 \times 2176$ image.
Conclusion
By treating horizontal outpainting as a sequence prediction task and employing asymmetric receptive fields, the authors demonstrate that deep generative models can produce remarkably long and stable image extensions. While currently limited to horizontal expansion, this work provides a robust foundation for future multi-directional outpainting research.
Summary updated