Skip to main content
QUICK REVIEW

[Paper Review] Prompt-Aware Controllable Shadow Removal

Kerui Chen, Wu Zhong|ArXiv.org|Jan 25, 2025
Image and Signal Denoising MethodsComputer Science4 citations
TL;DR

The paper introduces PACSRNet, a prompt-aware framework for controllable shadow removal that removes shadows of user-specified subjects via prompts (dot/line/subject mask) without needing shadow masks, and provides a new prompt-based shadow removal dataset PCSRD.

ABSTRACT

Shadow removal aims to restore the image content in shadowed regions. While deep learning-based methods have shown promising results, they still face key challenges: 1) uncontrolled removal of all shadows, or 2) controllable removal but heavily relies on precise shadow region masks. To address these issues, we introduce a novel paradigm: prompt-aware controllable shadow removal. Unlike existing approaches, our paradigm allows for targeted shadow removal from specific subjects based on user prompts (e.g., dots, lines, or subject masks). This approach eliminates the need for shadow annotations and offers flexible, user-controlled shadow removal. Specifically, we propose an end-to-end learnable model, the Prompt-Aware Controllable Shadow Removal Network (PACSRNet). PACSRNet consists of two key modules: a prompt-aware module that generates shadow masks for the specified subject based on the user prompt, and a shadow removal module that uses the shadow prior from the first module to restore the content in the shadowed regions. Additionally, we enhance the shadow removal module by incorporating feature information from the prompt-aware module through a linear operation, providing prompt-guided support for shadow removal. Recognizing that existing shadow removal datasets lack diverse user prompts, we contribute a new dataset specifically designed for prompt-based controllable shadow removal. Extensive experimental results demonstrate the effectiveness and superiority of PACSRNet.

Motivation & Objective

  • Motivate controllable shadow removal beyond global or mask-based approaches by enabling user-prompt guided removal of specific subjects.
  • Eliminate the dependency on precise shadow region masks during inference.
  • Develop an end-to-end network with prompt-aware mask generation and shadow restoration guidance.
  • Introduce and release a dataset (PCSRD) with multiple prompt types to simulate real-world prompts.

Proposed method

  • Propose PACSRNet with two modules: a prompt-aware module that generates subject-specific shadow masks and a prompt-guided guidance feature, and a shadow removal module that restores content using the shadow prior from the prompt-aware module.
  • Incorporate a spatial-frequency interaction (SFI) block using discrete wavelet transform to fuse spatial and frequency features for better shadow boundary perception.
  • Use a dense-sparse local attention (DSLA) block in the shadow removal module to reduce irrelevant content while preserving useful context.
  • Connect the prompt-aware features to the shadow removal encoder via a linear layer to provide implicit prompt guidance during restoration.
  • Train with a combined loss: shadow removal loss and shadow prediction loss, balancing them with a parameter lambda (λ=3).
  • Evaluate on PCSRD and ISTD+ datasets, comparing with state-of-the-art shadow removal methods.

Experimental results

Research questions

  • RQ1Can a prompt-aware network accurately predict subject-specific shadow regions from lightweight prompts (dot/line/subject mask) without explicit shadow masks?
  • RQ2Does the integration of spatial-frequency information and dense-sparse local attention improve shadow boundary sensing and restoration quality under prompts?
  • RQ3How does prompt-guided guidance influence the shadow removal module’s performance across diverse prompts and datasets?
  • RQ4Is the proposed PACSRNet competitive with or superior to existing shadow removal methods under both shadow-region and full-image metrics?
  • RQ5Does the new PCSRD dataset enable robust evaluation of prompt-based controllable shadow removal?

Key findings

  • PACSRNet achieves PSNRs of 40.95/41.06/41.59 on shadow removal tasks under dot/line/subject-mask prompts, respectively, on PCSRD, competitive with ShadowDiffusion which uses precise masks.
  • The full PACSRNet outperforms baselines on both PCSRD and ISTD+ in PSNR/SSIM with superior shadow-region restoration (e.g., PACSRNet† PSNR 45.559 on PCSRD shadow regions).
  • Ablation shows the Spatial-Frequency Interaction (SFI) block significantly improves PSNR by 0.23 dB, validating the benefit of frequency features.
  • Dense-Sparse Local Attention (DSLA) reduces introduction of irrelevant content, improving restoration quality versus dense attention alone.
  • Prompt-aware guidance boosts shadow removal performance, and multi-scale prompt features guide the shadow removal encoder to focus on subjects and shadows.
  • The proposed prompt-based dataset PCSRD (11,900 samples) supports diverse prompts and complex scenes for future research.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.