Abstract
Although recent inpainting approaches have demonstrated significant improvement with deep neural networks, they still suffer from artifacts such as blunt structures and abrupt colors when filling in the missing regions. To address these issues, we propose an external-internal inpainting scheme with a monochromic bottleneck that helps image inpainting models remove these artifacts. In the external learning stage, we reconstruct missing structures and details in the monochromic space to reduce the learning dimension. In the internal learning stage, we propose a novel internal color propagation method with progressive learning strategies for consistent color restoration. Extensive experiments demonstrate that our proposed scheme helps image inpainting models produce more structure-preserved and visually compelling results.
TL;DR
This paper introduces a novel "external-internal" framework for image inpainting that separates structure reconstruction from color restoration. By using a monochromic bottleneck—completing the image in grayscale first using large-scale datasets and then colorizing it using the image's own internal statistics—the authors significantly reduce common artifacts like color bleeding and structural blurring.
What Problem Does This Paper Address?
Image inpainting—the task of filling in missing or masked regions of an image—has seen massive leaps thanks to deep learning. However, even state-of-the-art models often produce two types of frustrating artifacts:
- Blunt Structures: Reconstructed edges and details often look "mushy" or anatomically incorrect.
- Color Bleeding: Models trained on massive, diverse datasets (external learning) often "hallucinate" colors that don't match the specific test image, leading to jarring purple or green splotches in a natural landscape.
The authors argue that these issues stem from the high dimensionality of the optimization space (trying to learn RGB structure and color simultaneously) and the discrepancy between global dataset statistics and the local color distribution of a single specific image.
Methods
The proposed framework splits the task into two distinct stages:
Stage I: External Monochromic Reconstruction
Instead of predicting RGB values, the model is trained on large datasets to reconstruct only the monochrome (grayscale) version of the missing region.
- Why? Reducing the output space from $\mathbb{R}^3$ (RGB) to $\mathbb{R}^1$ (Grayscale) simplifies the learning task. The model can focus entirely on geometric structures and textures without being "distracted" by color.
- Compatibility: This stage is "orthogonal" to existing research, meaning it can be applied as a wrapper around existing backbones like GatedConv or EdgeConnect.
Stage II: Internal Color Restoration
Once the grayscale structure is complete, the model needs to add color. Instead of relying on external data, it uses Internal Learning.
- The Mechanism: The system learns a color mapping function specifically from the unmasked (original) parts of the test image.
- Progressive Restoration: Because a single grayscale value can correspond to different colors (e.g., a dark gray pixel could be dark red or dark blue), the authors use a pyramid of generators ($G_0$ to $G_N$). This allows the model to capture both global color statistics (at coarse scales) and local textures (at fine scales) to ensure the color propagates naturally into the hole.
Datasets
The authors evaluated their method on four widely used benchmarks:
- Places2: A massive dataset of over 18 million images across 365 scene categories.
- Paris StreetView: 15,000 outdoor building images.
- CelebA-HQ: 30,000 high-quality face images.
- DTD (Describable Textures Dataset): 5,640 texture images used specifically to test structural reconstruction.
- Masks: They used a randomized algorithm to generate "dense irregular masks" that simulate real-world brush strokes.
Key Insights and Ideas
- The Power of Grayscale: The "Monochromic Bottleneck" is the paper's most clever insight. By forcing the network through a grayscale stage, the authors effectively "decouple" the complexity of shape from the complexity of color.
- Internal vs. External: External learning is great for semantics (knowing that a face needs an eye), but internal learning is superior for appearance (knowing exactly what shade of blue the sky is in this specific photo).
- Cross-Dataset Generalization: Because the model learns structure in monochrome, it generalizes much better to new types of images. A model trained on natural scenes (Places2) performs significantly better on textures (DTD) when using the monochromic bottleneck than a standard RGB model would.
Key Results
The authors compared their method against several heavyweights, including GatedConv, EdgeConnect, and HiFill.
- Quantitative: Their method consistently improved PSNR (Peak Signal-to-Noise Ratio) and SSIM (Structural Similarity) across all datasets. For example, on Places2, their version of GatedConv improved PSNR from 23.94 to 24.58.
- Qualitative: The visual results are striking. In cases where standard models produced "purple clouds" or "blurry edges," the proposed method maintained sharp lines and perfectly harmonized colors.
- User Study: In a "blind" test on Amazon Mechanical Turk, participants preferred the authors' results over the baselines by a wide margin (often over 70-80% preference).
Limitations and Future Work
- Inference Speed: The biggest drawback is that the "Internal Learning" stage requires training a small network on the fly for every new test image. This makes the process significantly slower than "one-pass" deep learning models.
- Complex Foregrounds: While the model excels at textures and backgrounds, it still struggles with highly complex, unique foreground objects if the mask is extremely large and provides no internal hints.
- Future Directions: The authors suggest accelerating the internal colorization procedure and extending the "external-internal" philosophy to other low-level vision tasks like super-resolution.
Summary updated