Edit-A-Video: Single Video Editing with Object-Aware Consistency

Chaehun Shin, Heeseung Kim, Che Hyun Lee, Sang-gil Lee, Sungroh Yoon

Abstract

With advancements in text-to-image (TTI) models, text-to-video (TTV) models have recently been introduced. This paper presents Edit-A-Video, a text-guided video editing framework that adapts pretrained TTI models using only a single source video. The framework consists of two stages: (1) inflating the 2D model into a 3D model by appending temporal modules and tuning on the source video, and (2) inverting the source video into noise and editing with target text through attention map injection. To mitigate background inconsistency—where unedited regions suffer from temporal alterations—the authors introduce Temporal-Consistent (TC) Blending. This novel mask blending method ensures smooth transitions and spatio-temporal consistency. Experimental results demonstrate the superiority of Edit-A-Video in terms of background consistency, text alignment, and overall video editing quality.

Introduction

In the rapidly evolving world of generative AI, the focus has shifted from static images to dynamic video content. However, editing videos—such as changing a subject's identity while keeping the rest of the scene identical—remains a significant challenge. A primary hurdle is the "background inconsistency problem," where regions unrelated to the edit undergo undesirable and inconsistent temporal changes, leading to flickering or morphing artifacts.

Edit-A-Video, a framework developed by researchers at Seoul National University and presented at ACML 2023, addresses these issues. It enables high-quality, text-guided video editing using only a single source video and a pretrained text-to-image diffusion model.

Methodology

The Edit-A-Video framework operates in two distinct stages:

1. Inflation and Tuning

The researchers take a standard 2D UNet from a TTI model and "inflate" it into a 3D model by adding temporal attention layers and Sparse Spatio-Temporal Attention (ST-Attn). The model is then fine-tuned on a single <text, video> pair to learn the specific motion and appearance of the source video.

Source video frame showing a man performing pushups with kettlebells.

2. Inversion and Editing

The source video is converted back into noise using DDIM and Null-Text Inversion. During the reconstruction process, the model is provided with a new target prompt, such as "A gorilla is doing a pushup." To ensure the edit is confined to the target object, the framework employs Temporal-Consistent (TC) Blending. By utilizing ST-attention maps as a proxy for motion, the model maintains a sharp and accurate temporal mask, ensuring the background remains perfectly stable across frames.

Edited frame demonstrating the transformation of the subject into a gorilla while maintaining background stability.

Key Insights and Results

The authors highlight that the duration of attention injection is critical; for instance, injecting cross-attention for only the first 20% of denoising steps allows the model to capture the new prompt's style while preserving the original layout.

Edit-A-Video was compared against several baselines, including Tune-A-Video and SDEdit, using the DAVIS dataset and real-world web videos. Key findings include:

  • Human Preference: Edit-A-Video scored 3.80/5.0, significantly higher than baseline models.
  • Background Preservation: The method led in metrics such as PSNR (20.09) and LPIPS (0.2625), which measure how well the background is preserved.
  • Mask Accuracy: TC Blending improved the Mask IoU (Intersection over Union) from 0.23 to 0.38, proving its effectiveness in identifying edit regions.

Conclusion

Edit-A-Video represents a major advancement in localized video editing. By leveraging the vast prior knowledge of TTI models and introducing object-aware temporal consistency, it achieves high-quality results with minimal data. While challenges such as hyperparameter sensitivity and computational cost remain, the framework sets a new benchmark for maintaining background stability in generative video tasks.

Summary updated

BibTeX
@inproceedings{shin2023edit,
  author = {Chaehun Shin and Heeseung Kim and Che Hyun Lee and Sang-gil Lee and Sungroh Yoon},
  title = {{Edit-A-Video: Single Video Editing with Object-Aware Consistency}},
  booktitle = {ACML},
  year = {2023},
  url = {https://openreview.net/forum?id=jY2XhbIKJF},
}
Figure