journal article·2018-09-17Open access

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

Xin Cui, Meng Qi, Yi Niu, Bingxin Li

Applied Sciences· Volume 8· Issue 9

Abstract

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.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Generative Adversarial Networks and Image Synthesis · Image Enhancement Techniques · Advanced Image Processing Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Information Science and Engineering, Shandong Normal University, Jinan 250014, China

References (29)

Show source-provided references
1. Hertzmann, A., Jacobs, C.E., Oliver, N., Curless, B., and Salesin, D.H. (2001, January 12–17). Image analogies. Proceedings of the 28th Annual Conference on Computer Graphics and Interactive Techniques, Los Angeles, CA, USA.10.1145/383259.383295 ↗
2. Efros, A.A., and Leung, T.K. (1999, January 20–27). Texture synthesis by non-parametric sampling. Proceedings of the Seventh IEEE International Conference on Computer Vision, Kerkyra, Greece.10.1109/ICCV.1999.790383 ↗
3. Efros, A.A., and Freeman, W.T. (2001, January 12–17). Image quilting for texture synthesis and transfer. Proceedings of the 28th Annual Conference on Computer Graphics and Interactive Techniques, Los Angeles, CA, USA.10.1145/383259.383296 ↗
4. Gatys, L.A., Ecker, A.S., and Bethge, M. (2016, January 27–30). Image style transfer using convolutional neural networks. Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.10.1109/CVPR.2016.265 ↗
5. Li, Y., Wang, N., Liu, J., and Hou, X. (arXiv, 2017). Demystifying neural style transfer, arXiv.10.24963/ijcai.2017/310 ↗
6. ImageNet Classification with Deep Convolutional Neural Networks
7. Deep Visual-Semantic Alignments for Generating Image Descriptions10.1109/TPAMI.2016.2598339 ↗
8. He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27–30). Deep Residual Learning for Image Recognition. Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.10.1109/CVPR.2016.90 ↗
9. Gooch, B., and Gooch, A. (2001). Non-Photorealistic Rendering, AK Peters/CRC Press.10.1201/9781439864173 ↗
10. Rosin, P., and Collomosse, J. (2012). Image and Video-Based Artistic Stylisation, Springer Science & Business Media.10.1007/978-1-4471-4519-6 ↗
11. Strothotte, T., and Schlechtweg, S. (2002). Non-Photorealistic Computer Graphics: Modeling, Rendering, and Animation, Morgan Kaufmann.
12. Gatys, L.A., Ecker, A.S., and Bethge, M. (arXiv, 2015). A Neural Algorithm of Artistic Style, arXiv.10.1167/16.12.326 ↗
13. Johnson, J., Alahi, A., and Fei-Fei, L. (2016). Perceptual Losses for Real-Time Style Transfer and Super-Resolution, Springer. European Conference on Computer Vision.10.1007/978-3-319-46475-6_43 ↗
14. Ulyanov, D., Lebedev, V., Vedaldi, A., and Lempitsky, V.S. (2016, January 19–24). Texture Networks: Feed-forward Synthesis of Textures and Stylized Images. Proceedings of the 33rd International Conference on International Conference on Machine Learning (ICML), New York, NY, USA.
15. Ruder, M., Dosovitskiy, A., and Brox, T. (2016). Artistic Style Transfer for Videos, Springer. German Conference on Pattern Recognition.10.1007/978-3-319-45886-1_3 ↗
16. Huang, H., Wang, H., Luo, W., Ma, L., Jiang, W., Zhu, X., Li, Z., and Liu, W. (2017, January 21–26). Real-Time Neural Style Transfer for Videos. Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA.10.1109/CVPR.2017.745 ↗
17. Ulyanov, D., Vedaldi, A., and Lempitsky, V.S. (arXiv, 2016). Instance Normalization: The Missing Ingredient for Fast Stylization, arXiv.
18. Painting style transfer for head portraits using convolutional neural networks10.1145/2897824.2925968 ↗
19. Champandard, A.J. (arXiv, 2016). Semantic style transfer and turning two-bit doodles into fine artworks, arXiv.
20. Li, C., and Wand, M. (2016, January 27–30). Combining markov random fields and convolutional neural networks for image synthesis. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.272 ↗
21. Chen, T.Q., and Schmidt, M. (arXiv, 2016). Fast Patch-based Style Transfer of Arbitrary Style, arXiv.
22. Chen, D., Yuan, L., Liao, J., Yu, N., and Hua, G. (2017, January 21–26). StyleBank: An Explicit Representation for Neural Image Style Transfer. Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA.10.1109/CVPR.2017.296 ↗
23. Visual Attribute Transfer Through Deep Image Analogy10.1145/3072959.3073683 ↗
24. Gatys, L.A., Bethge, M., Hertzmann, A., and Shechtman, E. (arXiv, 2016). Preserving Color in Neural Artistic Style Transfer; Technical Report, arXiv.
25. Gatys, L.A., Ecker, A.S., Bethge, M., Hertzmann, A., and Shechtman, E. (2017, January 21–26). Controlling Perceptual Factors in Neural Style Transfer. Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA.10.1109/CVPR.2017.397 ↗
26. A kernel two-sample test
27. Multivariate Spectral Estimation Based on the Concept of Optimal Prediction10.1109/TAC.2014.2359713 ↗
28. An interpretation of the dual problem of the THREE-like approaches10.1016/j.automatica.2015.09.023 ↗
29. Simonyan, K., and Zisserman, A. (arXiv, 2014). Very deep convolutional networks for large-scale image recognition, arXiv.