Leveraging Inpainting for Single-Image Shadow Removal
- URL: http://arxiv.org/abs/2302.05361v3
- Date: Sun, 1 Oct 2023 17:09:16 GMT
- Title: Leveraging Inpainting for Single-Image Shadow Removal
- Authors: Xiaoguang Li, Qing Guo, Rabab Abdelfattah, Di Lin, Wei Feng, Ivor
Tsang, Song Wang
- Abstract summary: In this work, we find that pretraining shadow removal networks on the image inpainting dataset can reduce the shadow remnants significantly.
A naive encoder-decoder network gets competitive restoration quality w.r.t. the state-of-the-art methods via only 10% shadow & shadow-free image pairs.
Inspired by these observations, we formulate shadow removal as an adaptive fusion task that takes advantage of both shadow removal and image inpainting.
- Score: 29.679542372017373
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: Fully-supervised shadow removal methods achieve the best restoration
qualities on public datasets but still generate some shadow remnants. One of
the reasons is the lack of large-scale shadow & shadow-free image pairs.
Unsupervised methods can alleviate the issue but their restoration qualities
are much lower than those of fully-supervised methods. In this work, we find
that pretraining shadow removal networks on the image inpainting dataset can
reduce the shadow remnants significantly: a naive encoder-decoder network gets
competitive restoration quality w.r.t. the state-of-the-art methods via only
10% shadow & shadow-free image pairs. After analyzing networks with/without
inpainting pre-training via the information stored in the weight (IIW), we find
that inpainting pretraining improves restoration quality in non-shadow regions
and enhances the generalization ability of networks significantly.
Additionally, shadow removal fine-tuning enables networks to fill in the
details of shadow regions. Inspired by these observations we formulate shadow
removal as an adaptive fusion task that takes advantage of both shadow removal
and image inpainting. Specifically, we develop an adaptive fusion network
consisting of two encoders, an adaptive fusion block, and a decoder. The two
encoders are responsible for extracting the feature from the shadow image and
the shadow-masked image respectively. The adaptive fusion block is responsible
for combining these features in an adaptive manner. Finally, the decoder
converts the adaptive fused features to the desired shadow-free result. The
extensive experiments show that our method empowered with inpainting
outperforms all state-of-the-art methods.
Related papers
- Single-Image Shadow Removal Using Deep Learning: A Comprehensive Survey [78.84004293081631]
The patterns of shadows are arbitrary, varied, and often have highly complex trace structures.
The degradation caused by shadows is spatially non-uniform, resulting in inconsistencies in illumination and color between shadow and non-shadow areas.
Recent developments in this field are primarily driven by deep learning-based solutions.
arXiv Detail & Related papers (2024-07-11T20:58:38Z) - Progressive Recurrent Network for Shadow Removal [99.1928825224358]
Single-image shadow removal is a significant task that is still unresolved.
Most existing deep learning-based approaches attempt to remove the shadow directly, which can not deal with the shadow well.
We propose a simple but effective Progressive Recurrent Network (PRNet) to remove the shadow progressively.
arXiv Detail & Related papers (2023-11-01T11:42:45Z) - Learning Restoration is Not Enough: Transfering Identical Mapping for
Single-Image Shadow Removal [19.391619888009064]
State-of-the-art shadow removal methods train deep neural networks on collected shadow & shadow-free image pairs.
We find that two tasks exhibit poor compatibility, and using shared weights for these two tasks could lead to the model being optimized towards only one task.
We propose to handle these two tasks separately and leverage the identical mapping results to guide the shadow restoration in an iterative manner.
arXiv Detail & Related papers (2023-05-18T01:36:23Z) - ShaDocNet: Learning Spatial-Aware Tokens in Transformer for Document
Shadow Removal [53.01990632289937]
We propose a Transformer-based model for document shadow removal.
It uses shadow context encoding and decoding in both shadow and shadow-free regions.
arXiv Detail & Related papers (2022-11-30T01:46:29Z) - SpA-Former: Transformer image shadow detection and removal via spatial
attention [8.643096072885909]
We propose an end-to-end SpA-Former to recover a shadow-free image from a single shaded image.
Unlike traditional methods that require two steps for shadow detection and then shadow removal, the SpA-Former unifies these steps into one.
arXiv Detail & Related papers (2022-06-22T08:30:22Z) - Shadow-Aware Dynamic Convolution for Shadow Removal [80.82708225269684]
We introduce a novel Shadow-Aware Dynamic Convolution (SADC) module to decouple the interdependence between the shadow region and the non-shadow region.
Inspired by the fact that the color mapping of the non-shadow region is easier to learn, our SADC processes the non-shadow region with a lightweight convolution module.
We develop a novel intra-convolution distillation loss to strengthen the information flow from the non-shadow region to the shadow region.
arXiv Detail & Related papers (2022-05-10T14:00:48Z) - R2D: Learning Shadow Removal to Enhance Fine-Context Shadow Detection [64.10636296274168]
Current shadow detection methods perform poorly when detecting shadow regions that are small, unclear or have blurry edges.
We propose a new method called Restore to Detect (R2D), where a deep neural network is trained for restoration (shadow removal)
We show that our proposed method R2D improves the shadow detection performance while being able to detect fine context better compared to the other recent methods.
arXiv Detail & Related papers (2021-09-20T15:09:22Z) - Auto-Exposure Fusion for Single-Image Shadow Removal [23.178329688546032]
Shadow removal is still a challenging task due to its inherent background-dependent and spatial-variant properties.
Even powerful state-of-the-art deep neural networks could hardly recover traceless shadow-removed background.
This paper proposes a new solution by formulating it as an exposure fusion problem to address the challenges.
arXiv Detail & Related papers (2021-03-01T19:09:26Z) - Physics-based Shadow Image Decomposition for Shadow Removal [36.41558227710456]
We propose a novel deep learning method for shadow removal.
Inspired by physical models of shadow formation, we use a linear illumination transformation to model the shadow effects in the image.
We train and test our framework on the most challenging shadow removal dataset.
arXiv Detail & Related papers (2020-12-23T23:06:38Z) - Self-Supervised Shadow Removal [130.6657167667636]
We propose an unsupervised single image shadow removal solution via self-supervised learning by using a conditioned mask.
In contrast to existing literature, we do not require paired shadowed and shadow-free images, instead we rely on self-supervision and jointly learn deep models to remove and add shadows to images.
arXiv Detail & Related papers (2020-10-22T11:33:41Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.