Unsupervised Shadow Removal Using Target Consistency Generative Adversarial Network

Chao Tan, Xin FengarXiv 2020

Abstract

Unsupervised shadow removal is a significant challenge in computer vision due to the difficulty of obtaining paired training data. While CycleGAN-based methods offer a solution, they often introduce artifacts through unnecessary bidirectional mapping. This paper introduces the Target-Consistency Generative Adversarial Network (TC-GAN), which utilizes a unidirectional mapping with a target-consistency constraint between dual generators. Experimental results on the USR and ISTD datasets demonstrate that TC-GAN significantly outperforms existing unsupervised methods, achieving a 31.5% improvement in Kernel Inception Distance (KID) and performance comparable to supervised models.

Introduction

Shadow removal is a fundamental task in image processing and computer vision. Traditionally, high-performing models have relied on supervised learning, requiring pairs of identical images with and without shadows. However, collecting such "ground truth" data is logistically intensive, requiring perfect control over lighting and scene stability.

To circumvent this, researchers turned to unsupervised learning, primarily using CycleGANs. These models learn to translate images between shadow and shadow-free domains. However, the "cycle-consistency" requirement—mapping an image to a shadow-free domain and then back to the shadow domain—often introduces unwanted artifacts and fails to preserve original textures. The authors of this study argue that the "backward" mapping (re-shadowing) is unnecessary for the primary task and often hinders the quality of shadow removal.

Methodology: The TC-GAN Framework

The proposed Target-Consistency Generative Adversarial Network (TC-GAN) replaces the bidirectional loop with a unidirectional mapping supported by a "buddy system" of dual sub-networks.

The TC-GAN architecture featuring dual generators ($G_{res1}$, $G_{res2}$) and the target consistency loss mechanism.

The architecture consists of several key components:

  1. Dual Sub-networks: Two parallel GANs ($G_1$ and $G_2$) are trained simultaneously. Both aim to produce a shadow-free version of the same input image.
  2. Target-Consistency Constraint: This is the core innovation. The model enforces a rule that both generators must produce consistent content for the same input. Despite different initializations and exposure to different "real" shadow-free images during training, they must converge on the same underlying shadow-free scene.
  3. Shadow Transform Encoders (STE): These allow the generators to capture the intrinsic variety of shadows (e.g., depth and light source variations) found in natural images.
  4. Module Selection Module (MSM): During inference, a pre-trained binary classifier evaluates the outputs of both generators and selects the one that most closely resembles a natural, shadow-free image.

Experimental Results

The model was evaluated on the USR (Unsupervised Shadow Removal) dataset and the ISTD dataset. For ISTD, the authors intentionally unpaired the data to test TC-GAN's performance in a strictly unsupervised context.

Quantitative comparison of TC-GAN against state-of-the-art unsupervised methods across various metrics.

As shown in the table above, TC-GAN establishes a new state-of-the-art for unsupervised shadow removal. On the USR dataset, it improved the Fréchet Inception Distance (FID) by 14.9% and the Kernel Inception Distance (KID) by 31.5% compared to Mask-ShadowGAN. Notably, TC-GAN's performance on the ISTD dataset was comparable to supervised models, particularly in maintaining color and illumination consistency in non-shadowed regions.

Conclusion

TC-GAN demonstrates that abandoning bidirectional cycle-consistency in favor of a unidirectional target-consistency constraint leads to superior shadow removal. By focusing entirely on the restoration task and using dual-generator agreement as a proxy for correctness, the model avoids common artifacts like "ghosting" and color shifts. While challenges remain in handling extremely deep shadows or complex dark objects, TC-GAN represents a significant step forward in unsupervised image restoration. Future research may extend this framework to video sequences to leverage temporal consistency.

Summary updated

BibTeX
@misc{tan2020unsupervised,
  author = {Chao Tan and Xin Feng},
  title = {{Unsupervised Shadow Removal Using Target Consistency Generative Adversarial Network}},
  year = {2020},
  eprint = {2010.01291},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.01291},
}
Figure