Introduction
Shadow removal is a fundamental task in computer vision, yet it remains challenging due to the difficulty of maintaining visual consistency. Traditional deep learning approaches often treat shadow removal as a pixel-level reconstruction problem, aiming to minimize the difference between the restored region and a ground-truth shadow-free image. However, this often results in "visual disharmony," where the restored area appears as a distinct patch that fails to match the color, illumination, or texture of the surrounding non-shadowed regions.
To address this, researchers have introduced SG-ShadowNet, a framework that redefines shadow removal as an "intra-image style transfer" problem. By leveraging the style of non-shadowed regions within the same image, the model produces results that are both technically accurate and visually harmonious.
The SG-ShadowNet Framework
The core of SG-ShadowNet is a two-stage pipeline designed to first remove the shadow and then refine the result to match the global image style.
- Coarse Deshadow Network (CDNet): A lightweight U-Net architecture that performs an initial, rough removal of the shadow to provide a baseline for refinement.
- Style-guided Re-deshadow Network (SRNet): This stage refines the coarse output by extracting a "style prototype" from the non-shadow regions using a Region Style Estimator.
A critical technical innovation within SRNet is Spatially Region-aware Prototypical Normalization (SRPNorm). Unlike standard normalization layers, SRPNorm applies pixel-wise affine transformations (scale and bias) derived from the non-shadow style prototype. This ensures that the restored shadow region captures the spatial variations in lighting and texture present in the rest of the image.
Experimental Results
SG-ShadowNet was evaluated against 14 state-of-the-art methods across major benchmarks, including ISTD+ and SRD.
Quantitative Performance
On the ISTD+ dataset, SG-ShadowNet achieved a Root Mean Square Error (RMSE) of 5.9 in the shadow region, significantly outperforming previous leading methods like Fu et al., which recorded an RMSE of 6.5. Furthermore, the model demonstrated superior generalization on the Video Shadow Removal dataset, reducing RMSE by 25.7% compared to fully-supervised competitors.
Qualitative Harmony
Visually, SG-ShadowNet excels at eliminating "ghosting" artifacts and color mismatches. As shown in comparative results, the transition between the formerly shadowed area and the background is virtually seamless, maintaining the integrity of underlying textures like pavement markings.
Conclusion and Efficiency
Beyond its performance, SG-ShadowNet is highly efficient, utilizing only 6.2 million parameters—a fraction of the size of competing models that often exceed 190 million parameters. While the method currently relies on external shadow masks, its success in using intra-image style transfer opens new possibilities for other restoration tasks, such as reflection removal and general image harmonization. By treating the non-shadowed parts of an image as a stylistic reference, SG-ShadowNet ensures that restored images are not just accurate, but visually consistent.
Summary updated