[Paper Review] Painting Outside the Box: Image Outpainting with GANs
This paper proposes a GAN-based approach for image outpainting that generates realistic image extensions beyond the original boundaries. Using a three-phase training schedule with a global and local discriminator, the method achieves stable, high-quality outpainting of 128×128 images, enabling recursive outpainting with plausible textures and improved fidelity when using local discriminators.
The challenging task of image outpainting (extrapolation) has received comparatively little attention in relation to its cousin, image inpainting (completion). Accordingly, we present a deep learning approach based on Iizuka et al. for adversarially training a network to hallucinate past image boundaries. We use a three-phase training schedule to stably train a DCGAN architecture on a subset of the Places365 dataset. In line with Iizuka et al., we also use local discriminators to enhance the quality of our output. Once trained, our model is able to outpaint $128 imes 128$ color images relatively realistically, thus allowing for recursive outpainting. Our results show that deep learning approaches to image outpainting are both feasible and promising.
Motivation & Objective
- To address the underexplored task of image outpainting, which involves generating realistic image extensions beyond known boundaries.
- To adapt adversarial training techniques from image inpainting to the more challenging outpainting setting.
- To stabilize GAN training for outpainting through a three-phase training schedule and architectural enhancements.
- To evaluate the impact of local discriminators and dilated convolutions on generation quality and stability.
- To enable recursive outpainting for applications such as panorama creation and video expansion.
Proposed method
- The model uses a DCGAN architecture with an encoder-decoder generator and a discriminator using strided convolutions for binary classification.
- A three-phase training schedule is employed: Phase 1 pre-trains the generator using MSE loss, Phase 2 trains the discriminator with adversarial loss, and Phase 3 jointly optimizes both with a combined loss function.
- The generator loss combines MSE reconstruction loss and adversarial loss: $\mathcal{L}_{G} = \mathcal{L}_{\mathrm{MSE}} - \alpha \cdot \log D(G(I_p))$.
- A local discriminator is introduced to focus on the outpainted region, improving texture and color fidelity compared to a global discriminator alone.
- Dilated convolutions are used in the generator to expand the receptive field and enable effective extrapolation beyond the image boundaries.
- Preprocessing involves masking the central region, replacing outer pixels with the mean of unmasked regions, and concatenating the masked image with the mask to form a 4-channel input.
Experimental results
Research questions
- RQ1Can GANs be effectively adapted for image outpainting, a task less explored than image inpainting?
- RQ2Does a three-phase training schedule improve training stability for outpainting GANs compared to standard GAN training?
- RQ3How does the inclusion of a local discriminator affect the visual quality and realism of outpainted images?
- RQ4To what extent do dilated convolutions enhance the generator's ability to extrapolate beyond image boundaries?
- RQ5Can recursive outpainting be achieved with stable, realistic results over multiple iterations?
Key findings
- The three-phase training schedule significantly improved training stability, with MSE loss decreasing rapidly in Phase 1 and increasing slightly in Phase 3 due to joint optimization.
- Training with a local discriminator reduced vertical banding and improved color fidelity, resulting in lower RMSE compared to using only a global discriminator.
- The local discriminator increased training time by approximately 60% and introduced more point artifacts, indicating a trade-off between quality and efficiency.
- Dilated convolutions were essential for successful outpainting; without sufficient dilation, the network failed to reconstruct the image due to limited receptive field.
- Recursive outpainting over five iterations successfully extended the image width by a factor of 3.5, preserving general textures and realism despite compounding noise.
- The model achieved realistic outpainting of 128×128 color images, demonstrating the feasibility and promise of deep learning for image extrapolation.
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.