Introduction
Removing undesirable reflections from a single image captured through a glass window is a critical challenge in visual computing. The problem is fundamentally ill-posed: an input image $I$ is a combination of the desired transmission layer $T$ and the distracting reflection layer $R$ ($I = T + R$). Because there are infinite ways to decompose a single image into two layers, learning-based methods are typically required to resolve the ambiguity. However, these methods are often hampered by the lack of high-quality, real-world training data.
This paper introduces ERRNet, a deep learning pipeline that addresses these bottlenecks through targeted network enhancements and a novel training strategy that utilizes misaligned real-world data.
The ERRNet Architecture
To improve the network's ability to distinguish between background scenes and reflections, the authors propose two primary architectural enhancements focused on context encoding.
Standard convolutional layers have a limited receptive field, which can lead to local patches of strong reflections being misidentified as background objects. ERRNet incorporates Context Encoding Modules to mitigate this:
- Channel-wise Context: Utilizing a "Squeeze-and-Excitation" mechanism, the network prioritizes specific feature channels based on global image statistics.
- Multi-scale Spatial Context: A Pyramid Pooling Module aggregates information at various scales, allowing the network to leverage the global structure of the scene to identify reflections.
Exploiting Misaligned Data
A major contribution of this work is the Alignment-Invariant Loss. Traditionally, training reflection removal models requires perfectly aligned pairs of "with glass" and "without glass" images. Collecting such data is labor-intensive, requiring tripods and static scenes to avoid even sub-pixel shifts that would cause standard loss functions (like Mean Squared Error) to fail.
The authors discovered a "Goldilocks zone" in pre-trained networks: high-level features from the 'conv5_2' layer of VGG-19 are robust to small spatial misalignments while still capturing essential semantic content. By using these features in their loss function, the authors can train ERRNet on pairs of images that are not perfectly aligned.
Datasets and Experimental Results
The study utilized a diverse training set, including 7,643 synthetic images and a new Unaligned Dataset of 450 real-world image pairs captured with handheld devices. This flexibility allowed for a much wider variety of indoor and outdoor scenes than previously possible.
Quantitative and Qualitative Performance
ERRNet demonstrated superior performance over state-of-the-art (SOTA) methods across multiple benchmarks:
- Real20 Benchmark: ERRNet achieved a PSNR of 22.89 and SSIM of 0.803, significantly outperforming the previous SOTA (CEILNet-F at 20.32 PSNR).
- Visual Quality: The model is particularly effective at removing sharp, high-contrast reflections that often leave "ghostly" artifacts in other models.
- Human Preference: In a study of 30 observers, results from the model fine-tuned with unaligned real data were preferred over versions trained only on synthetic or aligned data by a margin of over 50%.
Conclusion
By breaking the "tripod constraint," ERRNet opens new avenues for scaling reflection removal datasets. The combination of context-aware architecture and alignment-invariant training allows the model to handle the messy reality of physical reflections better than previous synthetic-heavy approaches. While extremely complex "wild" outdoor scenes remain a challenge, this work provides a robust framework for leveraging easily collected real-world data to solve ill-posed imaging problems.
Summary updated