Source-linked AI summary

VidEdit: Zero-Shot and Spatially Aware Text-Driven Video Editing

Paul Couairon, Clément Rambour, Jean-Emmanuel Haugeard, Nicolas Thome

arXiv:2306.08707v4cs.CV

TL;DR

Text-driven video editing needs precise spatial control without sacrificing temporal consistency, but existing approaches face long-term coherence or atlas-editing cost and control limitations. VidEdit combines neural atlases with pretrained diffusion, guided by segmentation and edges. On DAVIS, it outperforms baselines across semantic matching, content preservation, and temporal consistency; its atlas mapping networks remain less capable on rapid-motion and very long videos.

  • Problem

    Text-driven video editors struggle with long-term temporal coherence, while atlas-based editors can be costly per prompt and lack precise spatial control.

    Source: §1 · p. 2
  • Method

    VidEdit edits neural layered atlases with pretrained text-to-image diffusion, using panoptic segmentation and HED edges to guide localized changes.

    Source: §1 · p. 2
  • Results

    On DAVIS, VidEdit outperforms baselines in semantic matching, original-content preservation, and temporal consistency; it leads all methods in CFrame and LPIPS and HaarPSI, and is similar to Text2Live on PSNR.

    Source: §1 · p. 3, §4.2 · p. 9
  • Takeaways & Limitations

    The framework edits a full video in about one minute and can generate diverse samples compatible with one text prompt.

    Source: §1 · pp. 2–3

    The mapping networks’ capacity decreases for complex videos with rapid movement and very long duration, limiting the scope of atlas-dependent edits.

    Source: §5 · p. 12

Abstract

from arXiv · show

Recently, diffusion-based generative models have achieved remarkable success for image generation and edition. However, existing diffusion-based video editing approaches lack the ability to offer precise control over generated content that maintains temporal consistency in long-term videos. On the other hand, atlas-based methods provide strong temporal consistency but are costly to edit a video and lack spatial control. In this work, we introduce VidEdit, a novel method for zero-shot text-based video editing that guarantees robust temporal and spatial consistency. In particular, we combine an atlas-based video representation with a pre-trained text-to-image diffusion model to provide a training-free and efficient video editing method, which by design fulfills temporal smoothness. To grant precise user control over generated content, we utilize conditional information extracted from off-the-shelf panoptic segmenters and edge detectors which guides the diffusion sampling process. This method ensures a fine spatial control on targeted regions while strictly preserving the structure of the original video. Our quantitative and qualitative experiments show that VidEdit outperforms state-of-the-art methods on DAVIS dataset, regarding semantic faithfulness, image preservation, and temporal consistency metrics. With this framework, processing a single video only takes approximately one minute, and it can generate multiple compatible edits based on a unique text prompt. Project web-page at https://videdit.github.io

1 Introduction

VidEdit combines atlas-based video representations with pretrained text-to-image diffusion to edit videos without training while preserving temporal coherence. Panoptic segmentation and edge conditioning provide object-level spatial control, and experiments report gains across several editing metrics.

  • Frame-wise text-driven diffusion can flicker, while spatiotemporal-attention methods struggle with long-term dependencies and atlas editors are costly and lack precise spatial control.The attention-based approaches also demand significant memory resources.Source: §1 · p. 2
  • VidEdit uses a pretrained text-driven image diffusion model to edit layered neural atlases, preserving temporal coherence when edits map back to the original frames.This training-free approach edits a full video in about one minute.Source: §1 · p. 2
  • Panoptic segmentation identifies regions of interest and HED edges guide diffusion, enabling fine-grained spatial control while preserving atlas structure and geometry.The method uses a crop around the area of interest and a non-invertible noising process.Source: §1 · pp. 2–3
  • On DAVIS, VidEdit outperforms baselines in semantic matching, original-content preservation, and temporal consistency, while also producing diverse edits compatible with one prompt.The paper also reports efficient processing, with a full video edited in about one minute.Source: §1 · p. 3

2 Related Work

Related work spans text-driven image editing and video editing, where temporal consistency remains difficult. VidEdit follows atlas-based editing but replaces per-prompt optimization with a pretrained diffusion model.

  • Text-to-image diffusion supports text-conditioned editing, including masked local edits and attention-based region constraints; some image-editing methods refine results through optimization.Latent diffusion models move the diffusion process into an autoencoder’s latent space to improve training efficiency, memory, and runtime.Source: §2 · p. 3
  • Video-generation and editing methods use spatiotemporal attention, but reported approaches still exhibit flicker or struggle with reliable long-term coherence (Wu et al., 2022; Qi et al., 2023; Ceylan et al., 2023; Wang et al., 2023; Liu et al., 2023).Tune-A-Video overfits a video to a text query, while other approaches transfer pretrained text-to-image knowledge through spatiotemporal attention.Source: §2 · p. 3
  • Neural Layered Atlases provide temporally consistent 2D video representations; Text2Live optimizes an edit layer per prompt, whereas VidEdit uses pretrained diffusion to avoid that optimization and enable quick inference.Text2Live is identified as an atlas-based editing method (Bar-Tal et al., 2022).Source: §2 · p. 3

