Diff-Shadow: Global-guided Diffusion Model for Shadow Removal

Jinting Luo, Ru Li, Chengzhi Jiang, Xiaoming Zhang, Mingyan Han +3 more
7/23/2024
cs.CV

No official code found. Best implementation: MonteCarluo/Diff-Shadow (9 stars, MIT, last commit 2024-12-13).

Abstract

We propose Diff-Shadow, a global-guided diffusion model for shadow removal. Previous transformer-based approaches can utilize global information to relate shadow and non-shadow regions but are limited in their synthesis ability and recover images with obvious boundaries. In contrast, diffusion-based methods can generate better content but they are not exempt from issues related to inconsistent illumination. In this work, we combine the advantages of diffusion models and global guidance to achieve shadow-free restoration. Specifically, we propose a parallel UNets architecture: 1) the local branch performs the patch-based noise estimation in the diffusion process, and 2) the global branch recovers the low-resolution shadow-free images. A Reweight Cross Attention (RCA) module is designed to integrate global contextual information of non-shadow regions into the local branch. We further design a Global-guided Sampling Strategy (GSS) that mitigates patch boundary issues and ensures consistent illumination across shaded and unshaded regions in the recovered image. Comprehensive experiments on datasets ISTD, ISTD+, and SRD have demonstrated the effectiveness of Diff-Shadow. Compared to state-of-the-art methods, our method achieves a significant improvement in terms of PSNR, increasing from 32.33dB to 33.69dB on the ISTD dataset.

View on arXivView PDF

Code Implementations(1)

MIT

AAAI2025:Diff-Shadow: Global-guided Diffusion Model for Shadow Removal

90Dec 13, 20241 years agoMIT

Similar Papers

Cite this paper

@article{luo2024diffshadow,
  title  = {Diff-Shadow: Global-guided Diffusion Model for Shadow Removal},
  author = {Jinting Luo and Ru Li and Chengzhi Jiang and Xiaoming Zhang and Mingyan Han and Ting Jiang and Haoqiang Fan and Shuaicheng Liu},
  year   = {2024},
  eprint = {2407.16214},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.16214v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.16214.svg)](https://codeofpaper.com/paper/2407.16214)

Discussion