Abstract
Existing shadow removal methods often rely on pixel-level reconstruction to learn deterministic mappings between shadow and shadow-free images. However, focusing solely on local restoration in shadowed regions can inadvertently damage non-shadowed areas. Additionally, most current diffusion models suffer from high computational costs and sensitivity to image resolution. To address these issues, this paper proposes a Wavelet Non-uniform Diffusion Model (WNDM) for shadow removal. The method first decomposes the image into low-frequency and high-frequency components using wavelet transform. Separate diffusion generation networks are then designed for each component to reconstruct the wavelet domain distribution of the shadow-free image, restoring degradation in color, brightness (low-frequency), and fine textures (high-frequency). Experimental results on three benchmark datasets (SRD, ISTD, and ISTD+) demonstrate that WNDM achieves state-of-the-art performance in terms of PSNR, SSIM, and RMSE. Notably, on the SRD dataset, WNDM is approximately four times faster than standard diffusion models and maintains stable performance across varying resolutions.
Introduction
Shadow removal is a fundamental task in computer vision that involves restoring color, contrast, and texture in shadowed regions while preserving the integrity of the rest of the image. Traditional deep learning approaches, such as CNNs and GANs, often struggle with "ghosting" artifacts at shadow boundaries or fail to recover accurate colors due to their reliance on deterministic pixel-to-pixel mapping. While Diffusion Models (DMs) offer superior generative capabilities for realistic restoration, they are typically slow and highly sensitive to input resolution—models trained on low-resolution patches often fail when applied to high-resolution original images.
Methodology
The core innovation of the Wavelet Non-uniform Diffusion Model (WNDM) is the integration of Discrete Wavelet Transform (DWT) with a specialized dual-branch diffusion process.
Wavelet Decomposition and Dual-Branch Diffusion
By applying DWT, the input image is split into low-frequency components (capturing global illumination and color) and high-frequency components (capturing sparse details and textures). This decomposition reduces the spatial resolution of the data, significantly accelerating the diffusion process.
The model employs two specialized branches:
- Low-frequency Diffusion Adjustment (LDA): Optimized for restoring color and brightness.
- High-frequency Diffusion Adjustment (HDA): Focused on recovering lost scene structures and fine details.
Non-uniform Noise Scheduling
Recognizing that noise affects different frequency bands uniquely, the authors introduced adaptive noise schedules. This non-uniform approach ensures that the diffusion process is optimized for the specific characteristics of each frequency component, leading to more accurate reconstructions.
Experimental Results
The WNDM model was rigorously tested against representative methods on the SRD and ISTD+ datasets.
- Superior Restoration: On the SRD dataset, WNDM achieved optimal or near-optimal results across all metrics (PSNR, SSIM, and RMSE) for both shadowed regions and the entire image. On ISTD+, it set a new benchmark for non-shadowed area restoration, improving PSNR by 0.47 dB.
- Resolution Robustness: Unlike previous diffusion methods like ShadowDiffusion, which see error rates double when moving from $256 \times 256$ to $840 \times 640$ resolution, WNDM's performance remains stable. This is because it operates in the wavelet domain, making it inherently less sensitive to raw pixel dimensions.
- Efficiency: By halving spatial dimensions through DWT, WNDM achieves a 4x speedup in inference time compared to standard diffusion models, taking approximately 1.65 seconds for a high-resolution image.
Conclusion
The proposed Wavelet Non-uniform Diffusion Model effectively addresses the speed and resolution limitations of standard diffusion models in shadow removal. By processing frequency components separately, it restores missing color and intricate details with high fidelity. Future work will explore unpaired learning and the integration of physical light transport models to further enhance interpretability and generalization.
Summary updated