PDF (7472K)
摘要
为应对文物图像在数字修复中存在的结构缺失、边界模糊和语义不明确等挑战,提出了一种边界感知可变 形对比学习增强的层次化掩码感知 Transformer 修复框架。 该方法融合了掩码图像建模与层次化视觉 Transformer 的优势,引入动态规划分组机制,在编码阶段仅对可见区域执行注意力计算,有效提升了计算资源利用效率并降低 显存占用。 与此同时,设计的边界感知可变形对比模块通过从上下文中动态采样高相关特征并执行加权对比学 习,有效提升了边界重建的一致性与细节保真度。 大量实验证明,所提方法在多个图像修复数据集上均优于现有 主流算法,尤其在大面积破损与复杂纹饰场景下表现出更高的结构还原精度与视觉质量,展示了其在文物图像高 质量修复任务中的广阔应用潜力。
Abstract
To address challenges in digital restoration of cultural relic images, such as structural loss, blurred boundaries, and ambiguous semantics, this paper proposes a hierarchical mask-aware Transformer restoration framework enhanced with boundary-aware deformable contrastive learning. The proposed method integrates the advantages of Masked Image Modeling (MIM) and hierarchical vision Transformers, and introduces a dynamic grouping mechanism that restricts attention computation to visible regions during the encoding stage. This design effectively enhances computational resource utilization efficiency and reduces memory consumption, thereby achieving a better balance between model performance and computational cost. Meanwhile, the boundary-aware deformable contrastive module dynamically samples highly relevant features from context and performs weighted contrastive learning, effectively improving boundary reconstruction consistency and detail fidelity. Extensive experiments demonstrate that the proposed method outperforms mainstream approaches on multiple image inpainting datasets, particularly in scenarios with large-area damage and complex decorative patterns, achieving higher structural restoration accuracy and visual quality, showcasing its broad potential for high-quality restoration of cultural relic images.
关键词
Key words
[Author(id=1334249009615872321, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, orderNo=0, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=varasekie@163.com, emailSecond=null, emailThird=null, correspondingAuthor=0, authorType=1, ext={EN=AuthorExt(id=1334249009682981188, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, authorId=1334249009615872321, language=EN, stringName=Lingyi CHEN, firstName=Lingyi, middleName=null, lastName=CHEN, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=1, address=1 School of Information Science and Engineering, Hohai University, Changzhou 213200, P. R. China, bio=null, bioImg=null, bioContent=null, aboutCorrespAuthor=null), CN=AuthorExt(id=1334249009737507141, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, authorId=1334249009615872321, language=CN, stringName=陈零壹, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=1, address=1 河海大学 信息科学与工程学院, 江苏 常州 213200, bio={"content":" 陈零壹,硕士研究生,主要研究方向为深度学习图像修复等。 E-mail:varasekie@163.com。
"}, bioImg=null, bioContent= 陈零壹,硕士研究生,主要研究方向为深度学习图像修复等。 E-mail:varasekie@163.com。
, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1334249009448100154, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, xref=1, ext=[AuthorCompanyExt(id=1334249009464877371, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, companyId=1334249009448100154, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=1 School of Information Science and Engineering, Hohai University, Changzhou 213200, P. R. China), AuthorCompanyExt(id=1334249009481654588, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, companyId=1334249009448100154, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=1 河海大学 信息科学与工程学院, 江苏 常州 213200)])]), Author(id=1334249009787838791, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, orderNo=1, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=2129003071@qq.com, emailSecond=null, emailThird=null, correspondingAuthor=0, authorType=1, ext={EN=AuthorExt(id=1334249009854947659, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, authorId=1334249009787838791, language=EN, stringName=Yiran HU, firstName=Yiran, middleName=null, lastName=HU, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=1, address=1 School of Information Science and Engineering, Hohai University, Changzhou 213200, P. R. China, bio=null, bioImg=null, bioContent=null, aboutCorrespAuthor=null), CN=AuthorExt(id=1334249009905279309, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, authorId=1334249009787838791, language=CN, stringName=胡奕然, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=1, address=1 河海大学 信息科学与工程学院, 江苏 常州 213200, bio={"content":"胡奕然,本科生,主要研究方向为深度学习图像修复等。 E-mail:2129003071@qq.com。
"}, bioImg=null, bioContent=胡奕然,本科生,主要研究方向为深度学习图像修复等。 E-mail:2129003071@qq.com。
, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1334249009448100154, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, xref=1, ext=[AuthorCompanyExt(id=1334249009464877371, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, companyId=1334249009448100154, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=1 School of Information Science and Engineering, Hohai University, Changzhou 213200, P. R. China), AuthorCompanyExt(id=1334249009481654588, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, companyId=1334249009448100154, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=1 河海大学 信息科学与工程学院, 江苏 常州 213200)])]), Author(id=1334249009947222353, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, orderNo=2, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=20101832@hhu.edu.cn, emailSecond=null, emailThird=null, correspondingAuthor=0, authorType=1, ext={EN=AuthorExt(id=1334249009997554005, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, authorId=1334249009947222353, language=EN, stringName=Ning XU, firstName=Ning, middleName=null, lastName=XU, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=1, address=1 School of Information Science and Engineering, Hohai University, Changzhou 213200, P. R. China, bio=null, bioImg=null, bioContent=null, aboutCorrespAuthor=null), CN=AuthorExt(id=1334249010039497047, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, authorId=1334249009947222353, language=CN, stringName=徐宁, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=1, address=1 河海大学 信息科学与工程学院, 江苏 常州 213200, bio={"content":"徐 宁,副教授,博士,主要研究方向为模式识别。 E-mail:20101832@hhu.edu.cn。
"}, bioImg=null, bioContent=徐 宁,副教授,博士,主要研究方向为模式识别。 E-mail:20101832@hhu.edu.cn。
, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1334249009448100154, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, xref=1, ext=[AuthorCompanyExt(id=1334249009464877371, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, companyId=1334249009448100154, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=1 School of Information Science and Engineering, Hohai University, Changzhou 213200, P. R. China), AuthorCompanyExt(id=1334249009481654588, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, companyId=1334249009448100154, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=1 河海大学 信息科学与工程学院, 江苏 常州 213200)])]), Author(id=1334249010081440090, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, orderNo=3, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=leosu8622@163.com, emailSecond=null, emailThird=null, correspondingAuthor=0, authorType=1, ext={EN=AuthorExt(id=1334249010131771741, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, authorId=1334249010081440090, language=EN, stringName=Xin SU, firstName=Xin, middleName=null, lastName=SU, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=1, address=1 School of Information Science and Engineering, Hohai University, Changzhou 213200, P. R. China, bio=null, bioImg=null, bioContent=null, aboutCorrespAuthor=null), CN=AuthorExt(id=1334249010173714784, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, authorId=1334249010081440090, language=CN, stringName=苏新, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=1, address=1 河海大学 信息科学与工程学院, 江苏 常州 213200, bio={"content":"苏 新,教授,硕士生导师,博士,主要研究方向为移动通信、 边缘/ 雾计算、智慧海洋等。 E-mail:leosu8622@163.com。
"}, bioImg=null, bioContent=苏 新,教授,硕士生导师,博士,主要研究方向为移动通信、 边缘/ 雾计算、智慧海洋等。 E-mail:leosu8622@163.com。
, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1334249009448100154, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, xref=1, ext=[AuthorCompanyExt(id=1334249009464877371, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, companyId=1334249009448100154, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=1 School of Information Science and Engineering, Hohai University, Changzhou 213200, P. R. China), AuthorCompanyExt(id=1334249009481654588, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, companyId=1334249009448100154, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=1 河海大学 信息科学与工程学院, 江苏 常州 213200)])]), Author(id=1334249010215657827, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, orderNo=4, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=lvjia@hhu.edu.cn, emailSecond=null, emailThird=null, correspondingAuthor=1, authorType=1, ext={EN=AuthorExt(id=1334249010265989477, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, authorId=1334249010215657827, language=EN, stringName=Jia LYU, firstName=Jia, middleName=null, lastName=LYU, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=2, address=2 School of Artificial Intelligence and Automation, Hohai University, Changzhou 213200, P. R. China, bio=null, bioImg=null, bioContent=null, aboutCorrespAuthor=null), CN=AuthorExt(id=1334249010307932519, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, authorId=1334249010215657827, language=CN, stringName=吕嘉, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=2, address=2 河海大学 人工智能与自动化学院, 江苏 常州 213200, bio=null, bioImg=null, bioContent=null, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1334249009531986237, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, xref=2, ext=[AuthorCompanyExt(id=1334249009548763454, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, companyId=1334249009531986237, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=2 School of Artificial Intelligence and Automation, Hohai University, Changzhou 213200, P. R. China), AuthorCompanyExt(id=1334249009565540671, tenantId=1045748351789510663, journalId=1155139928303341798, articleId=1334249008638599477, companyId=1334249009531986237, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=2 河海大学 人工智能与自动化学院, 江苏 常州 213200)])])]
陈零壹,胡奕然,徐宁,苏新,吕嘉.
融合动态分组注意力与可变形对比的文物图像修复[J].
重庆邮电大学学报(自然科学版), 2026, 38(5): 1044-1055 DOI:10.3979/j.issn.1673-825X.202509290212
| [1] |
He Kaiming, Chen Xinlei, Xie Saining, et al. Masked autoencoders are scalable vision learners[C]//Proceedings of the IEEE/ CVF Conference on Computer Vision and Pattern Recognition. New Orleans, USA: IEEE, 2022: 16000-16009.
|
| [2] |
Xie Zhenda, Zhang Zheng, Cao Yue, et al. SimMIM: A simple framework for masked image modeling[C]//Proceedings of the IEEE/ CVF Conference on Computer Vision and Pattern Recognition. New Orleans, USA: IEEE, 2022: 9653-9663.
|
| [3] |
Huang Lang, You Shan, Zheng Mingkai, et al. Green hierarchical vision transformer for masked image modeling[J].Advances in Neural Information Processing Systems, 2022, 35: 19997-20010.
|
| [4] |
Hu Ronghang, Dollár P, He Kaiming, et al. Learning to segment every thing[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Salt Lake City,USA: IEEE, 2018: 4233-4241.
|
| [5] |
He Kaiming, Gkioxari G, Dollár P, et al. Mask R-CNN[C]//Proceedings of the IEEE International Conference on Computer Vision. Venice,Italy: IEEE, 2017: 2961-2969.
|
| [6] |
Kuo Weicheng, Angelova A, Malik J, et al. ShapeMask: Learning to segment novel objects by refining shape priors[C]//Proceedings of the IEEE/ CVF International Conference on Computer Vision. Seoul, Republic of Korea: IEEE, 2019: 9207-9216.
|
| [7] |
Zhou Yanzhao, Wang Xin, Jiao Jianbin, et al. Learning saliency propagation for semi-supervised instance segmentation[C]//Proceedings of the IEEE/ CVF Conference on Computer Vision and Pattern Recognition. Seattle, USA: IEEE, 2020: 10307-10316.
|
| [8] |
Pathak D, Krahenbuhl P, Donahue J, et al. Context encoders: Feature learning by inpainting[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Las Vegas,USA: IEEE, 2016: 2536-2544.
|
| [9] |
Shin Y, Sagong M, Yeo Y, et al. Pepsi + +: Fast and lightweight network for image inpainting[J]. IEEE Transactions on Neural Networks and Learning Systems, 2021, 32(1): 252-265.
|
| [10] |
Yu Jiahui, Lin Zhe, Yang Jimei, et al. Generative image inpainting with contextual attention[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Salt Lake City,USA: IEEE, 2018: 5505-5514.
|
| [11] |
Li Jingyuan, Wang Ning, Zhang Lefei, et al. Recurrent feature reasoning for image inpainting[C]//Proceedings of the IEEE/ CVF Conference on Computer Vision and Pattern Recognition. Seattle,USA: IEEE, 2020: 7760-7768.
|
| [12] |
汪榕涛,黎勇,刘锐,等. 自注意力加权半脸的人脸表情识别算法[J].重庆邮电大学学报(自然科学版), 2023, 35 (6): 1107-1116.
|
| [13] |
Wang Rongtao, Li Yong, Liu Rui, et al. Facial expression recognition algorithm for half-face images with self-attention weighting[J]. Journal of Chongqing University of Posts and Telecommunications (Natural Science Edition), 2023, 35(6): 1107-1116.
|
| [14] |
Wan Ziyu, Zhang Jingbo, Chen Dongdong, et al. High-fidelity pluralistic image completion with transformers[C]/ /Proceedings of the IEEE/ CVF International Conference on Computer Vision. Montreal, Canada: IEEE,2021: 4692-4701.
|
| [15] |
王利业, 卢棚, 金龙泉, 等. 基于改进移动立方体算法重建头部及腹部 CT 图像[J].中国医学影像技术, 2025, 41(7): 1139-1143.
|
| [16] |
Wang Liye, Lu Peng, Jin Longquan, et al. Reconstruction of head and abdominal CT images based on an improved marching cubes algorithm[J].Chinese Journal of Medical Imaging Technology, 2025, 41(7): 1139-1143.
|
| [17] |
钟梦圆,姜麟,李超. 多尺度特征提取残差网络的超分辨率图像重建算法[J]. 重庆邮电大学学报(自然科 学版),2024, 36 (1): 76-85.
|
| [18] |
Zhong Mengyuan, Jiang Lin, Li Chao. Super-resolution image reconstruction algorithm based on a multi-scale feature extraction residual network[J]. Journal of Chongqing University of Posts and Telecommunications (Natural Science Edition), 2024, 36(1): 76-85.
|
| [19] |
Zeng Yu, Lin Zhe, Lu Huchuan, et al. CR-Fill: generative image inpainting with auxiliary contextual reconstruction[C]//Proceedings of the IEEE/ CVF International Conference on Computer Vision. Montreal, Canada:IEEE, 2021: 14164-14173.
|
| [20] |
Yu Jiahui, Lin Zhe, Yang Jimei, et al. Free-form image inpainting with gated convolution[C]//Proceedings of the IEEE/ CVF International Conference on Computer Vision. Seoul,Republic of Korea: IEEE, 2019: 4471-4480.
|
| [21] |
Huang Jiabin, Kang S B, Ahuja N, et al. Image completion using planar structure guidance[J].ACM Transactions on Graphics, 2014, 33(4): 1-10.
|
| [22] |
赵磊, 林思寰, 林志洁, 等. 中国古画渐进式多级特征修复算法[J].计算机辅助设计与图形学学报, 2023, 35(7): 1040-1051.
|
| [23] |
Zhao Lei, Lin Sihuan, Lin Zhijie, et al. Progressive multi-level feature restoration algorithm for ancient Chinese paintings[J].Journal of Computer-Aided Design and Computer Graphics, 2023, 35(7): 1040-1051.
|
| [24] |
刘浩威, 姚镜池, 刘波, 等. 基于多尺度注意力机制的两阶段文物图像修复方法[J].计算机科学, 2023, 50(S1): 334-341.
|
| [25] |
Liu Haowei, Yao Jingchi, Liu Bo, et al. A two-stage cultural relic image restoration method based on multi-scale attention mechanism[J].Computer Science, 2023, 50(S1): 334-341.
|
| [26] |
胡康源. 基于自注意力机制的文物图像修复和超分辨率研究[D].成都: 四川师范大学, 2025.
|
| [27] |
Hu Kangyuan. Research on cultural relic image restoration and super-resolution based on self-attention mechanism[D]. Chengdu:Sichuan Normal University,2025.
|
| [28] |
李奇,李龙,王卫,等. 基于改进 Criminisi 算法的破损纺织品文物图像修复[J].激光与光电子学进展, 2023,60(16):173-182.
|
| [29] |
Li Qi, Li Long, Wang Wei, et al. Damaged textile cultural relic image restoration based on an improved Criminisi algorithm[J]. Laser & Optoelectronics Progress,2023, 60(16): 173-182.
|
| [30] |
王真言,蒋胜丞,宋奇鸿,等. 基于 Transformer 的文物图像修复方法[J].计算机研究与发展,2024,61(3): 748-761.
|
| [31] |
Wang Zhenyan, Jiang Shengcheng, Song Qihong, et al. Cultural relic image restoration method based on Transformer[J]. Journal of Computer Research and Development, 2024, 61(3): 748-761.
|
| [32] |
沙莎,魏宛彤,李强,等. 基于深度学习的楚国墓葬纺织品图像复原[J].丝绸,2023,60(5):1-7.
|
| [33] |
Sha Sha, Wei Wantong, Li Qiang, et al. Deep learning-based image restoration of textiles from Chu State tombs[J].Silk, 2023, 60(5): 1-7.
|
| [34] |
Li Wenbo, Lin Zhe, Zhou Kun, et al. MAT: Mask-aware transformer for large hole image inpainting[EB/OL]. (2022-03-29)[2025-09-01]. https://arxiv.org/abs/2203.15270.
|
| [35] |
Wang Xuehui, Zhao Kai, Zhang Ruixin, et al. ContrastMask: Contrastive learning to segment everything[EB/OL]. (2022-03-18)[2025-09-02]. https://arxiv.org/abs/2203.09775.
|
| [36] |
Zeng Yanhong, Fu Jianlong, Chao Hongyang, et al. Aggregated contextual transformations for high-resolution image inpainting[C]//Proceedings of the IEEE/ CVF Conference on Computer Vision and Pattern Recognition. Nashville,USA: IEEE, 2021: 6158-6168.
|
基金资助
国家自然科学基金项目(62371181)
常州市政策引导类计划(国际科技合作/ 港澳台科技合作)(CZ20230029)