Welcome to Journal of Graphics share: 

Journal of Graphics ›› 2023, Vol. 44 ›› Issue (4): 699-709.DOI: 10.11996/JG.j.2095-302X.2023040699

Previous Articles     Next Articles

Content semantics and style features match consistent artistic style transfer

LI Xin1(), PU Yuan-yuan1,2(), ZHAO Zheng-peng1, XU Dan1, QIAN Wen-hua1   

  1. 1. School of Information Science and Engineering, Yunnan University, Kunming Yunnan 650500, China
    2. University Key Laboratory of Internet of Things Technology and Application, Kunming Yunnan 650500, China
  • Received:2022-12-06 Accepted:2023-03-06 Online:2023-08-31 Published:2023-08-16
  • Contact: PU Yuan-yuan (1972-), professor, Ph.D. Her main research interests cover digital image processing, non-realistic drawing, and scientific understanding of visual arts, etc. E-mail:yuanyuanpu@ynu.edu.cn
  • About author:

    LI Xin (1997-), master student. His main research interest covers image style transfer. E-mail:3323163785@qq.com

  • Supported by:
    National Natural Science Foundation of China(61163019);National Natural Science Foundation of China(61271361);National Natural Science Foundation of China(61761046);National Natural Science Foundation of China(U1802271);National Natural Science Foundation of China(61662087);National Natural Science Foundation of China(62061049);Project of Department of Science and Technology of Yunnan Province(2014FA021);Project of Department of Science and Technology of Yunnan Province(2018FB100);Key Project of Applied Basic Research Program of Yunnan Provincial Science and Technology Department(202001BB050043);Key Project of Applied Basic Research Program of Yunnan Provincial Science and Technology Department(2019FA044);Major Science and Technology Special Program Projects in Yunnan Province(202002AD080001);Reserve Talents of Young and Middle-Aged Academic and Technical Leaders in Yunnan Province(2019HB121)

Abstract:

The development of computer vision has rendered image style transfer a challenging and valuable subject of research. Nonetheless, existing methods are unable to effectively preserve object contours of content images while migrating many different style features with the same content semantics. In response, an artistic style transfer network, with consistent matching of content semantics and style features, was proposed. First, a two-branch feature processing module was employed to enhance the style and content features and retain the object contours of content images. Subsequently, feature distribution alignment and fusion were achieved within the attentional feature space. Finally, an interpolation module with spatial perception capability was utilized to achieve style consistency of content semantics. The network was trained with 82 783 actual photos and 80 095 artistic portraits for style transfer. Furthermore, 1 000 actual photos and 1 000 artistic portraits were used for testing. The effectiveness of the proposed framework and the added loss function was verified through experiments, which included comparing it with the latest four style transfer methods and conducting ablation experiments, respectively. The experimental results demonstrated that the proposed network could run at an average time of 9.42 ms in 256-pixel image generation and 10.23 ms in 512-pixel image generation, while avoiding distortion of content structure and matching content semantics and style features consistently, with better artistic visual effects.

Key words: convolutional neural network, image style transfer, attention mechanism, style consistency, feature fusion

CLC Number: