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

HS-Diffusion:用于头部替换的语义混合扩散模型

HS-Diffusion: Semantic-Mixing Diffusion for Head Swapping

ByteDance Inc(字节跳动公司);Tianjin University(天津大学);Harbin Institute of Technology(哈尔滨工业大学);Dalian University of Technology(大连理工大学)

Qinghe Wang, Lijie Liu, Miao Hua, Pengfei Zhu, Wangmeng Zuo, Qinghua Hu, Huchuan Lu, Bing Cao

AI总结:

本文提出HS-Diffusion,通过语义混合扩散模型和语义布局生成器实现高质量头部替换,并构建新基准与专属指标验证其优越性。

摘要:

基于图像的头部替换任务旨在将源头部无缝拼接到另一个源身体上。这一鲜有研究的任务面临两大主要挑战:1) 在生成无缝过渡区域的同时,保留来自不同来源的头部和身体。2) 目前尚无配对的头部替换数据集和基准。在本文中,我们提出了一种用于头部替换的语义混合扩散模型(HS-Diffusion),它由一个潜在扩散模型(LDM)和一个语义布局生成器组成。我们融合源头部和源身体的语义布局,然后通过语义布局生成器对过渡区域进行修复,实现粗粒度的头部替换。语义混合LDM能够以修复后的布局为条件,通过渐进式融合过程进一步实现细粒度的头部替换,同时通过高质量重建保留头部和身体。为此,我们提出了一种用于自然修复的语义校准策略,以及用于几何真实性的颈部对齐方法。重要的是,我们构建了一个新的基于图像的头部替换基准,并设计了两个专属指标(Mask-FID和Focal-FID)。大量实验证明了我们框架的优越性。代码将在此处提供:https://github.com/qinghew/HS-Diffusion。

英文摘要:

Image-based head swapping task aims to stitch a source head to another source body flawlessly. This seldom-studied task faces two major challenges: 1) Preserving the head and body from various sources while generating a seamless transition region. 2) No paired head swapping dataset and benchmark so far. In this paper, we propose a semantic-mixing diffusion model for head swapping (HS-Diffusion) which consists of a latent diffusion model (LDM) and a semantic layout generator. We blend the semantic layouts of source head and source body, and then inpaint the transition region by the semantic layout generator, achieving a coarse-grained head swapping. Semantic-mixing LDM can further implement a fine-grained head swapping with the inpainted layout as condition by a progressive fusion process, while preserving head and body with high-quality reconstruction. To this end, we propose a semantic calibration strategy for natural inpainting and a neck alignment for geometric realism. Importantly, we construct a new image-based head swapping benchmark and design two tailor-designed metrics (Mask-FID and Focal-FID). Extensive experiments demonstrate the superiority of our framework. The code will be available: https://github.com/qinghew/HS-Diffusion.

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

↑