arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.12381cs.CV
收藏

S2WAT:基于条纹窗口注意力的分层视觉Transformer图像风格迁移

S2WAT: Image Style Transfer via Hierarchical Vision Transformer using Strips Window Attention

Sichuan Normal University(四川师范大学);Nanjing University of Aeronautics and Astronautics(南京航空航天大学);Zhejiang Lab(之江实验室);Zhejiang University(浙江大学);Visual Computing and Virtual Reality Key Laboratory of Sichuan Provience(四川省视觉计算与虚拟现实重点实验室)

Chiyu Zhang, Xiaogang Xu, Lei Wang, Zaiyan Dai, Jun Yang

AI总结:

针对Transformer应用于风格迁移时局部建模能力减弱的问题,提出采用多形状窗口注意力与Attn Merge策略的S2WAT分层视觉Transformer,实验证明其效果优于现有SOTA方法,相关代码与预训练模型已开源。

摘要:

近年来Transformer被应用于风格迁移任务,利用其擅长建立长距离依赖的特性,但这是以局部建模能力减弱为代价的。本文提出条纹窗口注意力Transformer(Strips Window Attention Transformer, S2WAT),这是一种专为风格迁移设计的新型分层视觉Transformer。S2WAT采用多种窗口形状的注意力计算,同时捕捉短程和长程依赖关系。融合后的依赖通过“Attn Merge”策略实现,该策略根据其与目标的相关性自适应确定空间权重。在代表性数据集上开展的大量实验表明,与当前最优(SOTA)的基于Transformer的方法及其他方法相比,所提方法更具有效性。代码和预训练模型可在https://github.com/AlienZhang1996/S2WAT获取。

英文摘要:

Transformer's recent integration into style transfer leverages its proficiency in establishing long-range dependencies, albeit at the expense of attenuated local modeling. This paper introduces Strips Window Attention Transformer (S2WAT), a novel hierarchical vision transformer designed for style transfer. S2WAT employs attention computation in diverse window shapes to capture both short- and long-range dependencies. The merged dependencies utilize the "Attn Merge" strategy, which adaptively determines spatial weights based on their relevance to the target. Extensive experiments on representative datasets show the proposed method's effectiveness compared to state-of-the-art (SOTA) transformer-based and other approaches. The code and pre-trained models are available at https://github.com/AlienZhang1996/S2WAT.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