Skip to main content
QUICK REVIEW

[论文解读] FateZero: Fusing Attentions for Zero-shot Text-based Video Editing

Chenyang Qi, Xiaodong Cun|arXiv (Cornell University)|Mar 16, 2023
Generative Adversarial Networks and Image SynthesisComputer Science被引用 10
一句话总结

FateZero 通过将来自 DDIM 反演的注意力映射与跨注意力混合和时空注意力相融合,在不进行逐提示训练的情况下,使用预训练的图像扩散模型实现一致的风格、属性和形状编辑。

ABSTRACT

The diffusion-based generative models have achieved remarkable success in text-based image generation. However, since it contains enormous randomness in generation progress, it is still challenging to apply such models for real-world visual content editing, especially in videos. In this paper, we propose FateZero, a zero-shot text-based editing method on real-world videos without per-prompt training or use-specific mask. To edit videos consistently, we propose several techniques based on the pre-trained models. Firstly, in contrast to the straightforward DDIM inversion technique, our approach captures intermediate attention maps during inversion, which effectively retain both structural and motion information. These maps are directly fused in the editing process rather than generated during denoising. To further minimize semantic leakage of the source video, we then fuse self-attentions with a blending mask obtained by cross-attention features from the source prompt. Furthermore, we have implemented a reform of the self-attention mechanism in denoising UNet by introducing spatial-temporal attention to ensure frame consistency. Yet succinct, our method is the first one to show the ability of zero-shot text-driven video style and local attribute editing from the trained text-to-image model. We also have a better zero-shot shape-aware editing ability based on the text-to-video model. Extensive experiments demonstrate our superior temporal consistency and editing capability than previous works.

研究动机与目标

  • Motivate zero-shot text-driven editing of real-world videos without per-prompt training.
  • Preserve temporal consistency by leveraging attention maps from inversion during editing.
  • Reduce semantic leakage from source content through cross-attention guided masking.
  • Enhance shape-aware and style/attribute editing using pre-trained image diffusion models.
  • Demonstrate broad editing capabilities (style, attributes, local edits, and shapes) on real videos.

提出的方法

  • Store self- and cross-attention maps at each DDIM inversion step.
  • Fuse inversion attention maps with editing-stage denoising via an Attention Fusion operation.
  • Use cross-attention maps of edited words as a spatial mask to blend self-attentions and prevent semantic leakage.
  • Introduce a spatial-temporal self-attention formulation to improve frame-to-frame consistency.
  • Reform self-attention into spatial-temporal attention by incorporating neighboring frames without retraining the model.
  • Apply the method to both appearance/style editing with image diffusion models and shape editing with video diffusion models.

实验结果

研究问题

  • RQ1Can zero-shot text-driven editing be achieved for real-world videos without per-prompt optimization or masks?
  • RQ2Does incorporating inversion-time attention fusion improve temporal consistency and structural fidelity compared to standard frame-wise editing?
  • RQ3How can cross-attention-based masking mitigate semantic leakage during editing while preserving unedited regions?
  • RQ4Does a spatial-temporal attention formulation enhance temporal coherence in edited videos?
  • RQ5What are the editing capabilities and limitations for style/attribute vs. shape editing on video data?

主要发现

  • Achieves temporal-consistent zero-shot video edits for style, attributes, and shapes using pre-trained image and video diffusion models.
  • Attention fusion during inversion plus editing preserves motion and structure better than naive inversion-then-edit approaches.
  • Cross-attention-based masking (Attention Blending) reduces semantic leakage and improves shape editing results.
  • Spatial-temporal self-attention enhances frame-to-frame coherence without additional training.
  • Outperforms baselines in temporal consistency and editing fidelity, as shown in qualitative assessments and user studies.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。