Diffusion models have made significant advances in generating high-quality images, but their application to video generation has remained challenging due to the complexity of temporal motion. Zero-shot video editing offers a solution by utilizing pre-trained image diffusion models to translate source videos into new ones. Nevertheless, existing methods struggle to maintain strict temporal consistency and efficient memory consumption. In this work, we propose a novel approach to enhance temporal consistency in generated videos by merging self-attention tokens across frames. By aligning and compressing temporally redundant tokens across frames, our method improves temporal coherence and reduces memory consumption in self-attention computations. The merging strategy matches and aligns tokens according to the temporal correspondence between frames, facilitating natural temporal consistency in generated video frames. To manage the complexity of video processing, we divide videos into chunks and develop intra-chunk local token merging and inter-chunk global token merging, ensuring both short-term video continuity and long-term content consistency. Our video editing approach seamlessly extends the advancements in image editing to video editing, rendering favorable results in temporal consistency over state-of-the-art methods.
翻译:扩散模型在生成高质量图像方面取得了显著进展,但由于时间运动的复杂性,其在视频生成中的应用仍面临挑战。零样本视频编辑通过利用预训练的扩散模型将源视频转换为新视频提供了解决方案。然而,现有方法难以严格保持时间一致性和高效内存消耗。本文提出了一种新颖方法,通过跨帧合并自注意力令牌来增强生成视频的时间一致性。通过对齐并压缩跨帧的时间冗余令牌,我们的方法改善了时间连贯性,并降低了自注意力计算中的内存消耗。该合并策略根据帧间时间对应关系匹配并对齐令牌,从而在生成视频帧中促进自然的时间一致性。为管理视频处理的复杂性,我们将视频划分为块,并开发了块内局部令牌合并与块间全局令牌合并,确保短时视频连续性及长时内容一致性。我们的视频编辑方法无缝地将图像编辑领域的前沿成果扩展至视频编辑,在时间一致性方面取得了优于现有技术的结果。