journal article·2023-07-03Open access

Image Structure-Induced Semantic Pyramid Network for Inpainting

Rong Huang, Yuhui Zheng

Applied Sciences· Volume 13· Issue 13

Abstract

The existing deep-learning-based image inpainting algorithms often suffer from local structure disconnections and blurring when dealing with large irregular defective images. To solve these problems, an image structure-induced semantic pyramid network for inpainting is proposed. The model consists of two parts: the edge inpainting network and the content-filling network. U-Net-based edge inpainting network restores the edge of the image defect with residual blocks. The edge inpainting map is input into the pyramid content-filling network together with the image in the prior condition. In the content-filling network, the attention transfer module (ATM) is designed to reconfigure the encoding features of each scale step by step, and the recovered feature map is linked to the decoding layer and the corresponding potential feature fusion decoding to improve the global consistency of the image and finally obtain the restored image. The quantitative analysis shows that the average L1 loss is reduced by about 1.14%, the peak signal-to-noise ratio (PSNR) is improved by about 3.51, and the structural similarity (SSIM) is improved by about 0.163 on the CelebA-HQ and Places2 datasets compared with the current mainstream algorithms. The qualitative analysis shows that this model not only generates semantically sound content as a whole but also better matches the human visual perception in terms of local structural connectivity and texture synthesis.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Generative Adversarial Networks and Image Synthesis · Advanced Image Processing Techniques · Image and Signal Denoising Methods

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

Affiliations

Engineering Research Center of Digital Forensics, Ministry of Education, Nanjing University of Information Science and Technology, Nanjing 210044, China

Funding

Natural Science Foundation of Jiangsu Province · National Natural Science Foundation of China · Qing Lan Project · Postgraduate Research & Practice Innovation Program of Jiangsu Province

References (35)

