AdaAttN: Revisit Attention Mechanism in Arbitrary Neural Style Transfer
Songhua Liu, Tianwei Lin, Dongliang He, Fu Li, Meiling Wang, Xin Li, Zhengxing Sun, Qian Li, Errui Ding
Abstract
Fast arbitrary neural style transfer has attracted widespread attention from academic, industrial and art communities due to its flexibility in enabling various applications. Existing solutions either attentively fuse deep style feature into deep content feature without considering feature distributions, or adaptively normalize deep content feature according to the style such that their global statistics are matched. Although effective, leaving shallow feature unexplored and without locally considering feature statistics, they are prone to unnatural output with unpleasing local distortions. To alleviate this problem, in this paper, we propose a novel attention and normalization module, named Adaptive Attention Normalization (AdaAttN), to adaptively perform attentive normalization on per-point basis. Specifically, spatial attention score is learnt from both shallow and deep features of content and style images. Then perpoint weighted statistics are calculated by regarding a style feature point as a distribution of attention-weighted output of all style feature points. Finally, the content feature is normalized so that they demonstrate the same local feature statistics as the calculated per-point weighted style feature statistics. Besides, a novel local feature loss is derived based on AdaAttN to enhance local visual quality. We also extend AdaAttN to be ready for video style transfer with slight modifications. Experiments demonstrate that our method achieves state-of-the-art arbitrary image/video style transfer. Codes and models are available on https://github.com/wzmsltw/AdaAttN.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 9d408575-b607-4bab-b790-cc8ed350cf90Cited by top-tier papers72
- StyTr2: Image Style Transfer with TransformersYingying Deng, Fan Tang, Weiming Dong, Chongyang Ma et al.CVPR 2022 · 345 citations
- CLIPstyler: Image Style Transfer with a Single Text ConditionGihyun Kwon, Jong Chul YeCVPR 2022 · 224 citations
- StyleDiffusion: Controllable Disentangled Style Transfer via Diffusion ModelsZhizhong Wang, Lei Zhao, Wei XingICCV 2023 · 219 citations
- Paint Transformer: Feed Forward Neural Painting with Stroke PredictionSonghua Liu, Tianwei Lin, Dongliang He, Fu Li et al.ICCV 2021 · 106 citations
- AesUST: Towards Aesthetic-Enhanced Universal Style TransferZhizhong Wang, Zhanjie Zhang, Lei Zhao, Zhiwen Zuo et al.ACM MM 2022 · 70 citations
Builds on8
- Dynamic Instance Normalization for Arbitrary Style TransferYongcheng Jing, Xiao Liu, Yukang Ding, Xinchao Wang et al.AAAI 2020 · 212 citations
- Arbitrary Video Style Transfer via Multi-Channel CorrelationYingying Deng, Fan Tang, Weiming Dong, Haibin Huang et al.AAAI 2021 · 197 citations
- Arbitrary Style Transfer via Multi-Adaptation NetworkYingying Deng, Fan Tang, Weiming Dong, Wen Sun et al.ACM MM 2020 · 194 citations
- Content and Style Disentanglement for Artistic Style TransferDmytro Kotovenko, Artsiom Sanakoyeu, Sabine Lang, Björn OmmerICCV 2019 · 187 citations
- Consistent Video Style Transfer via Compound RegularizationWenjing Wang, Jizheng Xu, Li Zhang, Yue Wang et al.AAAI 2020 · 50 citations
Related papers
- Adaptive Convolutions for Structure-Aware Style TransferPrashanth Chandran, Gaspard Zoss, Paulo F. U. Gotardo, Markus Gross et al.CVPR 2021
- All-to-key Attention for Arbitrary Style TransferMingrui Zhu, Xiao He, Nannan Wang, Xiaoyu Wang et al.ICCV 2023 · 43 citations
- SCSA: A Plug-and-Play Semantic Continuous-Sparse Attention for Arbitrary Semantic Style TransferChunnan Shang, Zhizhong Wang, Hongwei Wang, Xiangming MengCVPR 2025
- EFANet: Exchangeable Feature Alignment Network for Arbitrary Style TransferZhijie Wu, Chunjin Song, Yang Zhou, Minglun Gong et al.AAAI 2020 · 33 citations
- Dual-head Genre-instance Transformer Network for Arbitrary Style TransferMeichen Liu, Shuting He, Songnan Lin, Bihan WenACM MM 2024 · 3 citations
