journal article·2024-09-28Open access

Ancient Painting Inpainting with Regional Attention-Style Transfer and Global Context Perception

Xiaotong Liu, Jin Wan, Nan Wang

Applied Sciences· Volume 14· Issue 19

Abstract

Ancient paintings, as a vital component of cultural heritage, encapsulate a profound depth of cultural significance. Over time, they often suffer from different degradation conditions, leading to damage. Existing ancient painting inpainting methods struggle with semantic discontinuities, blurred textures, and details in missing areas. To address these issues, this paper proposes a generative adversarial network (GAN)-based ancient painting inpainting method named RG-GAN. Firstly, to address the inconsistency between the styles of missing and non-missing areas, this paper proposes a Regional Attention-Style Transfer Module (RASTM) to achieve complex style transfer while maintaining the authenticity of the content. Meanwhile, a multi-scale fusion generator (MFG) is proposed to use the multi-scale residual downsampling module to reduce the size of the feature map and effectively extract and integrate the features of different scales. Secondly, a multi-scale fusion mechanism leverages the Multi-scale Cross-layer Perception Module (MCPM) to enhance feature representation of filled areas to solve the semantic incoherence of the missing region of the image. Finally, the Global Context Perception Discriminator (GCPD) is proposed for the deficiencies in capturing detailed information, which enhances the information interaction across dimensions and improves the discriminator’s ability to identify specific spatial areas and extract critical detail information. Experiments on the ancient painting and ancient Huaniao++ datasets demonstrate that our method achieves the highest PSNR values of 34.62 and 23.46 and the lowest LPIPS values of 0.0507 and 0.0938, respectively.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Aesthetic Perception and Analysis · Color Science and Applications · Computer Graphics and Visualization Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Chinese Painting Department, Xi’an Academy of Fine Arts, Xi’an 710065, China

Beijing Key Laboratory of Traffic Data Analysis and Mining, Beijing Jiaotong University, Beijing 100044, China

Funding

Fundamental Research Funds for the Central Universities

References (33)

Show source-provided references
1. Barani, S., Poornapushpakala, S., Subramoniam, M., Vijayashree, T., and Sudheera, K. (2022, January 28–29). Analysis on image inpainting of ancient paintings. Proceedings of the 2022 International Conference on Advances in Computing, Communication and Applied Informatics (ACCAI), Chennai, India.10.1109/ACCAI53970.2022.9752613 ↗
2. Use of historical painting concepts by modern methods in the inpainting of architectural monuments
3. Baath, H., Shinde, S., Keniya, J., Mishra, P., Saini, A. (2023, January 12–14). Damage segmentation and inpainting of ancient wall paintings for preserving cultural heritage. Proceedings of the International Conference on Computer Vision and Image Processing, Okinawa, Japan.10.1007/978-3-031-58535-7_9 ↗
4. Deep learning10.1038/nature14539 ↗
5. Generative adversarial networks10.1145/3422622 ↗
6. Generative adversarial networks: An overview10.1109/MSP.2017.2765202 ↗
7. Oktay, O., Schlemper, J., Folgoc, L., Lee, M., Heinrich, M., Misawa, K., Mori, K., McDonagh, S., Hammerla, N., and Kainz, B. (2018). Others Attention u-net: Learning where to look for the pancreas. arXiv.
8. Ouyang, X., Chen, Y., Zhu, K., and Agam, G. (2024, January 17–21). Image inpainting Refinement with Uformer GAN. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, DC, USA.10.1109/CVPRW63382.2024.00599 ↗
9. TranMSMrmer in tranMSMrmer
10. MFGAN: Towards a generic multi-kernel filter based adversarial generator for image inpainting10.1007/s13042-023-01959-7 ↗
11. Sun, Z., Lei, Y., and Wu, X. (2024). Chinese Ancient Paintings Inpainting Based on Edge Guidance and Multi-Scale Residual Blocks. Electronics, 13.10.3390/electronics13071212 ↗
12. Lightweight image super-resolution for IoT devices using deep residual feature distillation network10.1016/j.knosys.2023.111343 ↗
13. An ancient Chinese painting inpainting method based on improved generative adversarial network10.1088/1742-6596/2400/1/012005 ↗
14. Deep learning for computer vision: A brief review10.1155/2018/7068349 ↗
15. Artificial intelligence and illusions of understanding in scientific research10.1038/s41586-024-07146-0 ↗
16. Zeng, Y., and Gong, Y. (2018, January 19–21). Nearest neighbor-based digital inpainting of damaged ancient Chinese paintings. Proceedings of the 2018 IEEE 23rd International Conference on Digital Signal Processing (DSP), Shanghai, China.10.1109/ICDSP.2018.8631553 ↗
17. inpainting of ancient temple murals using cGAN and PConv networks10.1016/j.cag.2022.11.001 ↗
18. EA-GAN: Inpainting of text in ancient Chinese books based on an example attention generative adversarial network10.1186/s40494-023-00882-y ↗
19. Dunhuang murals image inpainting method based on generative adversarial network10.1186/s40494-024-01159-8 ↗
20. MS2Net: Multi-scale and multi-stage feature fusion for blurred image super-resolution10.1109/TCSVT.2022.3153390 ↗
21. Learning a deep multi-scale feature ensemble and an edge-attention guidance for image fusion10.1109/TCSVT.2021.3056725 ↗
22. Research on a multi-scale degradation fusion network in all-in-one image inpainting10.1049/ipr2.13156 ↗
23. A novel image super-resolution algorithm based on multi-scale dense recursive fusion network10.1016/j.neucom.2022.02.042 ↗
24. Deep learning-based compressed image artifacts reduction based on multi-scale image fusion10.1016/j.inffus.2020.10.016 ↗
25. Cer, D., Yang, Y., Kong, S., Hua, N., Limtiaco, N., John, R., Constant, N., Guajardo-Cespedes, M., Yuan, S., and Tar, C. (November, January 31). Universal sentence encoder for English. Proceedings of the 2018 Conference On Empirical Methods In Natural Language Processing: System Demonstrations, Brussels, Belgium.10.18653/v1/D18-2029 ↗
26. Dual discriminator generative adversarial nets
27. Cascaded tranMSMrmer U-net for image inpainting10.1016/j.sigpro.2022.108902 ↗
28. Weng, L. (2019). From gan to wgan. arXiv.
29. Li, J., Niu, K., Liao, L., Wang, L., Liu, J., Lei, Y., and Zhang, M. (2020, January 17–20). A generative steganography method based on WGAN-GP. Proceedings of the Artificial Intelligence and Security: 6th International Conference, ICAIS 2020, Hohhot, China. Proceedings, Part I 6.
30. Zheng, C.X., Cham, T.J., and Cai, J.F. (2019, January 16–17). Pluralistic image completion. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA.10.1109/CVPR.2019.00153 ↗
31. Li, J.Y., Wang, N., Zhang, L.F., Du, B., and Tao, D.C. (2020, January 13–19). Recurrent feature reasoning for image inpainting. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA.10.1109/CVPR42600.2020.00778 ↗
32. Nazeri, K., Ng, E., Joseph, T., Qureshi, F.Z., and Ebrahimi, M. (2019). Edgeconnect: Generative image inpainting with adversarial edge learning. arXiv.
33. Jain, J., Zhou, Y., and Yu, N. (2023, January 2–7). Keys to better image inpainting: Structure and texture go hand in hand. Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, Waikoloa, HI, USA.10.1109/WACV56688.2023.00029 ↗