HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Stacked Conditional Generative Adversarial Networks for Jointly Learning Shadow Detection and Shadow Removal

Jifeng Wang; Xiang Li; Le Hui; Jian Yang

Stacked Conditional Generative Adversarial Networks for Jointly Learning Shadow Detection and Shadow Removal

Abstract

Understanding shadows from a single image spontaneously derives into two types of task in previous studies, containing shadow detection and shadow removal. In this paper, we present a multi-task perspective, which is not embraced by any existing work, to jointly learn both detection and removal in an end-to-end fashion that aims at enjoying the mutually improved benefits from each other. Our framework is based on a novel STacked Conditional Generative Adversarial Network (ST-CGAN), which is composed of two stacked CGANs, each with a generator and a discriminator. Specifically, a shadow image is fed into the first generator which produces a shadow detection mask. That shadow image, concatenated with its predicted mask, goes through the second generator in order to recover its shadow-free image consequently. In addition, the two corresponding discriminators are very likely to model higher level relationships and global scene characteristics for the detected shadow region and reconstruction via removing shadows, respectively. More importantly, for multi-task learning, our design of stacked paradigm provides a novel view which is notably different from the commonly used one as the multi-branch version. To fully evaluate the performance of our proposed framework, we construct the first large-scale benchmark with 1870 image triplets (shadow image, shadow mask image, and shadow-free image) under 135 scenes. Extensive experimental results consistently show the advantages of ST-CGAN over several representative state-of-the-art methods on two large-scale publicly available datasets and our newly released one.

Code Repositories

Param-Raval/shadow-sight
pytorch
Mentioned in GitHub
Param-Raval/ipro
pytorch
Mentioned in GitHub
jiaruixu/st-cgan
pytorch
Mentioned in GitHub
kjybinp/SCGAN
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
salient-object-detection-on-istdJDR
Balanced Error Rate: 7.35
salient-object-detection-on-sbuJDR
Balanced Error Rate: 8.14
salient-object-detection-on-ucfJDR
Balanced Error Rate: 11.23
shadow-removal-on-istdST-CGAN
MAE: 7.47
shadow-removal-on-istd-1ST-CGAN (CVPR 2018) (512x512)
LPIPS: 0.252
PSNR: 27.32
RMSE: 3.36
SSIM: 0.829
shadow-removal-on-istd-1ST-CGAN (CVPR 2018) (256x256)
LPIPS: 0.408
PSNR: 25.74
RMSE: 3.77
SSIM: 0.691
shadow-removal-on-srdST-CGAN (CVPR 2018) (256x256)
LPIPS: 0.443
PSNR: 25.08
RMSE: 4.15
SSIM: 0.637

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