TL;DR
This paper tackles the critical challenge of objectively evaluating image inpainting algorithms, which has been hampered by the subjective nature of "realism." The authors conduct a large-scale human study to establish a perceptual benchmark and then propose novel objective metrics that correlate well with human judgment, offering a much-needed standard for the field.
What Problem Does This Paper Address?
Image inpainting, the art of filling in missing parts of an image, has seen tremendous progress, especially with the advent of deep learning. However, a major bottleneck in advancing this field is the lack of a reliable and standardized method for evaluating the quality of the generated results. Traditional objective metrics like PSNR and SSIM, which measure pixel-wise similarity to a ground truth image, often fail to capture what humans perceive as "realistic." This is because realism is inherently subjective, and there can be multiple valid ways to fill a hole. For instance, removing an object from a photo can lead to different, yet equally realistic, outcomes. This ambiguity makes it difficult to compare different inpainting algorithms fairly and hinders reproducible research.
Methods
The core of this work lies in two main components: a subjective evaluation and the development of objective metrics.
Subjective Evaluation: The authors conducted a comprehensive human study. They gathered nine state-of-the-art inpainting algorithms (both classical and deep learning-based) and also included results from professional photo editors. Participants were shown pairs of inpainted images and asked to choose the one they found most realistic. This pairwise comparison method, combined with a verification task, allowed them to collect a substantial amount of perceptual data.
Objective Metrics: Based on the insights from the subjective study, the authors explored two types of objective metrics:
- Full-Reference Metrics: These metrics compare the inpainted image to the original ground truth. The authors went beyond simple pixel-wise comparisons by using feature maps extracted from pre-trained deep neural networks (like VGG, ResNet, Inception). They found that using the deepest layers of these networks yielded better correlations with human perception.
- No-Reference Metrics: These metrics evaluate the inpainted image without access to the original. The authors developed these using a deep learning approach. They trained neural networks to distinguish between "clean" (original) images and inpainted images. The idea is that a good inpainting metric should assign a high score to images that are indistinguishable from clean ones.
Datasets
- Test Data Set: The authors created a private dataset of 33 images, each 512x512 pixels, with a central square hole of 180x180 pixels. This dataset was specifically designed to avoid publicly available images that could be easily found online, ensuring the inpainting results were not trivially reproducible.
- Training Data Set (for No-Reference Metrics): For training their no-reference metrics, they used images from the COCO dataset. They created inpainted versions of these images by applying five different inpainting algorithms in various configurations, resulting in a large dataset of both clean and inpainted images.
Key Insights and Ideas
- Human perception is king: The study unequivocally shows that human artists consistently outperform automatic algorithms in producing realistic inpainting results. This reinforces the need for metrics that align with human judgment.
- Traditional metrics fall short: Metrics like SSIM, while useful for general image quality, correlate poorly with human perception of realism in inpainting. This is a crucial finding that justifies the need for new evaluation methods.
- Deep features matter: Using feature maps from deep neural networks for full-reference metrics significantly improves correlation with human scores compared to pixel-wise comparisons. This suggests that semantic understanding is key.
- No-reference metrics are viable: The development of effective no-reference metrics is a significant contribution, as these are more broadly applicable than full-reference metrics. The authors demonstrate that networks trained to distinguish clean from inpainted images can achieve good perceptual correlation.
- The "original" is not always the goal: The observation that human artists sometimes produced results that were perceived as more realistic than the original image highlights the subjective nature of realism and the limitations of metrics that solely rely on the ground truth.
Key Results
- Human artists achieved the highest subjective scores, outperforming all automatic algorithms.
- Among automatic algorithms, generative inpainting methods showed the most promise, with some outperforming classical methods.
- The best full-reference metric identified was the deepest layer of the VGG-16 network.
- The best no-reference metric was an Inception-V4 model trained for classification, with spectral normalization.
- The proposed objective metrics achieved good correlation with the subjective human comparisons, with Pearson correlation coefficients reaching up to approximately 0.8 for the best full-reference metric and around 0.7 for the best no-reference metric (as shown in Figures 8 and 9).
Limitations and Future Work
- Subjectivity of "realism": While the study provides a strong benchmark, the inherent subjectivity of human perception means that perfect agreement is impossible. The authors acknowledge that their subjective evaluation is a "gold standard" but not the absolute truth.
- Dataset limitations: The private test dataset, while useful for avoiding online lookups, might not cover the full diversity of real-world inpainting scenarios.
- Future Work: The authors suggest that their proposed objective metrics can serve as a foundation for further research in developing more accurate and reliable inpainting evaluation tools. They also highlight the ongoing need for better automatic inpainting algorithms that can approach human-level realism.
Summary updated