• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

Computer Engineering & Science ›› 2023, Vol. 45 ›› Issue (02): 304-312.

• Graphics and Images • Previous Articles     Next Articles

Facial image inpainting based on partial convolution and multi-scale feature integration

SUN Qi1,4,ZHAI Rui1,4,ZUO Fang1,2,3,ZHANG Yu-tao1,4   

  1. (1.School of Software,Henan University,Kaifeng 475000;
    2.Henan International Joint Laboratory of Intelligent Network Theory and Key Technology,Kaifeng 475000;
    3.Henan Higher Education Academic Innovation and Intelligence Center,Kaifeng 475000;
    4.Intelligent Data Processing Engineering Research Center of Henan Province,Kaifeng 475000,China)
  • Received:2021-06-25 Revised:2021-10-25 Accepted:2023-02-25 Online:2023-02-25 Published:2023-02-15

Abstract: Aiming at the problems of the local chromatic aberrations, boundary artifacts and detail defects in inpainting facial images with large damaged areas, this paper proposes a facial image inpainting model based on partial convolution and multi-scale feature integration. The model is divided into two components: a multi-scale inpainting network and a discriminator network. The inpainting network achieves feature extraction and integration of facial images by effectively fusing deep and shallow image features through a multi-level feature extraction module and a main branching module. Moreover, a joint loss function consisting of content loss, perceptual loss, style loss, total variance loss and adversarial loss is constructed for training a multi-scale inpainting network and enhancing visual consistency between generated images and real images through mutual adversarial with discriminator networks. Experimental results show that, under different mask ratio conditions, this model can generate images with reasonable texture structure and contextual semantic information, and perform better in qualitative and quantitative comparisons. 

Key words: facial image inpainting, partial convolution, multi-scale feature integration, generative adversarial network