Discover the SciOpen Platform and Achieve Your Research Goals with Ease.
Search articles, authors, keywords, DOl and etc.
Image style transfer aims to merge the artistic characteristics of a style image with the spatial structure of a content image, maintaining the content identity and showing the desired style. Previous works based on convolutional neural networks lack the ability to capture global features, leading to the content leakage issue. In this work, we propose a method StyTips, short for style via transformer filter prompts, a novel approach for style transfer that distills essential content and injects style information via learned prompts. To achieve efficient and high-quality stylization, we adopt a hierarchical vision transformer encoder to extract multi-scale features of the content and style images, learning disentangled style features of color and strokes. Inspired by the prompt learning technique, we have designed a fine-grained style alignment block in the decoder, consisting of a filter-using self-attention module to distill necessary content information and a style-aware cross-attention module to inject style features. StyTips takes full advantage of the attention mechanism to align color and strokes with the purified content features in appropriate proportions. Qualitative and quantitative experiments demonstrate that StyTips can prevent content leakage and generate high-quality stylized images. StyTips provides controllable style transfer with diverse ways for users to manipulate styles in a fine-grained manner and to determine the strength of style, giving it more practical significance to real-world applications than traditional approaches. The code is available at https://github.com/I2-Multimedia-Lab/StyTips.

This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made.
The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
To submit a manuscript, please go to https://jcvm.org.
Comments on this article