Abstract
We present a diffusion-based video editing framework, namely DiffusionAtlas, which can achieve both frame consistency and high fidelity in editing video object appearance. Despite the success in image editing, diffusion models still encounter significant hindrances when it comes to video editing due to the challenge of maintaining spatiotemporal consistency in the object's appearance across frames. On the other hand, atlas-based techniques allow propagating edits on the layered representations consistently back to frames. However, they often struggle to create editing effects that adhere correctly to the user-provided textual or visual conditions due to the limitation of editing the texture atlas on a fixed UV mapping field. Our method leverages a visual-textual diffusion model to edit objects directly on the diffusion atlases, ensuring coherent object identity across frames. We design a loss term with atlas-based constraints and build a pretrained text-driven diffusion model as pixel-wise guidance for refining shape distortions and correcting texture deviations. Qualitative and quantitative experiments show that our method outperforms state-of-the-art methods in achieving consistent high-fidelity video-object editing.
Introduction: The Challenge of Temporal Consistency
Video editing is significantly more complex than image editing due to the requirement of temporal consistency. For instance, if a user edits a boat in an initial frame to appear as a yellow yacht, that specific yacht must maintain its visual identity throughout the entire sequence, regardless of changes in lighting, perspective, or motion.
Existing approaches typically struggle with two main issues:
- Frame-based diffusion: These methods often result in "flickering" or "texture crawling" because the generative model produces slightly different details for every individual frame.
- Atlas-based methods: These decompose video into a 2D "atlas" (a flat texture map). While they offer consistency, they usually rely on a fixed UV mapping. If an edit involves shape changes (e.g., widening a vehicle), the static mapping causes severe distortions or "ghosting" when projected back into the video space.
DiffusionAtlas bridges this gap, enabling significant shape and texture modifications while ensuring rock-solid temporal coherence.
Methodology: Bridging Diffusion and Atlases
The DiffusionAtlas pipeline consists of three primary stages:
- Atlas Generation & Fine-tuning: The system utilizes a pretrained Layered Neural Atlas (LNA) to decompose the source video into foreground and background atlases. To align the diffusion model with the video's specific structure, the authors perform one-shot tuning of a Latent Diffusion Model (LDM) on the source atlas.
- Visual-Textual Editing: Users provide a text prompt or reference image. The model employs CLIP embeddings to guide the diffusion process, editing the 2D atlas directly. This ensures the new object's identity is established once on the atlas rather than being re-generated per frame.
- UV Mapping Optimization: This core innovation addresses shape changes. Since an edited object may differ in silhouette from the original, the authors re-optimize the UV mapping networks. They introduce an Offset Loss for structural logic and use Score Distillation Sampling (SDS) to provide pixel-wise guidance, refining shape distortions during the mapping process.
Key Results and Insights
DiffusionAtlas was evaluated using the DAVIS dataset, focusing on complex moving foreground objects like swimming swans or moving vehicles.
- Quantitative Performance: The method achieved competitive CLIP scores against state-of-the-art (SOTA) benchmarks like Text2LIVE and StableVideo.
- User Preference: In a study with 48 participants, DiffusionAtlas was overwhelmingly preferred. For "Textual Alignment," users chose DiffusionAtlas over StableVideo 67.73% of the time.
- Qualitative Fidelity: The framework successfully handles intricate transformations, such as changing a "black swan" to a "white swan" with detailed wing textures, maintaining perfect identity throughout the motion.
Limitations and Future Work
While powerful, the method currently faces some hurdles. The fine-tuning process can occasionally overfit to the source structure, meaning a "dog" edited into a "cat" might retain a dog-like silhouette. Additionally, the UV mapping optimization is computationally intensive, taking approximately 40 minutes on an A6000 GPU. Future research aims to incorporate explicit spatial transformations to allow for more radical shape changes while preserving the stability of the atlas-based approach.
Summary updated