Abstract
Image outpainting, the task of extrapolating image content beyond its original boundaries, is significantly more challenging than standard inpainting due to the lack of surrounding context and the high degree of uncertainty in distant pixels. We propose a three-stage progressively generative network that leverages structural "skeletons" to maintain semantic consistency and visual sharpness. Our approach sequentially generates a coarse output, a Canny edge map, and a refined final image. By utilizing an intermediate edge-generation step, the model provides a clear blueprint for texture synthesis. Evaluations on the CelebA-HQ and Oxford Flower102 datasets demonstrate that our method achieves superior FID scores and higher semantic fidelity compared to existing state-of-the-art models.
Introduction
Image outpainting requires a model to "hallucinate" large regions of new content based on a very limited input—often just a small fraction of the desired final output. Traditional generative methods frequently struggle with two primary hurdles: spatial disconnect and semantic inconsistency. As predicted regions move further from known pixels, structural alignment often fails, leading to blurry results or repetitive, "background-like" textures that lack complex features.
To address these issues, we introduce a framework that prioritizes structural integrity through edge prediction. By forcing the network to define the boundaries and shapes of objects before adding high-resolution textures, we ensure that the generated content remains semantically aligned with the input.
Methodology
Our proposed architecture consists of a three-stage progressively generative network, designed to move from low-frequency global structure to high-frequency local detail.
Stage 1: Coarse Generator
The first stage utilizes an encoder-decoder network to produce a rough, low-detail version of the full image. To manage the inherent uncertainty of pixels far from the source, we implement a Relative Spatial Variant (RSV) loss, which assigns lower weights to distant pixels during training. This is supplemented by a Perceptual Loss (using a pre-trained VGG-19) to ensure the coarse output is semantically sensible.
Stage 2: Edge Generator
This stage takes the coarse output and predicts a Canny edge map. This map acts as a structural guide, defining the "skeleton" of the image (e.g., the symmetry of a face or the delicate curves of a petal) before the final textures are rendered.
Stage 3: Refinement Generator
The final stage is a Generative Adversarial Network (GAN) that fuses the coarse image and the predicted edge map. By combining adversarial, perceptual, and style losses, this generator produces a high-resolution final output that is both crisp and visually convincing.
Experimental Evaluation
The model was evaluated on three diverse datasets: CelebA-HQ (human faces), Oxford Flower102 (botanical textures), and CUB200 (intricate bird structures). For all tests, original $256 \times 256$ images were cropped to $128 \times 128$, meaning the input provided only 25% of the final image area.
Key Results
- Quantitative Performance: On CelebA-HQ, our model achieved a FID (Frechet Inception Distance) score of 28.48, outperforming EdgeConnect (32.43) and SRN (34.89). A lower FID indicates that the generated distribution is significantly closer to real-world images.
- Semantic Fidelity: To verify the meaningfulness of the "hallucinated" content, we ran a flower classifier on the outpainted images. The classifier achieved 82.34% accuracy on generated flowers, suggesting the model successfully replicated species-specific features.
- Qualitative Sharpness: Visually, the model produces much clearer boundaries between subjects and backgrounds, avoiding the "ghosting" effects common in previous methods.
Discussion and Limitations
The critical insight of this work is that edges are easier to predict than raw pixels. By establishing a structural blueprint early in the pipeline, the refinement stage can focus on texture synthesis rather than structural discovery. Furthermore, applying perceptual and reconstruction losses at the coarse stage—rather than just the final stage—prevents initial blurriness from cascading through the network.
However, the model does face limitations. It remains sensitive to very small, intricate details; on the CUB200 dataset, it occasionally failed to reconstruct fine structures like bird eyes or beaks when the coarse input was too indistinct. Future work will focus on generalizing the architecture to handle irregular input shapes and improving performance on smaller, detail-heavy datasets.
Summary updated