3 VidEdit Framework

VidEdit edits video in atlas space with a pretrained diffusion model, then maps edits back to frames. Segmentation masks and HED edges guide localized changes while atlas structure and unedited content are preserved.

3 VidEdit Framework

  • The framework decomposes video into neural layered atlases, edits a selected atlas with diffusion, then samples frame edit layers and composites them over original frames.The atlas representation is used to provide global spatial and temporal coherence.Source: Figure 2 · p. 4, §3 · p. 4

3.1 Zero-shot Atlas-based video editing

  • Neural Layered Atlases map each video pixel to foreground and background atlas coordinates and predict foreground opacity, enabling layered color reconstruction and projection of edited atlas values to frames.The atlases are trained self-supervised and disentangle video layers.Source: §3.1 · p. 4
  • Pretrained conditional latent diffusion turns video editing into a training-free atlas-image editing task, unlike methods that train a generative model for each text query.The approach is described as adaptable and yielding competitive performance.Source: §3.1 · pp. 4–5

3.2 Semantic Atlas Editing with VidEdit

  • Panoptic segmentation on atlas grids identifies a target region and produces a mask, with alpha-based white-background mixing helping the segmenter distinguish object from background.A bounding box around the identified region narrows the patch for mask generation.Source: §3.2 · pp. 5–6
  • HED edges provide structural guidance alongside the target prompt during diffusion, while the mask keeps the generation focused on the selected object region.The method crops the atlas patch around the target bounding box, encodes it as a latent, and applies a 1,000-step noising process.Source: §3.2 · p. 6
  • After editing, the region outside the mask is replaced from the input atlas, and the edited atlas is sampled back into frame layers for compositing with original frames.This produces an edited video described as spatially and temporally consistent.Source: §3.2 · p. 6

4 Experiments

On DAVIS videos, VidEdit is evaluated against frame-wise and video-editing baselines for semantic faithfulness, content preservation, temporal consistency, and editing efficiency; results highlight strengths in preservation, consistency, and speed.

4.1 Experimental setup

  • The DAVIS evaluation uses 20–70-frame videos resized to 768 × 432, four manually designed prompts per video, and compares against frame-wise and video-editing baselines.VidEdit uses Mask2former segmentation and HED conditioning with ControlNet Stable Diffusion; a 70-frame video takes about one minute to reconstruct after patch editing.Source: §4.1 · p. 7

4.2 State-of-the-art comparison

  • VidEdit outperforms baselines on semantic and similarity metrics, achieves the best directional similarity, and exceeds all methods in CFrame while matching Text2Live's temporal consistency.It also outperforms all baselines in LPIPS and HaarPSI and is similar to Text2Live on PSNR.Source: §4.2 · pp. 8–9, Table 1 · p. 9
  • VidEdit reaches strong local frame accuracy and improves out-of-interest LPIPS over baselines, including Text2Live (3 vs 8).Figure 4 compares local frame accuracy within a ground-truth mask with LPIPS outside it.Source: §4.2 · p. 9, Figure 4 · p. 9
  • For interactive editing, VidEdit edits a 70-frame video approximately 30 times faster than Text2Live, and its time-efficiency advantage over other baselines increases as the number of frames grows.Source: §4.2 · p. 9
  • Qualitative comparisons show finer, more realistic localized edits from VidEdit, while Text2Live can miss detailed textures and Tune-a-Video and Pix2Video alter untargeted regions.Despite high frame-consistency scores, Tune-a-Video and Pix2Video show noticeable flickering; SDEdit struggles to balance faithful editing with content preservation.Source: §4.2 · pp. 9–10, Figure 6 · p. 10

