Computer Science ›› 2026, Vol. 53 ›› Issue (11A): 260400005-608.doi: 10.11896/jsjkx.260400005

• Image Processing & Multimedia Technology • Previous Articles     Next Articles

Image Inpainting Network Based on Diverse Convolution and Hourglass Attention

XIANG Hao1,2, JIA Yunshu3   

  1. 1 School of Clinical Medicine,Chengdu Medical College,Chengdu 610000,China
    2 Department of Otolaryngology,Head and Neck Surgery,The First Affiliated Hospital of Chengdu Medical College,Chengdu 610000,China
    3 Sichuan Deep Blue Bird Technology Co.,Ltd.,Chengdu 610000,China
  • Online:2026-11-16 Published:2026-11-16
  • About author:XIANG Hao,born in 2000,postgra-duate.His main research interests include basic and clinical studies in otorhinolaryngology,obstructive sleep apnea(OSA),brain function research,and olfactory studies.
    JIA Yunshu,born in 1997,master.Her main research interests include action capture and recognition based on object detection,concentration recognition based on image segmentation,and part recognition based on image classification protection.

Abstract: Images are among the mostimportant carriers of information in daily life,yet they are highly susceptible to degradation during transmission due to random factors such as channel loss.Image inpainting,as a key technique for restoring damaged images and improving visual quality,has been widely applied in various fields.In recent years,deep learning has achieved remarkable success in image inpainting.However,existing methods often rely on large-scale training data and high computational cost,and tend to suffer from overfitting under limited sample conditions.To address these issues,this paper proposes an image inpainting model tailored for small-sample scenarios.The proposed method is based on a generative adversarial network(GAN),where an efficient generatoris constructed by integrating diverse convolution and hourglass attention mechanisms.Specifically,recurrent gated convolution is employed to replace standard convolution,enabling high-order spatial interaction modeling and enhancing high-level semantic feature extraction while maintaining a low parameter count.In addition,the hourglass attention mechanism is introduced to capture global structural dependencies through a symmetric multi-scale architecture,while guiding the precise reconstruction of local texture details.Experimental results on the CelebA-HQ and Places2 datasets demonstrate that the proposed model achieves fast convergence using only 10% of the training data,and outperforms mainstream complex networks by an average of 1.27 dB in PSNR under different missing rates.These results validate the effectiveness of integrating diverse convolution and hourglass attention mechanisms for achieving high-quality image inpainting in small-sample scenarios.

Key words: Image inpainting, Diversified convolution, Hourglass attention, Dual discriminators

CLC Number: 

  • TP391
