The Intra-Class and Inter-Class Relationships in Style Transfer

Neural style transfer, which has attracted great attention in both academic research and industrial engineering and demonstrated very exciting and remarkable results, is the technique of migrating the semantic content of one image to different artistic styles by using convolutional neural network (C...

Full description

Bibliographic Details
Main Authors: Xin Cui, Meng Qi, Yi Niu, Bingxin Li
Format: Article
Language:English
Published: MDPI AG 2018-09-01
Series:Applied Sciences
Subjects:
Online Access:http://www.mdpi.com/2076-3417/8/9/1681
id doaj-120adec6fa9840e681cc6ba70745e5cc
record_format Article
spelling doaj-120adec6fa9840e681cc6ba70745e5cc2020-11-24T21:54:18ZengMDPI AGApplied Sciences2076-34172018-09-0189168110.3390/app8091681app8091681The Intra-Class and Inter-Class Relationships in Style TransferXin Cui0Meng Qi1Yi Niu2Bingxin Li3School of Information Science and Engineering, Shandong Normal University, Jinan 250014, ChinaSchool of Information Science and Engineering, Shandong Normal University, Jinan 250014, ChinaSchool of Information Science and Engineering, Shandong Normal University, Jinan 250014, ChinaSchool of Information Science and Engineering, Shandong Normal University, Jinan 250014, ChinaNeural style transfer, which has attracted great attention in both academic research and industrial engineering and demonstrated very exciting and remarkable results, is the technique of migrating the semantic content of one image to different artistic styles by using convolutional neural network (CNN). Recently, the Gram matrices used in the original and follow-up studies for style transfer were theoretically shown to be equivalent to minimizing a specific Maximum Mean Discrepancy (MMD). Since the Gram matrices are not a must for style transfer, how to design the proper process for aligning the neural activation between images to perform style transfer is an important problem. After careful analysis of some different algorithms for style loss construction, we discovered that some algorithms consider the relationships between different feature maps of a layer obtained from the CNN (inter-class relationships), while some do not (intra-class relationships). Surprisingly, the latter often show more details and finer strokes in the results. To further support our standpoint, we propose two new methods to perform style transfer: one takes inter-class relationships into account and the other does not, and conduct comparative experiments with existing methods. The experimental results verified our observation. Our proposed methods can achieve comparable perceptual quality yet with a lower complexity. We believe that our interpretation provides an effective design basis for designing style loss function for style transfer methods with different visual effects.http://www.mdpi.com/2076-3417/8/9/1681style transferloss functionconvolutional neural network
collection DOAJ
language English
format Article
sources DOAJ
author Xin Cui
Meng Qi
Yi Niu
Bingxin Li
spellingShingle Xin Cui
Meng Qi
Yi Niu
Bingxin Li
The Intra-Class and Inter-Class Relationships in Style Transfer
Applied Sciences
style transfer
loss function
convolutional neural network
author_facet Xin Cui
Meng Qi
Yi Niu
Bingxin Li
author_sort Xin Cui
title The Intra-Class and Inter-Class Relationships in Style Transfer
title_short The Intra-Class and Inter-Class Relationships in Style Transfer
title_full The Intra-Class and Inter-Class Relationships in Style Transfer
title_fullStr The Intra-Class and Inter-Class Relationships in Style Transfer
title_full_unstemmed The Intra-Class and Inter-Class Relationships in Style Transfer
title_sort intra-class and inter-class relationships in style transfer
publisher MDPI AG
series Applied Sciences
issn 2076-3417
publishDate 2018-09-01
description Neural style transfer, which has attracted great attention in both academic research and industrial engineering and demonstrated very exciting and remarkable results, is the technique of migrating the semantic content of one image to different artistic styles by using convolutional neural network (CNN). Recently, the Gram matrices used in the original and follow-up studies for style transfer were theoretically shown to be equivalent to minimizing a specific Maximum Mean Discrepancy (MMD). Since the Gram matrices are not a must for style transfer, how to design the proper process for aligning the neural activation between images to perform style transfer is an important problem. After careful analysis of some different algorithms for style loss construction, we discovered that some algorithms consider the relationships between different feature maps of a layer obtained from the CNN (inter-class relationships), while some do not (intra-class relationships). Surprisingly, the latter often show more details and finer strokes in the results. To further support our standpoint, we propose two new methods to perform style transfer: one takes inter-class relationships into account and the other does not, and conduct comparative experiments with existing methods. The experimental results verified our observation. Our proposed methods can achieve comparable perceptual quality yet with a lower complexity. We believe that our interpretation provides an effective design basis for designing style loss function for style transfer methods with different visual effects.
topic style transfer
loss function
convolutional neural network
url http://www.mdpi.com/2076-3417/8/9/1681
work_keys_str_mv AT xincui theintraclassandinterclassrelationshipsinstyletransfer
AT mengqi theintraclassandinterclassrelationshipsinstyletransfer
AT yiniu theintraclassandinterclassrelationshipsinstyletransfer
AT bingxinli theintraclassandinterclassrelationshipsinstyletransfer
AT xincui intraclassandinterclassrelationshipsinstyletransfer
AT mengqi intraclassandinterclassrelationshipsinstyletransfer
AT yiniu intraclassandinterclassrelationshipsinstyletransfer
AT bingxinli intraclassandinterclassrelationshipsinstyletransfer
_version_ 1725867789311279104