Style Transfer for Taotie Pattern Using Convolutional Neural Networks
Merlion in TaoTie Pattern
Style transfer refers to the process of transferring the style of an image to another image , resulting in having a visually similar style to . Addressing the problem of transferring the taotie pattern style, we propose an artistic style transfer algorithm based on Convolutional Neural Networks (CNN). This algorithm utilizes the feature responses and Gram matrices of each layer in a CNN to map content and style to independent feature spaces. The task of style transfer is achieved efficiently and flexibly by minimizing the content and style loss functions through gradient descent.
Specifically, for a VGG19 network pre-trained on object recognition tasks, we represent the content of layer by the feature response , and the style by the Gram matrix . Here, denotes the convolutional filters in layer , denotes the feature responses corresponding to the convolutional filter in layer , and the Gram matrix is the correlation matrix of different feature responses in layer . For the content image , style image , and a random noise image , the style transfer loss function is defined as:
The content loss function is given by:
The style loss function is:
In these equations, and represent the content features of and , respectively, while and represent the style features of and , respectively. By minimizing the style transfer loss function using gradient descent, the random noise image is transformed into the final style-transferred image.