PhaSR
An image shadow removal Transformer guided by depth, normal and DINO-v2 priors.
1,390 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
- 19.7M
- Operations
- 1,390
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2026
- Cited by
- 0 (as of 26 October 2026)
- Authors
- Chia-Ming Lee, Yu-Fan Lin, Yu-Jou Hsiao and others
- Source
- GitHub: ming053l/PhaSR
- License
- MIT
- 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
- m19304
- Graph hash
- 04b43bad1cc5d0327cd9e91300c60b22a10ad8cfb961eca8c33afb0dd5ebfc18
- Skeleton hash
- 1ad687124178d6585d05b95f19824f9ecdedb7d4b80a8dc4cf38d4342e6a4b39
- Architecture hash
- 236bdee129393e0bf58e87637966c5270ad8f1eeaac96b19f27da2957f590463
- Diagram SHA-256
- 578a7a027b5fde0112dfef779845fda37d36b59cc625590a3f0cc692abd48a10
- 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
PhaSR (Physically Aligned Shadow Removal) removes shadows from an image, and is meant to work both for shadows cast by a single light and for scenes lit by several sources. The paper treats the task as separating illumination from the intrinsic reflectance of the scene.
The method has two stages, a global illumination correction followed by a local rectification that uses geometry and semantics. In the first, Physically Aligned Normalization (PAN) corrects illumination in closed form with Gray-world normalization, a log-domain Retinex decomposition and dynamic range recombination, and the code repository describes it as parameter-free preprocessing. In the second, a multi-scale Transformer encoder-decoder takes in frozen DINO-v2 semantic embeddings at its encoder stages and DepthAnything-v2 depth and normals at its bottleneck. Its attention module, Geometric-Semantic Rectification Attention (GSRA), is a differential attention across the two kinds of prior: a geometry attention map, scaled by a factor, is subtracted from a semantic one.
The method does not require shadow masks. The paper reports 55.63 G FLOPs, the lowest among the models it compares, and 18.95 M parameters, the second smallest. The repository's benchmark table lists 34.48 on ISTD+, 28.44 on WSRD+ and 23.32 on Ambient6K for PhaSR.
Key idea. PhaSR pairs a closed-form illumination normalization step with an attention module that aligns depth-derived geometry and DINO-v2 semantic embeddings for shadow removal.
- PhaSR
- Physically Aligned Shadow Removal
- shadow removal
- image shadow removal
- ambient lighting normalization
- Retinex normalization
- differential attention
- image restoration
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{lee2026phasrgeneralizedimageshadow,
title={PhaSR: Generalized Image Shadow Removal with Physically Aligned Priors},
author={Chia-Ming Lee and Yu-Fan Lin and Yu-Jou Hsiao and Jin-Hui Jiang and Yu-Lun Liu and Chih-Chung Hsu},
year={2026},
eprint={2601.17470},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2601.17470},
}