Abstract
Shadow removal is a fundamental task in computer vision, traditionally requiring paired datasets of shadowed and shadow-free images. G2R-ShadowNet introduces a weakly-supervised framework that bypasses this requirement by learning to generate shadows on non-shadow regions. This synthesis provides perfectly aligned training pairs, allowing the model to learn shadow removal without explicit ground truth.
Introduction
Restoring the underlying color and texture of regions obscured by shadows is a persistent challenge. While deep learning models have improved performance, they typically rely on paired datasets—identical scenes captured with and without shadows. Obtaining such data is difficult due to changing environmental conditions and camera movement. Unsupervised methods often struggle with the "domain gap" between disparate shadow and shadow-free images. G2R-ShadowNet addresses these issues by leveraging the relationship between shadow generation and removal within a single image.
Methodology: The G2R-ShadowNet Framework
The proposed architecture consists of three sub-networks trained end-to-end to bridge the gap between synthetic and real shadow removal.
1. Shadow Generation Sub-net ($G$)
This module utilizes a Generative Adversarial Network (GAN) to stylize a non-shadow region so it resembles a shadow. By ensuring the synthetic shadows match the distribution of real shadows within the same image, the model creates realistic training data that preserves the underlying texture and noise characteristics.
2. Shadow Removal Sub-net ($I$)
The removal sub-net is the core component. It attempts to restore the "pseudo-shadow" created by $G$. Because the original non-shadow region serves as a "free" ground truth, the network can learn precise restoration without external paired data.
3. Refinement Sub-net ($R$)
To ensure global consistency, the refinement network processes the entire image. It integrates the restored patch with the surrounding context, smoothing edges and adjusting color temperature to match the global illumination.
Experiments and Results
The model was evaluated on the ISTD benchmark and a Video Shadow Removal dataset.
- Performance: On the ISTD dataset, G2R-ShadowNet achieved a Root Mean Square Error (RMSE) of 8.9 in shadow regions. This significantly outperforms previous weakly-supervised state-of-the-art methods (e.g., Le and Samaras at 10.4) and remains competitive with many fully supervised approaches.
- Efficiency: The framework is highly efficient, processing test images in approximately 0.06 seconds.
- Generalization: Testing on video datasets demonstrated the model's ability to handle moving shadows in unseen environments effectively.
Discussion and Limitations
While G2R-ShadowNet reduces the need for paired data, it remains dependent on accurate shadow masks. Errors in initial shadow detection can lead to artifacts. Furthermore, complex geometries and soft penumbra shadows present challenges for the generation sub-net. Future work may involve integrating shadow detection directly into the pipeline for a fully autonomous end-to-end system.
Conclusion
G2R-ShadowNet demonstrates that modeling the shadow generation process is a powerful proxy for learning shadow removal. By creating self-supervised training pairs from within the same image, the framework achieves state-of-the-art weakly-supervised performance, offering a robust solution for real-world applications where paired data is unavailable.
Summary updated