All models

G2R-ShadowNet

Shadow removal network trained with only shadow images and masks, using generated shadows as paired data.

Diffusion and generative · 204 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 (25 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
22.8M
Operations
204
Framework
PyTorch
Recurrent
No
Published
CVPR 2021
Cited by
142 (as of 26 October 2026)
Authors
Zhihao Liu, Hui Yin, Xinyi Wu 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
m16787
Graph hash
0583e5b856e79cae94371a8ed51e8b58552bddb68d3a133b5535df2f50d06a48
Skeleton hash
331f707d05407019131c40c8603869c4a5a486d8ab4db053d150bc81ef6fdc02
Architecture hash
ff1ec7bac48db1f7da57c62207952ba5523230fc5c9891b343b4ab5506b03a7f
Diagram SHA-256
e63baa7999b601161c6ae2f8904f6da1dd13d1dfa7f00448b9400c61ccdb558d
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

G2R-ShadowNet removes shadows from images, restoring the image content in the shadowed regions. It is trained with weak supervision, using only a set of shadow images and their shadow masks. The paper notes that almost all recent shadow-removal methods at the time required shadow-free images for training.

The starting point is an earlier approach by Le and Samaras that trains on unpaired patches cropped from shadow images, which the paper describes as laborious and time-consuming to collect in large numbers. G2R-ShadowNet has three sub-networks, for shadow generation, shadow removal and refinement, trained jointly end to end. The shadow generation sub-network restyles non-shadow regions so that they look shadowed, which yields paired data for training the removal sub-network.

At test time the released code loads two saved models, netG_1 and netG_2. On the ISTD dataset at 480x640, the repository lists an RMSE of 9.6 in shadow regions and 4.7 over the whole image for G2R-ShadowNet.

Key idea. The paper trains shadow removal from only shadow images and their masks by using a shadow generation sub-network to create paired training data.

  • G2R-ShadowNet
  • From Shadow Generation to Shadow Removal
  • shadow removal
  • shadow generation
  • weakly-supervised shadow removal
  • image restoration
  • ISTD

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

Cite the paper

@misc{liu2021shadowgenerationshadowremoval,
      title={From Shadow Generation to Shadow Removal}, 
      author={Zhihao Liu and Hui Yin and Xinyi Wu and Zhenyao Wu and Yang Mi and Song Wang},
      year={2021},
      eprint={2103.12997},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2103.12997}, 
}