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

DynaST:用于样本引导图像生成的动态稀疏Transformer

DynaST: Dynamic Sparse Transformer for Exemplar-Guided Image Generation

National University of Singapore(新加坡国立大学)

Songhua Liu, Jingwen Ye, Sucheng Ren, Xinchao Wang

摘要:

样本引导图像生成的一个关键挑战在于在输入图像和引导图像之间建立细粒度的对应关系。先前的方法,尽管有希望的结果,依赖于估计密集的注意力来计算每点匹配,这是有限的,由于二次存储器成本,只有粗略的尺度,或固定的对应关系的数量,以实现线性复杂度,这缺乏灵活性。在本文中,我们提出了一个动态稀疏注意力的基础上Transformer模型,称为动态稀疏Transformer(DynaST),以实现良好的效率与精细级匹配。我们的方法的核心是一个新的动态注意力单元,致力于覆盖一个位置应该关注的最佳标记数量的变化。具体来说,DynaST利用了Transformer结构的多层性质,并以级联的方式执行动态注意力方案,以优化匹配结果并合成视觉上令人愉悦的输出。此外,我们为DynaST引入了统一的训练目标,使其成为监督和无监督场景下通用的基于参考的图像翻译框架。在姿态引导的人物图像生成、基于边缘的人脸合成和不失真的图像风格转移三个应用上的大量实验表明,DynaST在局部细节方面具有优异的性能,在显著降低计算成本的同时优于最先进的技术。我们的代码可在https://github.com/Huage001/DynaST上获得

英文摘要:

One key challenge of exemplar-guided image generation lies in establishing fine-grained correspondences between input and guided images. Prior approaches, despite the promising results, have relied on either estimating dense attention to compute per-point matching, which is limited to only coarse scales due to the quadratic memory cost, or fixing the number of correspondences to achieve linear complexity, which lacks flexibility. In this paper, we propose a dynamic sparse attention based Transformer model, termed Dynamic Sparse Transformer (DynaST), to achieve fine-level matching with favorable efficiency. The heart of our approach is a novel dynamic-attention unit, dedicated to covering the variation on the optimal number of tokens one position should focus on. Specifically, DynaST leverages the multi-layer nature of Transformer structure, and performs the dynamic attention scheme in a cascaded manner to refine matching results and synthesize visually-pleasing outputs. In addition, we introduce a unified training objective for DynaST, making it a versatile reference-based image translation framework for both supervised and unsupervised scenarios. Extensive experiments on three applications, pose-guided person image generation, edge-based face synthesis, and undistorted image style transfer, demonstrate that DynaST achieves superior performance in local details, outperforming the state of the art while reducing the computational cost significantly. Our code is available at https://github.com/Huage001/DynaST

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

↑