All models

LG-ShadowNet

Shadow removal generator in which a lightness module guides a full Lab-color module through multiplicative connections.

Diffusion and generative · 187 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (53 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
5.7M
Operations
187
Framework
PyTorch
Recurrent
No
Published
IEEE Transactions on Image Processing (arXiv 2020)
Cited by
120 (as of 29 October 2026)
Authors
Zhihao Liu, Hui Yin, Yang Mi and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m17764
Graph hash
0ef52803650ecbac991f3e844b369bfab5714bdff939141eb0b280bcdb49b1af
Skeleton hash
94a2998f76977b2cd87b34f6fc15c037b8936d4721f73cfc646e51c528f98507
Architecture hash
51c0a3e44d02c03e532964ef3d90ab48f5675b28acec4a2fb517a11462f2cce7
Diagram SHA-256
1f6b3a0ac5173b9016edd5e111cf71a35ed65dcc3a61afd51a0ec231ccffb6da
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

LG-ShadowNet, the Lightness-Guided Shadow Removal Network, removes shadows from photographs and is trained on unpaired data, where the shadow and shadow-free training images do not correspond to each other. It builds on Mask-ShadowGAN, which treats shadow removal as image-to-image translation learned with adversarial training and cycle-consistency. The paper's starting point is that lightness is an important cue for shadow regions, so the network learns about lightness first.

The image is represented in the Lab color space, and a first CNN module (Module I) is trained to compensate for the lightness in the L channel. A second module (Module II) takes all Lab channels as input and completes the shadow removal. The two are joined by multiplicative connections: feature maps from Module I are multiplied element-wise with feature maps of Module II between residual blocks. By default these connections are inserted at the first three shallow residual blocks.

The authors keep the parameter count roughly the same as Mask-ShadowGAN by following strategies used for SqueezeNet. An added loss term, a variant of a color loss used for image enhancement, encourages color consistency between the generated data and the input data. The paper reports experiments on the ISTD, adjusted ISTD and USR datasets, in which the method outperforms the compared methods trained on unpaired data.

Key idea. LG-ShadowNet first trains a CNN module on lightness alone, then uses its features to guide a second module that removes shadows using all color channels.

  • LG-ShadowNet
  • Lightness-Guided Shadow Removal Network
  • shadow removal
  • unpaired shadow removal
  • lightness guidance
  • image shadow removal
  • ISTD
  • unpaired image translation

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{liu2020shadowremovallightnessguidednetwork,
      title={Shadow Removal by a Lightness-Guided Network with Training on Unpaired Data}, 
      author={Zhihao Liu and Hui Yin and Yang Mi and Mengyang Pu and Song Wang},
      year={2020},
      eprint={2006.15617},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      doi={https://doi.org/10.1109/TIP.2020.3048677},
      url={https://arxiv.org/abs/2006.15617}, 
}