SG-ShadowNet
A two-stage shadow removal network that matches the de-shadowed region to the style of the rest of the image.
Diffusion and generative · 1,459 operations Checked
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
- 6.2M
- Operations
- 1,459
- Framework
- PyTorch
- Recurrent
- No
- Published
- ECCV 2022
- Cited by
- 66 (as of 24 October 2026)
- Authors
- Jin Wan, Hui Yin, Zhenyao Wu and others
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m20027
- Graph hash
- fdc71cef1168a100c63b93a08e2d8f6c3c43a5364f637ef5e7a10ba1cfdc2532
- Skeleton hash
- e087d7b1bec1409f1cdc74eedb71c164177b293abe84ec6fe40532436ac3c1a7
- Architecture hash
- 21dab8c345bfe811cd2f1273711ed40eefefe9cea1a4e25f9d0d72d96a46d82a
- Diagram SHA-256
- 9898062166975fb076c09e455e4df7f7c5c55e307e582bb348ecd7fe71deae21
- 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
SG-ShadowNet removes shadows from images, and it is built around one problem: after shadow removal, the shadow and non-shadow regions may look inconsistent, which leaves a visually disharmonious image. The paper recasts shadow removal as a style transfer problem inside a single image, keeping the style of the shadow region consistent with the non-shadow region.
The network takes a shadow image and its shadow mask and works in two stages. A coarse deshadow network (CDNet) with a simple U-net structure produces a coarse de-shadowed result. A style-guided re-deshadow network (SRNet) then estimates the style of the non-shadow region and uses it to refine the result. The style comes from a region style estimator made of three convolution layers and a global pooling layer. It is applied through a normalization layer called SRPNorm, which sits in each of the 9 residual blocks in the middle of SRNet.
The paper evaluates on the ISTD+ and SRD datasets and tests generalization on the Video Shadow Removal dataset. The paper reports 6.2M parameters for SG-ShadowNet.
Key idea. The paper treats shadow removal as intra-image style transfer and builds SG-ShadowNet, whose SRPNorm layer aligns the de-shadowed region with the style of the non-shadow region.
- SG-ShadowNet
- style-guided shadow removal
- Style-Guided Shadow Removal Network
- shadow removal
- SRPNorm
- region style estimator
- intra-image style transfer
- image restoration
- deshadow
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@inbook{Wan_2022, title={Style-Guided Shadow Removal}, ISBN={9783031198007}, ISSN={1611-3349}, url={http://dx.doi.org/10.1007/978-3-031-19800-7_21}, DOI={10.1007/978-3-031-19800-7_21}, booktitle={Computer Vision – ECCV 2022}, publisher={Springer Nature Switzerland}, author={Wan, Jin and Yin, Hui and Wu, Zhenyao and Wu, Xinyi and Liu, Yanting and Wang, Song}, year={2022}, pages={361–378} }