Journal of South China University of Technology(Natural Science Edition) ›› 2023, Vol. 51 ›› Issue (9): 99-109.doi: 10.12141/j.issn.1000-565X.220420

• Computer Science & Technology • Previous Articles     Next Articles

Image Inpainting Algorithm Based on Dense Feature Reasoning and Mix Loss Function

LI Haiyan1 YIN Haolin1 LI Peng2 ZHOU Liping2   

  1. 1.School of Information Science and Engineering,Yunnan University,Kunming 650500,Yunnan,China
    2.Editorial Department of Journal of Yunnan University(Natural Science Edition),Yunnan University,Kunming 650500,Yunnan,China
  • Received:2022-07-04 Online:2023-09-25 Published:2023-02-08
  • Contact: 李海燕(1976-),女,教授,博士生导师,主要从事人工智能、图像处理研究。 E-mail:leehy@ynu.edu.cn
  • About author:李海燕(1976-),女,教授,博士生导师,主要从事人工智能、图像处理研究。
  • Supported by:
    the National Natural Science Foundation of China(62266049)

Abstract:

To effectively solve the problems of low feature utilization and poor image structure coherence occurred when existing algorithms are used to repair large irregularly missing images, this study proposed an image repair algorithm based on dense feature inference (DFR) and hybrid loss function. The repair network consists of multiple inference modules (FRs) densely connected. Firstly, after the image to be restored was fed into the first inference module for feature inference, the output feature map channels were merged and sent to the next inference module. The input of each subsequent inference module was the inferred features from all the previous inference modules and so on, so as to make full use of the feature information captured by each reasoning module. Subsequently, a propagation consistent attention (PCA) mechanism was proposed to improve the overall consistency of the patched regions with the known regions. Finally, a hybrid loss function (ML) was proposed to optimize the structural coherence of the repair results. The whole DFR network adopted group normalization (GN), and excellent repair results can be achieved even using small training batches. The performance of the proposed algorithm was verified on Paris StreetView and CelebA face datasets, which are internationally recognized datasets. The objective and subjective experimental results show that the proposed algorithm can effectively repair large irregular missing images, improve feature utilization and structural coherence. Its average peak signal-to-noise ratio (PSNR), average structural similarity ( SSIM), mean square error (MSE), Fréchet distance (FID) and learning perceptual image block similarity (LPIPS) metrics all outperform the comparison algorithms.

Key words: image inpainting, dense feature reasoning, attention mechanism, hybrid loss function, group normalization

CLC Number: