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

视频中替换任意人物

Replace Anyone in Videos

Key Laboratory of Ministry of Education for Image Processing and Intelligent Control, School of Artificial Intelligence and Automation, Huazhong University of Science and Technology(教育部图像处理与智能控制重点实验室,人工智能与自动化学院,华中科技大学);Alibaba Group(阿里巴巴集团);Nanyang Technological University(南洋理工大学);Nanjing University(南京大学);Zhejiang University(浙江大学)

Xiang Wang, Shiwei Zhang, Haonan Qiu, Ruihang Chu, Zekun Li, Yingya Zhang, Changxin Gao, Yuehuan Wang, Chunhua Shen, Nong Sang

AI总结:

本文提出 ReplaceAnyone 框架,将局部人物替换与插入任务形式化为姿态引导的图像条件视频修复,通过多样化掩码、增强视觉引导、混合修复编码器和两阶段优化,在保留背景与运动的同时实现无缝人物替换,并兼容 3D-UNet 和 DiT 视频模型。

摘要:

可控的以人为中心的视频生成领域已取得显著进展,尤其是随着扩散模型的出现。然而,在视频中实现对人体运动的精确且局部化的控制,例如在保留期望运动模式的同时替换或插入个体,仍然是一项艰巨的挑战。在这项工作中,我们提出了 ReplaceAnyone 框架,该框架专注于具有复杂背景的局部化人物替换与插入。具体而言,我们将该任务形式化为一种以图像为条件、带有姿态引导的视频修复范式,利用统一的端到端视频扩散架构,在掩码区域内实现以图像为条件的视频修复。为了防止形状泄漏并实现细粒度的局部控制,我们引入了包含规则和不规则形状的多样化掩码形式。此外,我们实现了一种增强的视觉引导机制以改善外观对齐,一种混合修复编码器以进一步保留掩码视频中的详细背景信息,以及一种两阶段优化方法来简化训练难度。ReplaceAnyone 能够在单一框架内实现人物的无缝替换或插入,同时保持期望的姿态运动和参考外观。大量实验结果表明,我们的方法在生成逼真且连贯的视频内容方面具有有效性。所提出的 ReplaceAnyone 不仅可以无缝应用于传统的 3D-UNet 基础模型,还可以应用于基于 DiT 的视频模型,如 Wan2.1。代码将在 https://github.com/ali-vilab/UniAnimate-DiT 上提供。

英文摘要:

The field of controllable human-centric video generation has witnessed remarkable progress, particularly with the advent of diffusion models. However, achieving precise and localized control over human motion in videos, such as replacing or inserting individuals while preserving desired motion patterns, still remains a formidable challenge. In this work, we present the ReplaceAnyone framework, which focuses on localized human replacement and insertion featuring intricate backgrounds. Specifically, we formulate this task as an image-conditioned video inpainting paradigm with pose guidance, utilizing a unified end-to-end video diffusion architecture that facilitates image-conditioned video inpainting within masked regions. To prevent shape leakage and enable granular local control, we introduce diverse mask forms involving both regular and irregular shapes. Furthermore, we implement an enriched visual guidance mechanism to enhance appearance alignment, a hybrid inpainting encoder to further preserve the detailed background information in the masked video, and a two-phase optimization methodology to simplify the training difficulty. ReplaceAnyone enables seamless replacement or insertion of characters while maintaining the desired pose motion and reference appearance within a single framework. Extensive experimental results demonstrate the effectiveness of our method in generating realistic and coherent video content. The proposed ReplaceAnyone can be seamlessly applied not only to traditional 3D-UNet base models but also to DiT-based video models such as Wan2.1. The code will be available at https://github.com/ali-vilab/UniAnimate-DiT.

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

↑