电子科技 ›› 2025, Vol. 38 ›› Issue (6): 65-73.doi: 10.16180/j.cnki.issn1007-7820.2025.06.010

• • 上一篇    下一篇

基于CBAM残差块结合纹理采样器的水墨迁移算法

刘雪莉1, 杜洪波1(), 袁雪丰1, 朱立军2   

  1. 1.沈阳工业大学 理学院,辽宁 沈阳 110870
    2.北方民族大学 信息与计算科学学院,宁夏 银川 750021
  • 收稿日期:2023-12-15 修回日期:2024-01-10 出版日期:2025-06-15 发布日期:2025-06-24
  • 通讯作者: 杜洪波(1977-),男, E-mail:duhongbo@sut.edu.cn,副教授。研究方向:深度学习与图像处理。
  • 作者简介:刘雪莉(1998-),女,硕士研究生。研究方向:风格迁移及图像处理。
  • 基金资助:
    国家自然科学基金(11861003);辽宁省教育厅高等学校基本科研项目(LJKZ0157)

Ink Transfer Algorithm Based on CBAM Residual Block Combined with Texture Sampler

LIU Xueli1, DU Hongbo1(), YUAN Xuefeng1, ZHU Lijun2   

  1. 1. School of Science,Shenyang University of Technology,Shenyang 110870,China
    2. School of Information and Computing Science, Northern University for Nationalities, Yinchuan 750021, China
  • Received:2023-12-15 Revised:2024-01-10 Online:2025-06-15 Published:2025-06-24
  • Supported by:
    National Natural Science Foundation of China(11861003);Basic Scientific Research Project of Higher Education Department of Liaoning(LJKZ0157)

摘要:

针对水墨风格迁移算法出现的线条不清晰、纹理杂乱及颜色重建效果差等问题,文中提出了一种新型轻量级水墨风格迁移神经网络IWSGAN(Ink and Wash Style Generative Adversarial Networks)。使用CBAM(Convolutional Block Attention Module)残差块对特征图进行通道空间注意力计算,提高了算法对有效信息的采取率。结合水墨纹理显著性采样器ITSS(Ink-Texture-Saliency-Sampler)从训练数据中采样水墨显著性局部图像块,使迁移的水墨图片线条纹理的水墨质感更明显。采用5种不同的损失函数约束内容图像和生成图像的高层语义,以促进风格特征的一致性。实验结果表明,IWSGAN生成图像保留了更多的内容特征,线条的纹理细节更形象,色彩重建表现较好,图像质量得到了显著提升。

关键词: 风格迁移, 生成对抗网络, CBAM残差块, 注意力机制, ITSS, 局部对抗, 水墨迁移, 消融实验

Abstract:

In view of the problems of ink style transfer algorithm, such as unclear lines, chaotic textures and poor color reconstruction, a new lightweight ink style transfer neural network IWSGAN(Ink and Wash Style Generative Adversarial Networks) is proposed in this study. The CBAM(Convolutional Block Attention Module) residual block is used to calculate the channel spatial attention of the feature map, which improves the algorithm's adoption rate of effective information. In combination with the ink texture salience sampler ITSS(Ink-Texture-Saliency-Sampler), the local image blocks of ink painting salience are sampled from the training data to make the line texture of the transferred ink picture more ink texture. Five different loss functions are used to constrain the high-level semantics of the content image and the generated image to facilitate consistency in style characteristics. The experimental results show that the image generated by IWSGAN retains more content features, the texture details of the lines are more vivid, the color reconstruction performance is excellent, and the image quality is significantly improved.

Key words: style transfer, generative adversarial network, CBAM residual block, attention mechanism, ITSS, local adversarial, ink transfer, ablation experiment

中图分类号: 

  • TP391.41