Abstract
State-of-the-art shadow removal algorithms typically rely on large-scale paired datasets consisting of images with and without shadows. However, collecting such data is labor-intensive and often prone to color inconsistencies. This paper introduces a novel deep-learning framework that circumvents the need for paired data by leveraging physics-based constraints and an adversarial approach trained on patches extracted from a single image. By treating shadow removal as an unpaired image-to-image translation task, the proposed method achieves performance competitive with fully supervised models and demonstrates superior generalization, particularly in video sequences.
Introduction: The Paired Data Bottleneck
The primary challenge in shadow removal is the "data-hungry" nature of modern deep learning models. Supervised methods require thousands of image pairs—one with a shadow and one without—captured from the exact same viewpoint under identical lighting conditions. This process is fraught with difficulty: removing the shadow-casting object without disturbing the camera or changing ambient light is nearly impossible in many real-world scenarios. Furthermore, "self-cast" shadows, where an object casts a shadow on itself, cannot be captured in paired datasets because removing the occluder would remove the object of interest.
To address this dependency, the authors propose a method that learns to remove shadows using only unpaired patches cropped from the same image. This approach exploits the internal statistics of an image, where non-shadow regions serve as a natural reference for how shadow regions should appear once "cleaned."
Methodology
The framework treats shadow removal as a localized translation task, focusing on three distinct types of image patches: non-shadow patches (ground truth references), shadow-boundary patches (containing transitions), and full-shadow patches.
Triple-Network Architecture
The core of the system is a triple-network architecture designed to model the physical process of shadow formation and removal:
- Param-Net: This network predicts shadow parameters ($w$ and $b$) based on a linear illumination model: $I_{relit} = w \cdot I_{shadow} + b$.
- Matte-Net: It predicts a "shadow matte" ($\alpha$), which defines the soft transition at the shadow's edge (the penumbra), allowing for a natural blend between relit and original pixels.
- D-Net (Discriminator): An adversarial component that learns to distinguish between real shadow-free patches and the relit patches generated by the model.
Physics-Based Constraints
Training Generative Adversarial Networks (GANs) on unpaired data can be unstable, often leading to artifacts. To regularize the learning process, the authors enforce several physics-based constraints:
- Search Space Limits: Scaling factors and offsets are bounded to realistic ranges to prevent over-brightening.
- Boundary Loss: Ensures color consistency between pixels immediately inside and outside the shadow boundary.
- Smoothness Loss: Guarantees that the predicted shadow matte ($\alpha$) results in a gradual, natural transition at the shadow edges.
Evaluation and Key Insights
The model was evaluated on the standard ISTD benchmark and a newly introduced Video Shadow Removal Dataset.
Performance and Generalization
On the ISTD dataset, the method achieved a shadow-area Root Mean Square Error (RMSE) of 9.7. While slightly higher than the best supervised methods (approx. 7.9), it significantly outperformed existing unpaired approaches like MaskShadow-GAN (12.4). More importantly, the method showed superior robustness on real-world video data, where supervised models often fail due to domain shifts.
The Power of Fine-Tuning
A key advantage of this unpaired approach is the ability to fine-tune a pre-trained model on a specific target video. Since no ground truth is required, the model can adapt to the unique lighting and textures of a specific scene. Experiments showed that fine-tuning for just one epoch reduced error by 10%, effectively suppressing artifacts caused by imperfect initial shadow masks.
Conclusion
By integrating physical models of light with adversarial learning, this research provides a viable path toward high-quality shadow removal without the burden of paired data collection. While the method currently depends on external shadow masks and a simplified linear illumination model, it sets a new standard for unsupervised shadow removal. As automated shadow detection continues to improve, this framework offers a scalable solution for enhancing image and video quality with minimal human annotation.
Summary updated