摘要
图像风格迁移技术可以自动地赋予图像不同的风格。现有的研究大多针对图像的整体或者图像中的单一区域进行风格迁移,在实际应用中难免存在局限性。在风格迁移过程中引入内容图像的语义信息,提出一种针对图像不同区域进行的差异风格化的方法。将内容图像经过语义分割后引入VGG损失网络,从而限定图像的风格化区域。分别在每个区域上计算各自的格拉姆矩阵,并在反向传播阶段将梯度传播限定在各语义区域上,得出针对图像不同区域的风格特征值。将正则化损失引入损失函数中,以减弱不同区域间的相互影响。在Microsoft COCO2017数据集上设计了实验,结果表明,该方法实现图像多个区域不同风格化的同时,保证了区域之间过渡自然。
Image style transfer techniques always can be used to automatically endow different styles to an image based on a given style image.Only the whole image or a single area in the image used to be stylized through the existing image style transfer method,which inevitable results in limitations in practical applications.By introducing the semantic infor-mation of the content image in the style conversion process,the different semantic regions of the image can be stylized dif-ferently.The content image is semantically segmented and introduced into the VGG loss network to define the stylized region of the image.The Gram matrices are respectively calculated on each of the regions,and gradient propagation is lim-ited to each semantic region in the back-propagation stage to obtain the style feature values for different regions of the image.The regularization loss is introduced into the loss function,which aims to reduce the interaction between different regions.Experiments are designed on the Microsoft COCO2017 dataset,and the results show that the method has achieved different stylization of multiple regions of the image while ensuring the natural transition between regions.
作者
王杨
郁振鑫
卢嘉
向秀梅
WANG Yang;YU Zhenxin;LU Jia;XIANG Xiumei(College of Electronics and Information Engineering,Hebei University of Technology,Tianjin 300401,China;Tianjin Key Laboratory of Electronic Materials&Devices,Hebei University of Technology,Tianjin 300401,China)
出处
《计算机工程与应用》
CSCD
北大核心
2021年第12期211-215,共5页
Computer Engineering and Applications
基金
教育部人文社会科学研究项目(15YJA630108)。
关键词
风格迁移
卷积神经网络
语义分割
区域差异
style transfer
convolutional neural network
semantic segmentation
regional differences