CAPAST: Content Affinity Preserved Arbitrary Style Transfer
Balancing the consistency of style and the integrity of content is the main challenge in arbitrary style transfer domain. Currently, local style details can be effectively captured by attention mechanism but easily produce distorted style patterns and inconsistent content structure. In this paper, we propose a Content Affinity Preserving Arbitrary Style Transfer (CAPAST) framework to ensure style features can be stably integrated into the content structure. Considering the local feature learning ability of CNN and the global feature representation advantage of transformer, a dual encoder is proposed to capture local and global features of images with the combination between transformer and CNN. In addition, a channel and spatially aligned attention (CSAA) is introduced to generate high-quality results by stably fusing style features and content features. In experiments, we demonstrated the superior performance of our method in preventing content structure distortion and maintaining consistency between style and content. Codes are available at https://github.com/miaopashi-zxy/CAPAST.
Authors
- Xinyuan Zheng
- Xiaojie Li (ORCID: https://orcid.org/0000-0002-7453-6620)
- Imran Mumtaz (ORCID: https://orcid.org/0000-0003-4294-2971)
- Zhan ao Huang (ORCID: https://orcid.org/0000-0002-8239-6074)
- Canghong Shi (ORCID: https://orcid.org/0000-0002-5188-6230)
- Xian Zhang (ORCID: https://orcid.org/0000-0002-5203-5251)
- Jia He
Institutions
- Xihua University (CN)
- The University of Western Australia (AU)
- Chengdu University of Information Technology (CN)
- University of Agriculture Faisalabad (PK)
Publication Details
- Published
- 2025-03-12
- DOI
- https://doi.org/10.1109/icassp49660.2025.10890339
- Primary Topic
- Natural Language Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- National Key Research and Development Program of China