4.3 Model Analysis

  • Removing conditional controls causes edits at random atlas locations with shapes mismatched to target objects; edge-only control improves metrics slightly, while mask-only edits can be semantically incoherent.The ablation compares the full mask-and-HED pipeline with disabled or partial controls.Source: §4.3 · p. 11, Table 2 · p. 11
  • HED strengths below 0.4 provide insufficient guidance, while strengths above 1.2 hinder faithful edits; local LPIPS falls as conditioning increases, with diminishing gains beyond 1.The analysis compares local LPIPS and local CLIP scores within DAVIS ground-truth masks.Source: §4.3 · p. 11, Figure 7 · p. 11
  • Repeated edits from one video and prompt produce more diverse samples with VidEdit than Text2Live, whose training randomness tends toward a unique solution.Figure 8 compares four edits per video using the same text query.Source: §4.3 · p. 12, Figure 8 · p. 12

5 Conclusion & Discussion

VidEdit is a lightweight, zero-shot semantic video-editing method based on latent diffusion that preserves more appearance information than other diffusion-based methods. Its scope is limited by atlas mapping networks’ reduced capacity for complex videos with rapid movement or very long duration.

5 Conclusion & Discussion

  • VidEdit is a lightweight algorithm for zero-shot semantic video editing based on latent diffusion models.Source: §5 · p. 12
  • VidEdit preserves more appearance information from the input than other diffusion-based methods, producing lighter edits.Source: §5 · p. 12
  • The method’s atlas-based MLP mapping networks lose capacity on complex videos with rapid movement and on very long-term videos.Because VidEdit relies on atlas quality, strengthening and robustifying neural layered atlas construction could expand the scope of possible edits.Source: §5 · p. 12

A Ablation Visualization

The ablation compares edits with both conditional controls against versions with controls disabled or used individually, showing that the controls affect both edit placement and semantic quality.

A Ablation Visualization

B.1 VidEdit samples

Figure 10 presents additional VidEdit sample results.

B.1 VidEdit samples

B.2 Baselines Comparison

The additional examples compare VidEdit with other editing methods, highlighting texture realism and preservation of content outside regions of interest.

B.2 Baselines Comparison

  • VidEdit renders more realistic, higher-quality textures than the compared methods while preserving original content outside regions of interest.Source: §B.2 · p. 17, Figure 11 · p. 17
  • In the flamingo example, VidEdit renders subtle feather-like grooves and a fine light effect, while Text2Live struggles to produce a detailed plastic appearance.Source: §B.2 · p. 17
  • For the wooden boat, VidEdit looks more natural and less tarnished than the generated boat from the comparison methods.Source: §B.2 · p. 17
  • Tune-a-Video and Pix2Video produce unconvincing edits and substantially alter the original content.Source: §B.2 · p. 17

C Blending Effect

The blending step uses atlas opacity to guide RGB blending, helping the segmentation network locate the object mask despite low contrast and duplicated atlas content.

C Blending Effect

  • Alpha-guided blending avoids mask errors that can arise from low contrast and duplicated object representations in the atlas.Using only foreground RGB can yield partially detected objects or masks at incorrect locations; the alpha channel identifies pixels with relevant visible information.Source: C Blending Effect · p. 18
  • The atlas RGB channels are blended with a fully white image according to the atlas alpha values.The passage identifies ARGB as atlas RGB channels, I as a fully white image, and α as atlas opacity values.Source: C Blending Effect · p. 18
  • Figure 12 presents the blending effect used in the editing pipeline.Source: Figure 12 · p. 18, C Blending Effect · p. 18

D Atlas Construction

Atlas construction decomposes a video into background and object atlases, maps video pixels into atlas coordinates, and learns opacity values for reconstruction and editing.

D Atlas Construction

  • The atlas construction takes a video and rough object masks and produces atlases, pixel-to-atlas mappings, and per-pixel opacity values.It discretizes the atlases to a 1000 × 1000 image grid for editing.Source: D Atlas Construction · p. 18
  • Mapping networks map each video pixel location (x, y, t) to a 2D coordinate in its atlas.Source: D Atlas Construction · p. 18
  • A shared atlas network outputs RGB color, while foreground and background mappings point into separate predefined quadrants and use positional encoding.Separate foreground and background atlas networks are not required in this setup.Source: D Atlas Construction · p. 18
  • An alpha network outputs atlas opacity, bootstrapped with rough object masks from a pretrained segmentor.Source: D Atlas Construction · p. 18
  • Reconstructed video-pixel RGB is estimated by alpha-blending the corresponding atlas colors.Source: D Atlas Construction · p. 19
  • Training combines reconstruction with regularization for meaningful atlases, including local rigidity, cross-frame correspondence consistency, and sparsity.Consistency uses optical-flow pixel correspondences to map consecutive-frame pixels to the same atlas point; sparsity encourages recovering only the minimal content needed to reconstruct the video.Source: D Atlas Construction · p. 19
Loading 2306.08707v4…