Show source-provided references
1. Bertalmio, M., Sapiro, G., Caselles, V., and Ballester, C. (2000, January 23–28). Image Inpainting. Proceedings of the 27th Annual Conference on Computer Graphics and Interactive Techniques, New Orleans, LO, USA.10.1145/344779.344972 ↗
2. Nontexture inpainting by curvature-driven diffusions10.1006/jvci.2001.0487 ↗
3. Simakov, D., Caspi, Y., Shechtman, E., and Irani, M. (2008, January 23–28). Summarizing visual data using bidirectional similarity. Proceedings of the 2008 IEEE Conference on Computer Vision and Pattern Recognition, Anchorage, AK, USA.10.1109/CVPR.2008.4587842 ↗
4. Region filling and object removal by exemplar-based image inpainting10.1109/TIP.2004.833105 ↗
5. Criminisi, A., Pérez, P., and Toyama, K. (2003, January 16–22). Object Removal by Exemplar-Based Inpainting. Proceedings of the 2003 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Madison, WI, USA.
6. 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 ↗
7. Goodfellow, I.J., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., Courville, A., and Bengio, Y. (2014). Generative adversarial networks. arXiv.
8. Globally and locally consistent image completion10.1145/3072959.3073659 ↗
9. Nazeri, K., Ng, E., Joseph, T., Qureshi, F., and Ebrahimi, M. (2019). EdgeConnect: Generative Image Inpainting with Adversarial Edge Learning. arXiv.
10. Ren, Y., Yu, X., Zhang, R., Li, T.H., Liu, S., and Li, G. (November, January 27). StructureFlow: Image inpainting via structure-aware appearance flow. Proceedings of the IEEE International Conference on Computer Vision, Seoul, Republic of Korea.
11. Yang, J., Qi, Z., and Shi, Y. (2020). Learning to Incorporate Structure Knowledge for Image Inpainting. arXiv.10.20944/preprints202002.0125.v1 ↗
12. 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 ↗
13. PatchMatch: A Randomized Correspondence Algorithm for Structural Image Editing10.1145/1531326.1531330 ↗
14. 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 ↗
15. Yan, Z., Li, X., Li, M., Zuo, W., and Shan, S. (2018, January 8–14). Shift-net: Image inpainting via deep feature rearrangement. Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany.10.1007/978-3-030-01264-9_1 ↗
16. 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 ↗
17. Mou, C., Wang, Q., and Zhang, J. (2022, January 19–20). Deep Generalized Unfolding Networks for Image Restoration. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA.10.1109/CVPR52688.2022.01688 ↗
18. Deep Generative Model for Image Inpainting with Local Binary Pattern Learning and Spatial Attention10.1109/TMM.2021.3111491 ↗
19. Yu, J., Lin, Z., Yang, J., Shen, X., Lu, X., and Huang, T.S. (2018, January 18–23). Cenerative 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 ↗
20. Zeng, Y., Fu, J., Chao, H., and Guo, B. (2019, January 15–20). Learning pyramid-context encoder network for high-quality image inpainting. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA.10.1109/CVPR.2019.00158 ↗
21. Zheng, C., Cham, T.J., and Cai, J. (2019, January 15–20). Pluralistic lmage Completion. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA.10.1109/CVPR.2019.00153 ↗
22. Liu, H., Jiang, B., Xiao, Y., and Yang, C. (November, January 27). Coherent semantic attention for image inpainting. Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea.
23. Wang, N., Li, J., Zhang, L., and Du, B. (2019, January 10–16). MUSICAL: Multi-Scale Image Contextual Attention Learning for Inpainting. Proceedings of the 28th International Joint Conference on Artificial Intelligence (IJCAI), Macao, China.10.24963/ijcai.2019/520 ↗
24. Li, J., Wang, N., Zhang, L., Du, B., and Tao, D. (2020, January 13–19). Recurrent feature reasoning for image inpainting. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA.10.1109/CVPR42600.2020.00778 ↗
25. Wang, T.C., Liu, M.Y., Zhu, J.Y., Tao, A., Kautz, J., and Catanzaro, B. (2018, January 18–22). High-resolution image synthesis and semantic manipulation with conditional gans. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00917 ↗
26. Leibe, B., Matas, J., Sebe, N., and Welling, M. (2016). Computer Vision—ECCV 2016, Springer.10.1007/978-3-319-46478-7 ↗
27. Gatys, L.A., Ecker, A.S., and Bethge, M. (2016, January 27–30). Image Style Transfer Using Convolutional Neural Networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.10.1109/CVPR.2016.265 ↗
28. Places: A 10 million image database for scene recognition10.1109/TPAMI.2017.2723009 ↗
29. Karras, T., Aila, T., Laine, S., and Lehtinen, J. (2017). Progressive growing of gans for improved quality, stability, and variation. arXiv.
30. Tyleček, R., and Šára, R. (2013, January 3–6). Spatial pattern templates for recognition of objects with regular structure. Proceedings of the German Conference on Pattern Recognition, Saarbrucken, Germany.10.1007/978-3-642-40602-7_39 ↗
31. Sagong, M.C., Shin, Y.G., Kim, S.W., Park, S., and Ko, S.J. (2019, January 15–20). PEPSI: Fast image inpainting with parallel decoding network. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA.10.1109/CVPR.2019.01162 ↗
32. Guo, X., Yang, H., and Huang, D. (2021, January 19–25). Image inpainting via conditional texture and structure dual generation. Proceedings of the IEEE/CVF International Conference on Computer Vision, Virtual.10.1109/ICCV48922.2021.01387 ↗
33. Advantages of the mean absolute error (MAE) over the root mean square error (RMSE) in assessing average model performance10.3354/cr030079 ↗
34. Statistical evaluation of image quality measures10.1117/1.1455011 ↗
35. Wang, Z., Simoncelli, E.P., and Bovik, A.C. (2003, January 9–12). Multiscale structural similarity for image quality assessment. Proceedings of the Thirty-Seventh Asilomar Conference on Signals, Systems & Computers, Pacific Grove, CA, USA.