NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Zoom-to-Inpaint: Image Inpainting with High-Frequency Details

Soo Ye Kim, Kfir Aberman, Nori Kanazawa, Rahul Garg, Neal Wadhwa, Huiwen Chang, Nikhil Karnad, Munchurl Kim, Orly LibaWorkshops @ CVPR 2020

Abstract

Although deep learning has enabled a huge leap forward in image inpainting, current methods are often unable to synthesize realistic high-frequency details. In this paper, we propose applying super-resolution to coarsely reconstructed outputs, refining them at high resolution, and then downscaling the output to the original resolution. By introducing high-resolution images to the refinement network, our framework is able to reconstruct finer details that are usually smoothed out due to spectral bias—the tendency of neural networks to reconstruct low frequencies better than high frequencies. To assist training the refinement network on large upscaled holes, we propose a progressive learning technique in which the size of the missing regions increases as training progresses. Our zoom-in, refine and zoom-out strategy, combined with high-resolution supervision and progressive learning, constitutes a framework-agnostic approach for enhancing high-frequency details that can be applied to any CNN-based inpainting method. This seemingly simple, yet powerful approach, outperforms state-of-the-art inpainting methods.

Introduction

Image inpainting involves filling in missing pixels in an image in a way that is both semantically plausible and visually consistent. While modern deep learning models excel at understanding global context, they frequently suffer from a "blurry center" problem. These models often fail to reconstruct high-frequency details, such as sharp edges, fine textures, or intricate structures like hair and railings.

The authors identify spectral bias as the primary culprit. Neural networks naturally prioritize learning low-frequency components (smooth shapes and colors) over high-frequency ones. Because most models refine images at the target resolution, they lack the necessary "headroom" to capture these delicate details effectively.

Methodology

The proposed Zoom-to-Inpaint framework introduces a "zoom-in, refine, and zoom-out" strategy that can be integrated with existing CNN-based inpainters. The pipeline operates in three distinct stages:

  1. Coarse Inpainting: A base network generates an initial low-resolution reconstruction of the missing region.
  2. Zoom-in & Refine: The coarse output is upscaled using a Super-Resolution (SR) network. A Refinement Network then processes this higher-resolution image, guided by high-resolution (HR) ground truth labels. This high-resolution supervision forces the network to learn and reconstruct sharp details that are typically lost.
  3. Zoom-out: Finally, the refined HR image is downscaled back to the target resolution.
The Zoom-to-Inpaint architecture, featuring coarse inpainting, super-resolution upscaling, high-resolution refinement, and final downscaling.

To optimize this process, the authors utilize Progressive Learning, where the size of the masks increases gradually during training. This approach allows the model to master easier reconstructions before tackling larger, more complex holes, reducing total training iterations by approximately 40%. Additionally, a Gradient Loss function is employed to penalize differences in image gradients, further encouraging the generation of sharp edges.

Experimental Results

The framework was evaluated on the Places2 and DIV2K datasets. Quantitatively, Zoom-to-Inpaint achieved a PSNR of 34.78 on Places2, surpassing competitors like DeepFill-v2 (34.03) and EdgeConnect (33.98). It also showed significant improvements in structural similarity metrics (SSIM and MS-SSIM).

Qualitatively, the model excels at reconstructing fine structures that other methods often blur into a "soup" of pixels. As shown in the comparisons below, Zoom-to-Inpaint maintains the integrity of narrow lines and complex textures even in large masked areas.

Qualitative comparison of Zoom-to-Inpaint against state-of-the-art methods across various scenes and mask sizes.

In a blind user study, participants preferred the results of this method between 64% and 89% of the time compared to other state-of-the-art techniques for standard masks.

Discussion and Conclusion

The core insight of this work is that high-resolution supervision is vital for high-quality inpainting, even when the final output is low-resolution. By refining at a higher resolution, the network can "see" and learn textures that are otherwise ambiguous.

While the method significantly improves visual quality, it does come with a higher computational cost due to the multi-stage refinement process (approx. 293ms inference time). Future work may focus on optimizing this efficiency or exploring advanced GAN architectures to further mitigate repetitive artifacts in extremely large missing regions. Overall, Zoom-to-Inpaint provides a powerful, framework-agnostic solution for restoring the sharp details essential for realistic image synthesis.

Summary updated

BibTeX
@inproceedings{kim2020zoom,
  author = {Soo Ye Kim and Kfir Aberman and Nori Kanazawa and Rahul Garg and Neal Wadhwa and Huiwen Chang and Nikhil Karnad and Munchurl Kim and Orly Liba},
  title = {{Zoom-to-Inpaint: Image Inpainting with High-Frequency Details}},
  booktitle = {Workshops @ CVPR},
  year = {2020},
  url = {https://openreview.net/forum?id=C1zYyHKdJI},
}
Figure