Abstract
Image extrapolation, or "outpainting," involves extending the boundaries of an image to create a wider field of view. This task is significantly more challenging than standard inpainting due to the lack of surrounding constraints and the large number of pixels to be generated. We present the Semantic Regeneration Network (SRN), a framework that utilizes a feature expansion module and spatial-variant loss to generate semantically consistent structures. Our approach outperforms existing methods in both visual quality and computational efficiency.
Introduction: The Challenge of Outpainting
While image inpainting has reached high levels of maturity, image extrapolation remains a difficult frontier. The primary hurdles are twofold:
- Scale of Expansion: Extrapolation often requires predicting up to three times more unknown pixels than are present in the original input.
- One-sided Constraints: Unlike inpainting, where a hole is surrounded by known context, extrapolation must build outward from a single boundary. This lack of multi-directional constraints often leads to "drift," where errors accumulate as the generation moves further from the source.
The Semantic Regeneration Network (SRN)
To address these challenges, the Semantic Regeneration Network (SRN) employs a "small-to-large" strategy. Rather than padding a small image with zeros and processing it at full resolution, the SRN extracts latent features from the small input and then expands them.
Architecture
- Feature Expansion Network (FEN): This module uses sub-pixel convolution to efficiently increase feature map size. By reshuffling channels into spatial dimensions, it avoids the biases often introduced by standard upsampling techniques.
- Context Prediction Network (CPN): This component decodes expanded features into the final image. It incorporates Context Normalization (CN), which ensures style and color consistency by transferring the mean and variance from known regions to the newly generated ones.
Optimization Objectives
The SRN is trained using a combination of specialized losses. The Relative Spatial Variant (RSV) Loss prioritizes accuracy near the known boundary, with weights decreasing as distance increases. This guides the model to establish a stable transition before attempting distant details. Additionally, a Contextual Adversarial Loss and ID-MRF Loss are used to ensure realistic textures and global coherence.
Experimental Results
The SRN was evaluated on diverse datasets including CelebA-HQ (portraits), CUB200 (birds), and DeepFashion (human bodies).
Performance and Efficiency
In user studies, SRN results were preferred over state-of-the-art inpainting methods (such as Contextual Attention) more than 93% of the time. Quantitatively, the model achieved a competitive SSIM of 0.6473 on the CUB200 dataset. Notably, the SRN is highly efficient, requiring only 60-65% of the testing time of baseline models while utilizing fewer parameters (17.14M vs. 20.62M).
Conclusion
The Semantic Regeneration Network demonstrates that semantic image extrapolation is achievable by focusing on feature-level expansion and spatially-aware loss functions. While current models are trained for fixed expansion ratios, the success of SRN in generating complex structures like full human bodies and bird anatomy marks a significant step forward for generative image editing.
Summary updated