journal article·2022-01-14Open access

Throwaway Shadows Using Parallel Encoders Generative Adversarial Network

Kamran Javed, Nizam Ud Din, Ghulam Hussain, Tahir Farooq

Applied Sciences· Volume 12· Issue 2

Abstract

Face photographs taken on a bright sunny day or in floodlight contain unnecessary shadows of objects on the face. Most previous works deal with removing shadow from scene images and struggle with doing so for facial images. Faces have a complex semantic structure, due to which shadow removal is challenging. The aim of this research is to remove the shadow of an object in facial images. We propose a novel generative adversarial network (GAN) based image-to-image translation approach for shadow removal in face images. The first stage of our model automatically produces a binary segmentation mask for the shadow region. Then, the second stage, which is a GAN-based network, removes the object shadow and synthesizes the effected region. The generator network of our GAN has two parallel encoders—one is standard convolution path and the other is a partial convolution. We find that this combination in the generator results not only in learning an incorporated semantic structure but also in disentangling visual discrepancies problems under the shadow area. In addition to GAN loss, we exploit low level L1, structural level SSIM and perceptual loss from a pre-trained loss network for better texture and perceptual quality, respectively. Since there is no paired dataset for the shadow removal problem, we created a synthetic shadow dataset for training our network in a supervised manner. The proposed approach effectively removes shadows from real and synthetic test samples, while retaining complex facial semantics. Experimental evaluations consistently show the advantages of the proposed method over several representative state-of-the-art approaches.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Generative Adversarial Networks and Image Synthesis · Advanced Image Processing Techniques · Image Enhancement Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

National Centre of Artificial Intelligence (NCAI), Saudi Data and Artificial Intelligence Authority (SDAIA), Riyadh 11543, Saudi Arabia

College of Information and Communication Engineering, Sungkyunkwan University, Suwon 16419, Korea

Leverify LLC, 16301 NE 8th Street Suite 206, Bellevue, WA 98008, USA

References (51)

