Semantic Guided Single Image Reflection Removal

Yunfei Liu, Yu Li, Shaodi You, Feng Lu

TL;DR

This paper introduces a novel deep learning approach for removing reflections from single images by leveraging semantic information. By jointly learning to segment objects and remove reflections, their method achieves significantly better results than previous approaches, especially in complex scenes.

What Problem Does This Paper Address?

Reflections on glass surfaces are a common nuisance in photography, not only making images visually unappealing but also hindering the performance of computer vision tasks like object detection and recognition. The core challenge is that removing reflections from a single image is an "ill-posed" problem: a single input image contains information from both the background and the reflection, making it difficult to disentangle them. Existing methods rely on low-level image properties (like smoothness or color consistency) which often fail in real-world scenarios. The authors observe that humans easily separate reflections by understanding the objects in the scene, a high-level semantic understanding that has been largely ignored by prior work.

Methods

The authors propose a multi-task, end-to-end deep learning framework called Semantic Guided Reflection Removal Network (SGR²N). The key innovation is the integration of semantic segmentation as a guiding signal for reflection removal.

Here's a breakdown of their approach:

  • Shared Encoder: A ResNet-101 backbone extracts rich features from the input image.
  • Semantic Segmentation Module: This module takes features from the encoder and predicts a semantic map of the scene. This is done using a DeepLabv3+ architecture.
  • Semantic Guidance Module: This is the core novelty. It takes intermediate features from the semantic segmentation module and uses them to guide the reflection removal process. This module is designed to help the network focus on meaningful objects.
  • Separation Module: This module uses the features from the shared encoder and the guidance from the semantic module to reconstruct the clear background (B) and the reflection (R) layers. Contextual attention mechanisms are employed here.
  • Multi-Task Learning: The reflection removal and semantic segmentation tasks are trained simultaneously, allowing them to benefit from each other.
  • Loss Functions: A combination of feature loss, pixel loss, adversarial loss (for realism), and cross-entropy loss (for semantic segmentation) is used to train the network.

Datasets

  • Synthetic Dataset: The authors generated a new dataset by synthesizing reflections onto images from the Pascal VOC dataset. This dataset includes input images with reflections, clear backgrounds, reflection layers, and importantly, semantic labels for training.
  • Real-world Datasets:
    • Berkeley dataset (20 images)
    • SIR² dataset (463 images)

Key Insights and Ideas

  • Human intuition as inspiration: The core idea that humans use object understanding to separate reflections is a powerful insight that guides the entire approach.
  • Semantic information is crucial: High-level semantic cues are more effective for reflection removal than traditional low-level priors, especially in complex scenes.
  • Joint learning benefits both tasks: Training reflection removal and semantic segmentation together leads to improved performance in both tasks. The semantic segmentation helps guide reflection removal, and the reflection removal task can potentially lead to cleaner semantic segmentation.
  • Mid-level features are informative: The authors found that intermediate features from the semantic segmentation module are most effective for guiding reflection removal.

Key Results

  • Quantitative Improvements: The SGR²N achieved state-of-the-art performance on multiple datasets, showing significant improvements in PSNR and SSIM for both background and reflection layers compared to previous methods. For example, on the synthetic dataset, they achieved a PSNR of 26.02 for the background and 18.51 for the reflection, outperforming prior work.
  • Qualitative Improvements: Visual results demonstrate that the SGR²N can remove reflections more effectively, producing cleaner backgrounds and more accurate reflections, especially in challenging scenarios with complex objects.
  • Efficiency: The proposed method is also computationally efficient, requiring fewer parameters and achieving faster inference times compared to some state-of-the-art methods.
  • Generalization: The method demonstrates good generalization ability on other low-level vision tasks like dehazing and deraining, further highlighting the robustness of their semantic guidance approach.

Limitations and Future Work

  • Extreme Reflection Strength: The method struggles with extremely strong reflections where the background is heavily contaminated or lacks distinct semantic information. These are considered hard cases.
  • Texture-less Backgrounds: Cases where the background layer is texture-less can also pose challenges.
  • Future Directions: The authors suggest annotating more semantic labels to improve performance in scenarios with unseen semantic categories. They also leave the handling of extreme reflection cases as a future research direction.

Summary updated

BibTeX
@article{liu2022semantic,
  author = {Yunfei Liu and Yu Li and Shaodi You and Feng Lu},
  title = {{Semantic Guided Single Image Reflection Removal}},
  journal = {ACM Trans. Multim. Comput. Commun. Appl.},
  year = {2022},
  doi = {10.1145/3510821},
}
Figure