计算机科学 ›› 2026, Vol. 53 ›› Issue (11A): 260400005-608.doi: 10.11896/jsjkx.260400005

• 图像处理&多媒体技术 • 上一篇    下一篇

结合多样化卷积与沙漏注意力的图像修复网络

向豪1,2, 贾云舒3   

  1. 1 成都医学院临床医学院 成都 610000
    2 成都医学院第一附属医院耳鼻咽喉头颈外科 成都 610000
    3 四川深蓝鸟科技有限公司 成都 610000
  • 出版日期:2026-11-16 发布日期:2026-11-16
  • 通讯作者: 贾云舒(619480672@qq.com)
  • 作者简介:(xianghao9199@163.com)

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
  • Published:2026-11-16 Online: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.

摘要: 图像作为日常生活中最为关键的信息载体之一,在传输过程中极易受信道损耗等随机因素影响而发生退化。图像修复作为恢复受损图像、提升视觉质量的核心技术,已广泛应用于诸多领域。近年来,深度学习在图像修复中的地位日益凸显,但现有的基于深度学习的图像修复方法通常依赖大量训练数据与高计算开销,在小样本场景下易出现过拟合的问题。针对上述问题,提出一种面向小样本约束的图像修复模型。该模型以生成对抗网络为基础,核心是通过集成多样化卷积与沙漏注意力机制构建高效生成器。首先,利用递归门控卷积替代标准卷积,通过递归设计实现高阶空间交互,在保持极低参数量的同时增强高层语义提取精度。其次,引入沙漏注意力机制,通过对称的多尺度架构捕捉全局结构关联,并引导网络精准重构局部纹理细节。实验结果表明,该模型在CelebA-HQ 与 Places2 数据集上,仅需10%样本即可实现快速收敛,且 PSNR 指标在不同的缺失率下以平均1.27 dB的优势领先于主流复杂网络。同时,验证了通过引入多样化卷积与沙漏注意力机制,在小样本场景下实现高质量图像修复的可行性。

关键词: 图像修复, 多样化卷积, 沙漏注意力, 双判别器

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

中图分类号: 

  • 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.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!