VideoMaMa++:通过保留与细化令牌实现时间一致的视频抠像

·

研究论文 · 2026/10/21

基于扩散的视频抠图方法利用预训练先验实现强零样本泛化,但受限于计算量,推理仅能处理6-24帧的短片段,导致跨片段边界出现闪烁边缘和不连续透明度。本文提出一种掩码引导的扩散抠图框架,采用两个关键设计:将RGB和掩码条件表示为独立的令牌流,通过全时空自注意力交互,自适应结合精细RGB纹理与粗掩码布局;并引入一对可学习嵌入——保留令牌和细化令牌,作为逐帧条件接口,支持滑动窗口推理,将已生成的抠图跨片段传播以实现局部时间一致性,同时每个片段使用全局共享参考锚点防止长序列误差累积,无需额外训练。在标准视频抠图基准和真实长视频上,该框架在细节精度和时间一致性上优于先前基于扩散的方法,并独特地在长视频中保持跨片段边界的一致性。

该论文解决了扩散视频抠图中跨片段时间一致性的关键难题,通过创新的令牌设计和滑动窗口推理,在无需额外训练的情况下显著提升长视频抠图质量,对视频编辑和合成应用具有重要价值。

Diffusion-based video matting has recently emerged as a leading approach, leveraging video diffusion priors from internet-scale pretraining to achieve strong zero-shot generalization from limited synthetic data. However, the heavy compute of these diffusion backbones limits inference to a short chunk of just 6 to 24 frames, so even ordinary videos span multiple chunks. Because each chunk is matted independently from coarse mask guidance, existing methods fail to maintain consistency across chunk boundaries, producing flickering edges and discontinuous transparency. We address this with a mask-guided diffusion-matting framework built on two ideas. The RGB and mask conditioning are represented as separate token streams that interact through full spatio-temporal self-attention, letting the model adaptively combine fine RGB texture with coarse mask layout rather than committing to a fixed channel-wise fusion. On top of this, we propose a novel pair of learnable embeddings, the preserve token and the refine token, that act as a per-frame conditioning interface and enable a sliding-window inference scheme in which already-generated mattes are propagated across chunk boundaries for local temporal consistency, complemented by a globally shared reference anchor at every chunk to prevent error accumulation in long sequences without any additional training. Across standard video matting benchmarks and in-the-wild long footage, our framework outperforms prior diffusion-based methods in both fine-detail accuracy and temporal consistency, and uniquely maintains consistency across chunk boundaries on long videos.

阅读原文

参与讨论