Leveraging Inpainting for Single-Image Shadow Removal (2302.05361v3)
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.
- Kernel-predicting convolutional networks for denoising monte carlo renderings. ACM Trans. Graph., 36(4):97–1, 2017.
- Canet: A context-aware network for shadow removal. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4743–4752, 2021.
- Adversarial exposure attack on diabetic retinopathy imagery. arXiv preprint arXiv:2009.09231, 2020.
- Towards ghost-free shadow removal via dual hierarchical aggregation network and shadow matting gan. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 10680–10687, 2020.
- Cross-image context for single image inpainting. Advances in Neural Information Processing Systems, 35:1474–1487, 2022.
- Entropy minimization for shadow removal. International Journal of Computer Vision, 85(1):35–57, 2009.
- On the removal of shadows from images. IEEE transactions on pattern analysis and machine intelligence, 28(1):59–68, 2005.
- Benchmarking shadow removal for facial landmark detection and beyond. arXiv preprint arXiv:2111.13790, 2021.
- Deep learning for object detection in materials-science images: A tutorial. IEEE Signal Processing Magazine, 39(1):78–88, 2021.
- Auto-exposure fusion for single-image shadow removal. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 10571–10580, 2021.
- Interactive removal and ground truth for difficult shadow scenes. JOSA A, 33(9):1798–1811, 2016.
- Generative adversarial networks. Communications of the ACM, 63(11):139–144, 2020.
- Learning to remove soft shadows. ACM Transactions on Graphics (TOG), 34(5):1–15, 2015.
- Watch out! motion is blurring the vision of your deep neural networks. Advances in Neural Information Processing Systems, 33, 2020.
- Jpgnet: Joint predictive filtering and generative network for image inpainting. In Proceedings of the 29th ACM International Conference on Multimedia, pages 386–394, 2021.
- Efficientderain: Learning pixel-wise dilation filtering for high-efficiency single-image deraining. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 1487–1495, 2021.
- Paired regions for shadow detection and removal. IEEE transactions on pattern analysis and machine intelligence, 35(12):2956–2967, 2012.
- Masked autoencoders are scalable vision learners. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 16000–16009, 2022.
- Direction-aware spatial context features for shadow detection and removal. IEEE TPAMI, 42(11):2795–2808, 2019.
- Mask-shadowgan: Learning to remove shadows from unpaired data. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 2472–2481, 2019.
- Learning from synthetic shadows for shadow detection and removal. IEEE Transactions on Circuits and Systems for Video Technology, 31(11):4187–4197, 2020.
- Dc-shadownet: Single-image hard and soft shadow removal using unsupervised domain-classifier guided network. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 5027–5036, 2021.
- Perceptual losses for real-time style transfer and super-resolution. In European conference on computer vision, pages 694–711. Springer, 2016.
- Shadow removal via shadow image decomposition. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 8578–8587, 2019.
- From shadow segmentation to shadow removal. In European Conference on Computer Vision, pages 264–281. Springer, 2020.
- Physics-based shadow image decomposition for shadow removal. IEEE Transactions on Pattern Analysis & Machine Intelligence, (01):1–1, 2021.
- Misf: Multi-level interactive siamese filtering for high-fidelity image inpainting. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1869–1878, 2022.
- Generative status estimation and information decoupling for image rain removal. Advances in Neural Information Processing Systems, 35:4612–4625, 2022.
- Image inpainting for irregular holes using partial convolutions. In European Conference on Computer Vision (ECCV), pages 85–100, 2018.
- Shadow removal by a lightness-guided network with training on unpaired data. IEEE Transactions on Image Processing, 30:1853–1865, 2021.
- From shadow generation to shadow removal. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4927–4936, 2021.
- Appearance harmonization for single image shadow removal. In Computer Graphics Forum, volume 35, pages 189–197. Wiley Online Library, 2016.
- Burst denoising with kernel prediction networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2502–2510, 2018.
- Physical models for moving shadow and object detection in video. IEEE transactions on pattern analysis and machine intelligence, 26(8):1079–1087, 2004.
- Edgeconnect: Structure guided image inpainting using edge prediction. In IEEE/CVF International Conference on Computer Vision (ICCV) Workshops, Oct 2019.
- Deshadownet: A multi-context embedding deep network for shadow removal. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4067–4075, 2017.
- Improved shadow removal for robust person tracking in surveillance scenarios. In ICPR, pages 141–144, 2010.
- Style-guided shadow removal. In Proceedings of the European Conference on Computer Vision (ECCV), 2022.
- Pac-bayes information bottleneck. arXiv preprint arXiv:2109.14509, 2021.
- Fast shadow removal using adaptive multi-scale illumination transfer. In Computer Graphics Forum, volume 32, pages 207–218. Wiley Online Library, 2013.
- Simmim: A simple framework for masked image modeling. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9653–9663, 2022.
- Shadow removal using bilateral filtering. IEEE Transactions on Image processing, 21(10):4361–4368, 2012.
- It’s raining cats or dogs? adversarial rain attack on dnn perception. arXiv preprint arXiv:2009.09205, 2020.
- The unreasonable effectiveness of deep features as a perceptual metric. In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 586–595, 2018.
- Improving shadow suppression for illumination robust face recognition. IEEE transactions on pattern analysis and machine intelligence, 41(3):611–624, 2018.
- Places: A 10 million image database for scene recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(6):1452–1464, 2017.
- Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proceedings of the IEEE international conference on computer vision, pages 2223–2232, 2017.
- Bijective mapping network for shadow removal. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5627–5636, 2022.