HyperAIHyperAI

Command Palette

Search for a command to run...

a month ago

Direction-aware Spatial Context Features for Shadow Detection

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

Direction-aware Spatial Context Features for Shadow Detection

Abstract

Shadow detection is a fundamental and challenging task, since it requires anunderstanding of global image semantics and there are various backgroundsaround shadows. This paper presents a novel network for shadow detection byanalyzing image context in a direction-aware manner. To achieve this, we firstformulate the direction-aware attention mechanism in a spatial recurrent neuralnetwork (RNN) by introducing attention weights when aggregating spatial contextfeatures in the RNN. By learning these weights through training, we can recoverdirection-aware spatial context (DSC) for detecting shadows. This design isdeveloped into the DSC module and embedded in a CNN to learn DSC features atdifferent levels. Moreover, a weighted cross entropy loss is designed to makethe training more effective. We employ two common shadow detection benchmarkdatasets and perform various experiments to evaluate our network. Experimentalresults show that our network outperforms state-of-the-art methods and achieves97% accuracy and 38% reduction on balance error rate.

Code Repositories

stevewongv/dsc-pytorch
pytorch
Mentioned in GitHub
xw-hu/DSC
pytorch

Benchmarks

BenchmarkMethodologyMetrics
salient-object-detection-on-istdDSC
Balanced Error Rate: 8.24
salient-object-detection-on-sbuDSC
Balanced Error Rate: 5.59
salient-object-detection-on-ucfDSC
Balanced Error Rate: 8.10

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp