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

使用扩展注意力机制在视频中进行时间一致的对象编辑

Temporally Consistent Object Editing in Videos using Extended Attention

Concordia University(康考迪亚大学);Mila – Quebec AI Institute(米拉-魁北克人工智能研究所)

AmirHossein Zamani, Amir G. Aghdam, Tiberiu Popa, Eugene Belilovsky

AI总结:

提出一种基于预训练图像修复扩散模型的视频编辑方法,通过扩展注意力模块建立帧级依赖,确保局部编辑在所有帧中时间一致,在对象重定向、替换和移除任务上表现优越。

摘要:

随着大规模扩散模型的兴起,图像生成和编辑取得了巨大进展,这些模型允许用户控制文本、掩码、深度图等不同模态。然而,受控的视频编辑仍然落后。该领域的先前工作集中在使用2D扩散模型来全局改变现有视频的风格。另一方面,在许多实际应用中,编辑视频的局部部分至关重要。在这项工作中,我们提出了一种使用预训练的图像修复扩散模型来编辑视频的方法。我们通过将自注意力模块替换为创建帧级依赖关系的扩展版本注意力模块,系统地重新设计了模型的前向路径。通过这种方式,我们确保编辑信息在所有视频帧中保持一致,无论掩码区域的形状和位置如何。我们在对象重定向、对象替换和对象移除等几个视频编辑任务上,将我们的结果与最先进的方法在准确性方面进行了定性比较。模拟实验证明了所提出策略的优越性能。

英文摘要:

Image generation and editing have seen a great deal of advancements with the rise of large-scale diffusion models that allow user control of different modalities such as text, mask, depth maps, etc. However, controlled editing of videos still lags behind. Prior work in this area has focused on using 2D diffusion models to globally change the style of an existing video. On the other hand, in many practical applications, editing localized parts of the video is critical. In this work, we propose a method to edit videos using a pre-trained inpainting image diffusion model. We systematically redesign the forward path of the model by replacing the self-attention modules with an extended version of attention modules that creates frame-level dependencies. In this way, we ensure that the edited information will be consistent across all the video frames no matter what the shape and position of the masked area is. We qualitatively compare our results with state-of-the-art in terms of accuracy on several video editing tasks like object retargeting, object replacement, and object removal tasks. Simulations demonstrate the superior performance of the proposed strategy.

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

↑