Institutional Repository of Chinese Acad Sci, Inst Automat, Natl Lab Pattern Recognit, Beijing 100190, Peoples R China
StyTr2: Image Style Transfer with Transformers | |
Deng, Yingying1,2![]() ![]() ![]() ![]() | |
2022 | |
Conference Name | IEEE Conference on Computer Vision and Pattern Recognition |
Conference Date | 2022-6 |
Conference Place | New Orleans, Louisiana |
Abstract | The goal of image style transfer is to render an image with artistic features guided by a style reference while maintaining the original content. Owing to the locality in convolutional neural networks (CNNs), extracting and maintaining the global information of input images is difficult. Therefore, traditional neural style transfer methods face biased content representation. To address this critical issue, we take long-range dependencies of input images into account for image style transfer by proposing a transformer-based approach called StyTr$^2$. In contrast with visual transformers for other vision tasks, StyTr$^2$ contains two different transformer encoders to generate domain-specific sequences for content and style, respectively. Following the encoders, a multi-layer transformer decoder is adopted to stylize the content sequence according to the style sequence. We also analyze the deficiency of existing positional encoding methods and propose the content-aware positional encoding (CAPE), which is scale-invariant and more suitable for image style transfer tasks. Qualitative and quantitative experiments demonstrate the effectiveness of the proposed StyTr$^2$ compared with state-of-the-art CNN-based and flow-based approaches. Code and models are available at https://github.com/diyiiyiii/StyTR-2. |
Document Type | 会议论文 |
Identifier | http://ir.ia.ac.cn/handle/173211/48627 |
Collection | 模式识别国家重点实验室_多媒体计算 |
Corresponding Author | Tang, Fan; Dong, Weiming |
Affiliation | 1.School of Artificial Intelligence, UCAS 2.NLPR, Institute of Automation, CAS 3.School of Artificial Intelligence, Jilin University 4.Kuaishou Technology 5.CIPUC |
First Author Affilication | Chinese Acad Sci, Inst Automat, Natl Lab Pattern Recognit, Beijing 100190, Peoples R China |
Corresponding Author Affilication | Chinese Acad Sci, Inst Automat, Natl Lab Pattern Recognit, Beijing 100190, Peoples R China |
Recommended Citation GB/T 7714 | Deng, Yingying,Tang, Fan,Dong, Weiming,et al. StyTr2: Image Style Transfer with Transformers[C],2022. |
Files in This Item: | Download All | |||||
File Name/Size | DocType | Version | Access | License | ||
Deng_StyTr2_Image_St(10025KB) | 会议论文 | 开放获取 | CC BY-NC-SA | View Download |
Items in the repository are protected by copyright, with all rights reserved, unless otherwise indicated.
Edit Comment