TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Direction-aware Spatial Context Features for Shadow Detect...

Direction-aware Spatial Context Features for Shadow Detection and Removal

Xiaowei Hu, Chi-Wing Fu, Lei Zhu, Jing Qin, Pheng-Ann Heng

2018-05-12Shadow DetectionShadow Removal
PaperPDFCodeCode

Abstract

Shadow detection and shadow removal are fundamental and challenging tasks, requiring an understanding of the global image semantics. This paper presents a novel deep neural network design for shadow detection and removal by analyzing the spatial image context in a direction-aware manner. To achieve this, we first formulate the direction-aware attention mechanism in a spatial recurrent neural network (RNN) by introducing attention weights when aggregating spatial context features in the RNN. By learning these weights through training, we can recover direction-aware spatial context (DSC) for detecting and removing shadows. This design is developed into the DSC module and embedded in a convolutional neural network (CNN) to learn the DSC features at different levels. Moreover, we design a weighted cross entropy loss to make effective the training for shadow detection and further adopt the network for shadow removal by using a Euclidean loss function and formulating a color transfer function to address the color and luminosity inconsistencies in the training pairs. We employed two shadow detection benchmark datasets and two shadow removal benchmark datasets, and performed various experiments to evaluate our method. Experimental results show that our method performs favorably against the state-of-the-art methods for both shadow detection and shadow removal.

Results

TaskDatasetMetricValueModel
Shadow DetectionSBU / SBU-RefineBER6.79DSC (CVPR 2018, TPAMI 2020) (256x256)
Shadow DetectionCUHK-ShadowBER9.53DSC (CVPR 2018, TPAMI 2020) (512x512)
Shadow DetectionCUHK-ShadowBER10.97DSC (CVPR 2018, TPAMI 2020) (256x256)
Image EditingSRDLPIPS0.412DSC (TPAMI 2020) (256x256)
Image EditingSRDPSNR25.46DSC (TPAMI 2020) (256x256)
Image EditingSRDRMSE3.97DSC (TPAMI 2020) (256x256)
Image EditingSRDSSIM0.678DSC (TPAMI 2020) (256x256)
Image EditingISTDMAE6.67DSC
Image EditingISTD+LPIPS0.347DSC (TPAMI 2020) (256x256)
Image EditingISTD+PSNR26.53DSC (TPAMI 2020) (256x256)
Image EditingISTD+RMSE3.44DSC (TPAMI 2020) (256x256)
Image EditingISTD+SSIM0.738DSC (TPAMI 2020) (256x256)
Shadow RemovalSRDLPIPS0.412DSC (TPAMI 2020) (256x256)
Shadow RemovalSRDPSNR25.46DSC (TPAMI 2020) (256x256)
Shadow RemovalSRDRMSE3.97DSC (TPAMI 2020) (256x256)
Shadow RemovalSRDSSIM0.678DSC (TPAMI 2020) (256x256)
Shadow RemovalISTDMAE6.67DSC
Shadow RemovalISTD+LPIPS0.347DSC (TPAMI 2020) (256x256)
Shadow RemovalISTD+PSNR26.53DSC (TPAMI 2020) (256x256)
Shadow RemovalISTD+RMSE3.44DSC (TPAMI 2020) (256x256)
Shadow RemovalISTD+SSIM0.738DSC (TPAMI 2020) (256x256)
16kSRDLPIPS0.412DSC (TPAMI 2020) (256x256)
16kSRDPSNR25.46DSC (TPAMI 2020) (256x256)
16kSRDRMSE3.97DSC (TPAMI 2020) (256x256)
16kSRDSSIM0.678DSC (TPAMI 2020) (256x256)
16kISTDMAE6.67DSC
16kISTD+LPIPS0.347DSC (TPAMI 2020) (256x256)
16kISTD+PSNR26.53DSC (TPAMI 2020) (256x256)
16kISTD+RMSE3.44DSC (TPAMI 2020) (256x256)
16kISTD+SSIM0.738DSC (TPAMI 2020) (256x256)

Related Papers

Image Restoration via Multi-domain Learning2025-05-07Retinex-guided Histogram Transformer for Mask-free Shadow Removal2025-04-18S-EO: A Large-Scale Dataset for Geometry-Aware Shadow Detection in Remote Sensing Applications2025-04-09FASR-Net: Unsupervised Shadow Removal Leveraging Inherent Frequency Priors2025-04-08Leveraging Contrast Information for Efficient Document Shadow Removal2025-04-01FastInstShadow: A Simple Query-Based Model for Instance Shadow Detection2025-03-10QDCNN: Quantum Deep Learning for Enhancing Safety and Reliability in Autonomous Transportation Systems2025-03-01Prompt-Aware Controllable Shadow Removal2025-01-25