Jianyi Hu , Shuhuan Wen , Jiaqi Li , Hamid Reza Karimi
{"title":"ShadowGAN-Former: Reweighting self-attention based on mask for shadow removal","authors":"Jianyi Hu , Shuhuan Wen , Jiaqi Li , Hamid Reza Karimi","doi":"10.1016/j.neunet.2025.107175","DOIUrl":null,"url":null,"abstract":"<div><div>Shadow removal remains a challenging visual task aimed at restoring the original brightness of shadow regions in images. Many existing methods overlook the implicit clues within non-shadow regions, leading to inconsistencies in the color, texture, and illumination of the reconstructed shadow-free images. To address these issues, we propose an efficient hybrid model of Transformer and Generative Adversarial Network (GAN), named ShadowGAN-Former, which utilizes information from non-shadow regions to assist in shadow removal. We introduce the Multi-Head Transposed Attention (MHTA) and Gated Feed-Forward Network (Gated FFN), designed to enhance focus on key features while reducing computational costs. Furthermore, we propose the Shadow Attention Reweight Module (SARM) to reweight the self-attention maps based on the correlation between shadow and non-shadow regions, thereby emphasizing the contextual relevance between them. Experimental results on the ISTD and SRD datasets show that our method outperforms popular and state-of-the-art shadow removal algorithms, with the SARM module improving PSNR by 5.42% and reducing RMSE by 14.76%.</div></div>","PeriodicalId":49763,"journal":{"name":"Neural Networks","volume":"185 ","pages":"Article 107175"},"PeriodicalIF":6.0000,"publicationDate":"2025-01-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Neural Networks","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0893608025000541","RegionNum":1,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE","Score":null,"Total":0}
引用次数: 0
Abstract
Shadow removal remains a challenging visual task aimed at restoring the original brightness of shadow regions in images. Many existing methods overlook the implicit clues within non-shadow regions, leading to inconsistencies in the color, texture, and illumination of the reconstructed shadow-free images. To address these issues, we propose an efficient hybrid model of Transformer and Generative Adversarial Network (GAN), named ShadowGAN-Former, which utilizes information from non-shadow regions to assist in shadow removal. We introduce the Multi-Head Transposed Attention (MHTA) and Gated Feed-Forward Network (Gated FFN), designed to enhance focus on key features while reducing computational costs. Furthermore, we propose the Shadow Attention Reweight Module (SARM) to reweight the self-attention maps based on the correlation between shadow and non-shadow regions, thereby emphasizing the contextual relevance between them. Experimental results on the ISTD and SRD datasets show that our method outperforms popular and state-of-the-art shadow removal algorithms, with the SARM module improving PSNR by 5.42% and reducing RMSE by 14.76%.
期刊介绍:
Neural Networks is a platform that aims to foster an international community of scholars and practitioners interested in neural networks, deep learning, and other approaches to artificial intelligence and machine learning. Our journal invites submissions covering various aspects of neural networks research, from computational neuroscience and cognitive modeling to mathematical analyses and engineering applications. By providing a forum for interdisciplinary discussions between biology and technology, we aim to encourage the development of biologically-inspired artificial intelligence.