ShadowFormer: Global Context Helps Shadow Removal
Lanqing Guo, Siyu Huang, Ding Liu, Hao Cheng, Bihan Wen
Abstract
Recent deep learning methods have achieved promising results in image shadow removal. However, most of the existing approaches focus on working locally within shadow and non-shadow regions, resulting in severe artifacts around the shadow boundaries as well as inconsistent illumination between shadow and non-shadow regions. It is still challenging for the deep shadow removal model to exploit the global contextual correlation between shadow and non-shadow regions. In this work, we first propose a Retinex-based shadow model, from which we derive a novel transformer-based network, dubbed ShandowFormer, to exploit non-shadow regions to help shadow region restoration. A multi-scale channel attention framework is employed to hierarchically capture the global information. Based on that, we propose a Shadow-Interaction Module (SIM) with Shadow-Interaction Attention (SIA) in the bottleneck stage to effectively model the context correlation between shadow and non-shadow regions. We conduct extensive experiments on three popular public datasets, including ISTD, ISTD+, and SRD, to evaluate the proposed method. Our method achieves state-of-the-art performance by using up to 150× fewer model parameters. Code is available at: https://github.com/GuoLanqing/ShadowFormer .
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers15
- Resfusion: Denoising Diffusion Probabilistic Models for Image Restoration Based on Prior Residual NoiseZhenning Shi, Haoshuai Zheng, Chen Xu, Changsheng Dong et al.NeurIPS 2024 · 55 citations
- Diff-Shadow: Global-guided Diffusion Model for Shadow RemovalJinting Luo, Ru Li, Chengzhi Jiang, Xiaoming Zhang et al.AAAI 2025 · 15 citations
- JoReS-Diff: Joint Retinex and Semantic Priors in Diffusion Model for Low-light Image EnhancementYuhui Wu, Guoqing Wang, Zhiwen Wang, Yang Yang et al.ACM MM 2024 · 6 citations
- UniSER: A Foundation Model for Unified Soft Effects RemovalJingdong Zhang, Lingzhi Zhang, Qing Liu, Mang Tik Chiu et al.CVPR 2026 · 5 citations
- DenseSR: Image Shadow Removal as Dense PredictionYu-Fan Lin, Chia-Ming Lee, Chih-Chung HsuACM MM 2025 · 4 citations
Builds on11
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
- Uformer: A General U-Shaped Transformer for Image RestorationZhendong Wang, Xiaodong Cun, Jianmin Bao, Wengang Zhou et al.CVPR 2022 · 1,970 citations
- Towards Ghost-Free Shadow Removal via Dual Hierarchical Aggregation Network and Shadow Matting GANXiaodong Cun, Chi-Man Pun, Cheng ShiAAAI 2020 · 272 citations
- Mask-ShadowGAN: Learning to Remove Shadows From Unpaired DataXiaowei Hu, Yitong Jiang, Chi-Wing Fu, Pheng-Ann HengICCV 2019 · 255 citations
- Shadow Removal via Shadow Image DecompositionHieu Le, Dimitris SamarasICCV 2019 · 229 citations
Related papers
- HomoFormer: Homogenized Transformer for Image Shadow RemovalJie Xiao, Xueyang Fu, Yurui Zhu, Dong Li et al.CVPR 2024
- Regional Attention For Shadow RemovalHengxing Liu, Mingjia Li, Xiaojie GuoACM MM 2024 · 10 citations
- ShadowDiffusion: When Degradation Prior Meets Diffusion Model for Shadow RemovalLanqing Guo, Chong Wang, Wenhan Yang, Siyu Huang et al.CVPR 2023
- Recasting Regional Lighting for Shadow RemovalYuhao Liu, Zhanghan Ke, Ke Xu, Fang Liu et al.AAAI 2024 · 30 citations
- Boundary-Aware Divide and Conquer: A Diffusion-based Solution for Unsupervised Shadow RemovalLanqing Guo, Chong Wang, Wenhan Yang, Yufei Wang et al.ICCV 2023 · 29 citations
