Abstract
Shadow removal is an essential task for scene understanding. Many studies consider only matching the image contents, which often causes two types of ghosts: color inconsistencies in shadow regions or artifacts on shadow boundaries. In this paper, we tackle these issues in two ways. First, we propose the Dual Hierarchically Aggregation Network (DHAN), which uses growth dilated convolutions to maintain resolution and hierarchically aggregates multi-context features. Second, we design a Shadow Matting Generative Adversarial Network (SMGAN) to synthesize realistic shadow mattings, significantly expanding training data diversity. Experiments show our DHAN produces high-quality ghost-free images, outperforming state-of-the-art methods by a large margin.
Introduction
Shadow removal is more than just brightening dark pixels. Traditional deep learning methods often suffer from "ghosting" artifacts: visible seams at shadow boundaries and color inconsistencies in restored regions. These issues stem from architectural flaws—specifically the loss of high-frequency details during downsampling—and the scarcity of diverse training data. Existing datasets, while containing thousands of images, often feature very few unique scenes, limiting the model's ability to generalize across different textures and lighting conditions.
Methods
We address these challenges with a two-part framework designed to preserve spatial precision and enhance data variety.
Dual Hierarchical Aggregation Network (DHAN)
Unlike standard U-Nets that rely on pooling and upsampling, DHAN utilizes a backbone of growth dilated convolutions. This design maintains high resolution throughout the network, preserving the low-level details necessary for sharp, artifact-free boundaries. The network features two parallel hierarchical structures for extracting multi-context features and spatial attention, respectively.
Shadow Matting GAN (SMGAN)
To overcome data scarcity, we developed SMGAN to synthesize realistic training pairs. Instead of generating shadowed pixels directly, SMGAN learns a "shadow matting" ($I_{matting}$). The synthetic shadowed image is produced by multiplying a shadow-free image by this learned matte ($I_{shadow} = I_{matting} \times I_{free}$). This physics-informed approach allows us to augment datasets with an almost infinite variety of textures and shadow masks, teaching the model to handle diverse real-world scenes.
Results and Discussion
The model was trained and evaluated on major benchmarks including ISTD, SRD, and SBU. Our method, particularly when using data augmentation (Ours+DA), achieved state-of-the-art results. On the ISTD dataset, the model reached a Root Mean Square Error (RMSE) of 5.76, a significant improvement over previous leaders like DSC (6.67) and ST-CGAN (7.47).
Visual comparisons highlight the "ghost-free" nature of our results. While other methods leave visible halos or incorrect hues, DHAN produces smooth transitions and consistent textures, even in complex areas where shadows cross different surface types.
Conclusion
By combining a resolution-preserving architecture with a generative matting approach for data augmentation, we effectively eliminate common artifacts in shadow removal. Future work will explore more complex light-transport modeling to handle intricate self-shadowing and multi-light environments.
Summary updated