FreeMask: Rethinking the Importance of Attention Masks for Zero-Shot Video Editing

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Cai, Lingling, Zhao, Kang, Yuan, Hangjie, Zhang, Yingya, Zhang, Shiwei, Huang, Kejie
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866929521955962880
author Cai, Lingling
Zhao, Kang
Yuan, Hangjie
Zhang, Yingya
Zhang, Shiwei
Huang, Kejie
author_facet Cai, Lingling
Zhao, Kang
Yuan, Hangjie
Zhang, Yingya
Zhang, Shiwei
Huang, Kejie
contents Text-to-video diffusion models have made remarkable advancements. Driven by their ability to generate temporally coherent videos, research on zero-shot video editing using these fundamental models has expanded rapidly. To enhance editing quality, structural controls are frequently employed in video editing. Among these techniques, cross-attention mask control stands out for its effectiveness and efficiency. However, when cross-attention masks are naively applied to video editing, they can introduce artifacts such as blurring and flickering. Our experiments uncover a critical factor overlooked in previous video editing research: cross-attention masks are not consistently clear but vary with model structure and denoising timestep. To address this issue, we propose the metric Mask Matching Cost (MMC) that quantifies this variability and propose FreeMask, a method for selecting optimal masks tailored to specific video editing tasks. Using MMC-selected masks, we further improve the masked fusion mechanism within comprehensive attention features, e.g., temp, cross, and self-attention modules. Our approach can be seamlessly integrated into existing zero-shot video editing frameworks with better performance, requiring no control assistance or parameter fine-tuning but enabling adaptive decoupling of unedited semantic layouts with mask precision control. Extensive experiments demonstrate that FreeMask achieves superior semantic fidelity, temporal consistency, and editing quality compared to state-of-the-art methods.
format Preprint
id arxiv_https___arxiv_org_abs_2409_20500
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle FreeMask: Rethinking the Importance of Attention Masks for Zero-Shot Video Editing
Cai, Lingling
Zhao, Kang
Yuan, Hangjie
Zhang, Yingya
Zhang, Shiwei
Huang, Kejie
Computer Vision and Pattern Recognition
Multimedia
Text-to-video diffusion models have made remarkable advancements. Driven by their ability to generate temporally coherent videos, research on zero-shot video editing using these fundamental models has expanded rapidly. To enhance editing quality, structural controls are frequently employed in video editing. Among these techniques, cross-attention mask control stands out for its effectiveness and efficiency. However, when cross-attention masks are naively applied to video editing, they can introduce artifacts such as blurring and flickering. Our experiments uncover a critical factor overlooked in previous video editing research: cross-attention masks are not consistently clear but vary with model structure and denoising timestep. To address this issue, we propose the metric Mask Matching Cost (MMC) that quantifies this variability and propose FreeMask, a method for selecting optimal masks tailored to specific video editing tasks. Using MMC-selected masks, we further improve the masked fusion mechanism within comprehensive attention features, e.g., temp, cross, and self-attention modules. Our approach can be seamlessly integrated into existing zero-shot video editing frameworks with better performance, requiring no control assistance or parameter fine-tuning but enabling adaptive decoupling of unedited semantic layouts with mask precision control. Extensive experiments demonstrate that FreeMask achieves superior semantic fidelity, temporal consistency, and editing quality compared to state-of-the-art methods.
title FreeMask: Rethinking the Importance of Attention Masks for Zero-Shot Video Editing
topic Computer Vision and Pattern Recognition
Multimedia
url https://arxiv.org/abs/2409.20500