Show source-provided references
1. Recovering intrinsic scene characteristics
2. On the removal of shadows from images10.1109/TPAMI.2006.18 ↗
3. Qu, L., Tian, J., He, S., Tang, Y., and Lau, R.W. (2017, January 21–26). Deshadownet: A multi-context embedding deep network for shadow removal. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.10.1109/CVPR.2017.248 ↗
4. Wang, J., Li, X., and Yang, J. (2018, January 18–23). Stacked conditional generative adversarial networks for jointly learning shadow detection and shadow removal. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00192 ↗
5. Vicente, T.F.Y., Hou, L., Yu, C.P., Hoai, M., and Samaras, D. (2016, January 8–16). Large-scale training of shadow detectors with noisily-annotated shadow examples. Proceedings of the European Conference on Computer Vision, Amsterdam, The Netherlands.10.1007/978-3-319-46466-4_49 ↗
6. Cun, X., Pun, C.M., and Shi, C. (2020, January 7–12). Towards Ghost-Free Shadow Removal via Dual Hierarchical Aggregation Network and Shadow Matting GAN. Proceedings of the AAAI Conference on Artificial Intelligence, New York, NY, USA.10.1609/aaai.v34i07.6695 ↗
7. Pathak, D., Krahenbuhl, P., Donahue, J., Darrell, T., and Efros, A.A. (2016, January 27–30). Context encoders: Feature learning by inpainting. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.278 ↗
8. Vo, H.V., Duong, N.Q., and Pérez, P. (2018, January 22–26). Structural inpainting. Proceedings of the 2018 ACM Multimedia Conference on Multimedia Conference, Seoul, Korea.10.1145/3240508.3240678 ↗
9. Khan, M.K.J., Ud Din, N., Bae, S., and Yi, J. (2019). Interactive removal of microphone object in facial images. Electronics, 8.10.3390/electronics8101115 ↗
10. Nazeri, K., Ng, E., Joseph, T., Qureshi, F., and Ebrahimi, M. (2019). EdgeConnect: Generative Image Inpainting with Adversarial Edge Learning. arXiv.
11. Yu, J., Lin, Z., Yang, J., Shen, X., Lu, X., and Huang, T.S. (2018, January 28–23). Generative image inpainting with contextual attention. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00577 ↗
12. Globally and locally consistent image completion10.1145/3072959.3073659 ↗
13. Image unmosaicing without location information using stacked GAN10.1049/iet-cvi.2018.5623 ↗
14. Liu, G., Reda, F.A., Shih, K.J., Wang, T.C., Tao, A., and Catanzaro, B. (2018, January 8–14). Image inpainting for irregular holes using partial convolutions. Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany.10.1007/978-3-030-01252-6_6 ↗
15. Yu, J., Lin, Z., Yang, J., Shen, X., Lu, X., and Huang, T.S. (2019, January 27–28). Free-form image inpainting with gated convolution. Proceedings of the IEEE International Conference on Computer Vision, Seoul, Korea.10.1109/ICCV.2019.00457 ↗
16. Goodfellow, I., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., Courville, A., and Bengio, Y. (2014). Generative adversarial nets. Advances in Neural Information Processing Systems 27, Curran Associates Inc.
17. Zhang, H., Xu, T., Li, H., Zhang, S., Huang, X., Wang, X., and Metaxas, D. (2017, January 22–29). Stackgan: Text to photo-realistic image synthesis with stacked generative adversarial networks. Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy.10.1109/ICCV.2017.629 ↗
18. Radford, A., Metz, L., and Chintala, S. (2015). Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv.
19. Isola, P., Zhu, J.Y., Zhou, T., and Efros, A.A. (2017, January 21–26). Image-to-image translation with conditional adversarial networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.10.1109/CVPR.2017.632 ↗
20. Choi, Y., Choi, M., Kim, M., Ha, J.W., Kim, S., and Choo, J. (2018, January 18–23). Stargan: Unified generative adversarial networks for multi-domain image-to-image translation. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00916 ↗
21. Efficient Generation of Multiple Sketch Styles Using a Single Network10.1109/ACCESS.2019.2931544 ↗
22. Li, C., and Wand, M. (2016, January 8–16). Precomputed real-time texture synthesis with markovian generative adversarial networks. Proceedings of the European Conference on Computer Vision, Amsterdam, The Netherlands.10.1007/978-3-319-46487-9_43 ↗
23. Jetchev, N., Bergmann, U., and Vollgraf, R. (2016). Texture synthesis with spatial generative adversarial networks. arXiv.
24. Liu, P., Qi, X., He, P., Li, Y., Lyu, M.R., and King, I. (2017). Semantically Consistent Image Completion with Fine-grained Details. arXiv.
25. Yang, C., Lu, X., Lin, Z., Shechtman, E., Wang, O., and Li, H. (2017, January 21–26). High-Resolution Image Inpainting using Multi-Scale Neural Patch Synthesis. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.10.1109/CVPR.2017.434 ↗
26. Yeh, R.A., Chen, C., Yian Lim, T., Schwing, A.G., Hasegawa-Johnson, M., and Do, M.N. (2017, January 21–26). Semantic image inpainting with deep generative models. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.10.1109/CVPR.2017.728 ↗
27. Le, H., and Samaras, D. (2019, January 27–28). Shadow removal via shadow image decomposition. Proceedings of the IEEE International Conference on Computer Vision, Seoul, Korea.10.1109/ICCV.2019.00867 ↗
28. Zhang, L., Long, C., Zhang, X., and Xiao, C. (2019). Ris-gan: Explore residual and illumination with generative adversarial networks for shadow removal. arXiv.10.1609/aaai.v34i07.6979 ↗
29. Ding, B., Long, C., Zhang, L., and Xiao, C. (2019, January 27–28). Argan: Attentive recurrent generative adversarial network for shadow detection and removal. Proceedings of the IEEE International Conference on Computer Vision, Seoul, Korea.10.1109/ICCV.2019.01031 ↗
30. Hu, X., Jiang, Y., Fu, C.W., and Heng, P.A. (2019, January 27–28). Mask-ShadowGAN: Learning to remove shadows from unpaired data. Proceedings of the IEEE International Conference on Computer Vision, Seoul, Korea.10.1109/ICCV.2019.00256 ↗
31. Bertalmio, M., Sapiro, G., Caselles, V., and Ballester, C. (2000). Image inpainting. Proceedings of the 27th Annual Conference on Computer Graphics and Interactive Techniques, ACM Press/Addison-Wesley Publishing Co.10.1145/344779.344972 ↗
32. Filling-in by joint interpolation of vector fields and gray levels10.1109/83.935036 ↗
33. Efros, A.A., and Freeman, W.T. Image quilting for texture synthesis and transfer. Proceedings of the 28th Annual Conference on Computer Graphics and Interactive Techniques.
34. Texture optimization for example-based synthesis10.1145/1073204.1073263 ↗
35. Javed, K., Din, N.U., Bae, S., Maharjan, R.S., Seo, D., and Yi, J. (2019, January 27–31). UMGAN: Generative adversarial network for image unmosaicing using perceptual loss. Proceedings of the 2019 16th International Conference on Machine Vision Applications (MVA), Tokyo, Japan.10.23919/MVA.2019.8757902 ↗
36. Region filling and object removal by exemplar-based image inpainting10.1109/TIP.2004.833105 ↗
37. Robust object removal with an exemplar-based image inpainting approach10.1016/j.neucom.2013.06.022 ↗
38. A novel GAN-based network for unmasking of masked face10.1109/ACCESS.2020.2977386 ↗
39. Effective Removal of User-Selected Foreground Object From Facial Images Using a Novel GAN-Based Network10.1109/ACCESS.2020.3001649 ↗
40. Ronneberger, O., Fischer, P., and Brox, T. (2015, January 5–9). U-net: Convolutional networks for biomedical image segmentation. Proceedings of the International Conference on Medical Image Computing and Computer-Assisted Intervention, Munich, Germany.10.1007/978-3-319-24574-4_28 ↗
41. Chen, L.C., Papandreou, G., Schroff, F., and Adam, H. (2017). Rethinking atrous convolution for semantic image segmentation. arXiv.
42. Hu, J., Shen, L., and Sun, G. (2018, January 18–23). Squeeze-and-excitation Networks. Proceedings of the IEEE CVPR, Salt Lake City, UT, USA.10.1109/CVPR.2018.00745 ↗
43. Simonyan, K., and Zisserman, A. (2015, January 7–). Very deep convolutional networks for large-scale image recognition. Proceedings of the ICLR, San Diego, CA, USA.
44. Liu, Z., Luo, P., Wang, X., and Tang, X. (2015, January 7–13). Deep learning face attributes in the wild. Proceedings of the IEEE International Conference on Computer Vision, Santiago, Chile.10.1109/ICCV.2015.425 ↗
45. Amos, B., Ludwiczuk, B., and Satyanarayanan, M. (2016). OpenFace: A General-Purpose Face Recognition Library with Mobile Applications, CMU School of Computer Science. CMU-CS-16-118.
46. Hou, A., Zhang, Z., Sarkis, M., Bi, N., Tong, Y., and Liu, X. (2021, January 19–25). Towards High Fidelity Face Relighting with Realistic Shadows. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA.10.1109/CVPR46437.2021.01448 ↗
47. Zhou, H., Hadap, S., Sunkavalli, K., and Jacobs, D.W. (November, January 27). Deep single-image portrait relighting. Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Korea.
48. Kingma, D.P., and Ba, J. (2014). Adam: A method for stochastic optimization. arXiv.
49. Tensorflow: A system for large-scale machine learning
50. No-reference image quality assessment in the spatial domain10.1109/TIP.2012.2214050 ↗
51. Mittal, A., Moorthy, A.K., and Bovik, A.C. (2011, January 6–9). Blind/referenceless image spatial quality evaluator. Proceedings of the 2011 Conference Record of the Forty Fifth Asilomar Conference on Signals, Systems and Computers (ASILOMAR), Pacific Grove, CA, USA.10.1109/ACSSC.2011.6190099 ↗