[1] ZHONG Y,ZHAO X,ZHAO G,et al.Ctd-inpainting:Towards the coherence of text-driven inpainting with blended diffusion[J].Information Fusion,2025,122:103163.
[2] RODRIGUES W M,WALMSLEY F N,QUINTINO J P,et al.Combining Pruning Strategies to Generate Efficient Inpainting Networks[C]//2024 International Joint Conference on Neural Networks(IJCNN).2024:1-8.
[3] TANG Y,SUN Z,DU Y,et al.ATA:Adaptive transformation agent for text-guided subject-position variable background inpainting[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition.2025:18335-18345.
[4] GUO Y,YANG C,RAO A,et al.Keyframe-guided creative vi-deo inpainting[C]//Proceedings of the Computer Vision and Pattern Recognition Conference.2025:13009-13020.
[5] DONG Q,CAO C,FU Y.Incremental Transformer Structure Enhanced ImageInpainting with Masking Positional Encoding[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition(CVPR).2022:11358-11368.
[6] LI X,GUO Q,LIN D,et al.MISF:Multi-Level Interactive Siamese Filtering for High-Fidelity Image Inpainting[C]//Procee-dings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition(CVPR).2022:1869-1878.
[7] WANG Q,WANG Z,ZHANG X,et al.Art Image Inpainting With Style-Guided Dual-Branch Inpainting Network[J].IEEE Transactions on Multimedia,2024,26:8026-8037.
[8] HUANG L,HUANG Y,GUAN Q.Improving Image Inpainting via Adversarial Collaborative Training[J].IEEE Transactions on Multimedia,2025,27:356-370.
[9] TANG Y,SUN Z,DU Y,et al.ATA:Adaptive Transformation Agent for Text-Guided Subject-Position Variable Background Inpainting[C]//2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition(CVPR).2025:18335-18345.
[10] FREEMAN W T,EFROS A A.Image Quilting for Texture Synthesis and Transfer[C]//Proceedings of the 28th Annual Conference on Computer Graphics and Interactive Techniques.2001:341-346.
[11] DRORI I,COHEN-OR D,YESHURUN H.Fragment-BasedImage Completion[C]//ACM SIGGRAPH 2003 Papers.2003:303-312.
[12] DING D,RAM S,RODRÍGUEZ J J.Image Inpainting Using Nonlocal Texture Matching and Nonlinear Filtering[J].IEEE Transactions on Image Processing,2018,28(4):1705-1719.
[13] FANG Y,YU K,CHENG R,et al.Efficient Algorithms for Densest Subgraph Discovery[J].arXiv:1906.00341,2019.
[14] SONG L,CAO J,SONG L,et al.Geometry-Aware Face Completion and Editing[C]//Proceedings of the AAAI Conference on Artificial Intelligence.2019:2506-2513.
[15] XU Z,SUN J.Image Inpainting by Patch Propagation Using Patch Sparsity[J].IEEE Transactions on Image Processing,2010,19(5):1153-1165.
[16] WANG Y,CAO C,YU J,et al.Towards Enhanced Image Inpainting:Mitigating Unwanted Object Insertion and Preserving Color Consistency[C]//2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition(CVPR).2025:23237-23248.
[17] PATHAK D,KRAHENBUHL P,DONAHUE J,et al.Context Encoders:Feature Learning by Inpainting[C]//2016 IEEE Con-ference on Computer Vision and Pattern Recognition(CVPR).
2016:2536-2544.
[18] IIZUKA S,SIMOYAN E,KASHITANI A.Globally and Locally Consistent Image Completion[J].ACM Transactions on Gra-phics,2017,36(4):1-14.
[19] YAN Z,LI X,LI M,et al.Shift-Net:Image Inpainting via Deep Feature Rearrangement[C]//Proceedings of the European Conference on Computer Vision.2018:1-17.
[20] YU J,LIN Z,YANG J,et al.Generative Image Inpainting with Contextual Attention[C]//2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition.IEEE,2018:5505-5514.
[21] LIU G,REDA F A,SHIH K J,et al.Image Inpainting for Irre-gular Holes Using Partial Convolutions[C]//Proceedings of the European Conference on Computer Vision.2018:85-100.
[22] YU J,LIN Z,YANG J,et al.Free-Form Image Inpainting with Gated Convolution[C]//2019 IEEE/CVF International Conference on Computer Vision(ICCV).IEEE,2019:4470-4479.
[23] YEH R A,CHEN C,LIM T Y,et al.Semantic Image Inpainting with Deep Generative Models[C]//2017 IEEE Conference on Computer Vision and Pattern Recognition(CVPR).IEEE,2017:6882-6890.
[24] ZHU J Y,ZHANG R,PATHAK D,et al.Toward Multimodal Image-to-Image Translation[C]//Advances in Neural Information Processing Systems.2017.
[25] WAN Z,ZHANG J,CHEN D,et al.High-Fidelity Pluralistic Image Completion with Transformers[C]//Proceedings of the IEEE/CVF International Conference on Computer Vision.2021:4692-4701.
[26] YU Y,ZENG Z,ZHENG H,et al.OmniPaint:Mastering Object-Oriented Editing via Disentangled Insertion-Removal Inpainting[C]//Proceedings of the IEEE/CVF International Conference on Computer Vision(ICCV).2025:17324-17334.
[1] MA Ruihu, HUANG Yujie, YAO Junmei. ReGAN:Enhancing Wi-Fi Activity Recognition Under Low Packet Rates Using Image Reconstruction [J]. Computer Science, 2026, 53(7): 372-380.
[2] WU Guibin, YANG Zongyuan, XIONG Yongping, ZHANG Xing, WANG Wei. Seal Removal Based on Generative Adversarial Gated Convolutional Network [J]. Computer Science, 2024, 51(1): 198-206.
[3] LIN Zhen-xian, ZHANG Meng-kai, WU Cheng-mao, ZHENG Xing-ning. Face Image Inpainting with Generative Adversarial Network [J]. Computer Science, 2021, 48(9): 174-180.
[4] ZHAO Lu-lu, SHEN Ling, HONG Ri-chang. Survey on Image Inpainting Research Progress [J]. Computer Science, 2021, 48(3): 14-26.
[5] LIU Lang, LI Liang, DAN Yuan-hong. Coherent Semantic Spatial-Temporal Attention Network for Video Inpainting [J]. Computer Science, 2021, 48(10): 239-245.
[6] MENG Li-sha, REN Kun, FAN Chun-qi, HUANG Long. Dense Convolution Generative Adversarial Networks Based Image Inpainting [J]. Computer Science, 2020, 47(8): 202-207.
[7] ZHOU Xian-chun, XU Yan. Adaptive Image Inpainting Based on Structural Correlation [J]. Computer Science, 2020, 47(4): 131-135.
[8] TANG Hao-feng, DONG Yuan-fang, ZHANG Yi-tong, SUN Juan-juan. Survey of Image Inpainting Algorithms Based on Deep Learning [J]. Computer Science, 2020, 47(11A): 151-164.
[9] GAN Ling, ZHAO Fu-chao, YANG Meng. Self-adaptive Group Sparse Representation Method for Image Inpainting [J]. Computer Science, 2018, 45(8): 272-276.
[10] ZHANG Lei and KANG Bao-sheng. Image Inpainting for Object Removal Based on Structure Sparsity and Patch Difference [J]. Computer Science, 2018, 45(5): 255-259.
[11] SUN Quan, ZENG Xiao-qin. Image Inpainting Based on Generative Adversarial Networks [J]. Computer Science, 2018, 45(12): 229-234.
[12] DOU Li-yun, XU Dan, LI Jie, CHEN Hao and LIU Yi-cheng. Image Inpainting Based on Dual-tree Complex Wavelet Transform [J]. Computer Science, 2017, 44(Z6): 179-182.
[13] ZHU Xuan, ZHANG Xu-feng, LI Qiu-ju, WANG Ning and Tao Ji-yao. Image Inpainting Method Based on Sparse Decomposition [J]. Computer Science, 2016, 43(1): 294-297.
[14] HU Wen-jin,LIU Zhong-min and LI Zhan-ming. Improved Algorithm for Image Inpainting in Wavelet Domains [J]. Computer Science, 2014, 41(5): 299-303.
[15] ZHAI Dong-hai,LI Tong-liang,DUAN Wei-xia,YU Jiang and XIAO Jie. Optimal Exemplar Matching Algorithm Based on Matrix Similarity and its Application in Image Inpainting [J]. Computer Science, 2014, 41(1): 307-310.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!