[Paper Review] High-Resolution Image Inpainting using Multi-Scale Neural Patch Synthesis
This paper proposes a multi-scale neural patch synthesis method for high-resolution image inpainting that jointly optimizes global content and local texture constraints using deep feature correlations. By leveraging a pre-trained classification network to match mid-layer patch responses and iteratively refining results from coarse to fine scales, the approach achieves state-of-the-art results with sharper, more coherent details than prior methods, especially on 512×512 images.
Recent advances in deep learning have shown exciting promise in filling large holes in natural images with semantically plausible and context aware details, impacting fundamental image manipulation tasks such as object removal. While these learning-based methods are significantly more effective in capturing high-level features than prior techniques, they can only handle very low-resolution inputs due to memory limitations and difficulty in training. Even for slightly larger images, the inpainted regions would appear blurry and unpleasant boundaries become visible. We propose a multi-scale neural patch synthesis approach based on joint optimization of image content and texture constraints, which not only preserves contextual structures but also produces high-frequency details by matching and adapting patches with the most similar mid-layer feature correlations of a deep classification network. We evaluate our method on the ImageNet and Paris Streetview datasets and achieved state-of-the-art inpainting accuracy. We show our approach produces sharper and more coherent results than prior methods, especially for high-resolution images.
Motivation & Objective
- To address the limitations of existing deep learning-based inpainting methods that fail on high-resolution images due to memory and training constraints.
- To improve the synthesis of high-frequency texture details while preserving global structural coherence in inpainted regions.
- To overcome the blurriness and artifact issues common in methods relying solely on adversarial or L2 loss in content prediction.
- To enable effective inpainting of large, arbitrary-shaped holes beyond fixed rectangular masks.
- To develop a scalable, multi-scale optimization framework that maintains fidelity across resolution levels.
Proposed method
- The method uses a joint optimization framework that combines a global content constraint from a trained encoder-decoder network and a local texture constraint based on mid-layer feature correlations from a pre-trained classification network.
- Neural patch similarity is computed using 3×3 local responses from intermediate layers of a deep network to guide texture synthesis.
- A multi-scale pyramid is constructed with downsampling by a factor of two at each level, starting from 128×128 with a 64×64 hole, enabling coarse-to-fine refinement.
- At each scale, the hole is initialized with the content network’s output, then jointly optimized using limited-memory BFGS to minimize content and texture loss.
- The optimized result at each scale is upsampled and used to initialize the next higher-resolution optimization, preserving structural consistency.
- For arbitrary-shaped holes, the method uses a bounding rectangle, fills it with mean pixel values, and applies the same optimization pipeline.
Experimental results
Research questions
- RQ1Can a joint optimization of content and texture constraints improve high-resolution image inpainting beyond what is achievable with end-to-end networks alone?
- RQ2How effective is using mid-layer feature correlations from a pre-trained network to guide local patch synthesis in generating high-frequency details?
- RQ3Does a multi-scale, coarse-to-fine optimization strategy mitigate the blurriness and structural artifacts seen in single-scale deep learning methods?
- RQ4Can the method generalize to arbitrary-shaped holes without requiring specialized architecture modifications?
- RQ5How does the inclusion of adversarial loss in the content network affect the quality of initialization and final inpainting results?
Key findings
- The proposed method achieves state-of-the-art inpainting accuracy on both ImageNet and Paris Streetview datasets, outperforming prior methods in structural coherence and texture detail.
- Results show significantly sharper textures and fewer visible boundary artifacts compared to Context Encoder and PatchMatch-based approaches, especially on 512×512 images.
- Using adversarial loss in the content network leads to a crisper initialization, which directly improves the final inpainting quality and reduces blurriness.
- The multi-scale optimization framework enables effective handling of large holes (e.g., 256×256) in high-resolution images, which prior learning-based methods cannot scale to.
- The method successfully generates new textures rather than directly propagating existing patches, enabling more realistic synthesis in complex scenes.
- Despite its performance, the method is slower than real-time, taking approximately 1 minute per image on a Titan X GPU, primarily due to iterative optimization.
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.