让视频生成按图层分开控制,支持前景、背景独立生成
LayerFlow: A Unified Model for Layer-aware Video Generation
- 将视频分层为前景、背景等子片段,用图层嵌入区分不同层的提示
- 在仅有静态标注数据时,通过多阶段训练实现高质量分层视频生成
- 支持分解混合视频或指定前景生成背景,适合需要精细控制的场景
我们提出LayerFlow,一种统一的分层视频生成框架。给定各层提示,可生成透明前景、干净背景及融合场景视频,并支持分解混合视频或根据前景生成背景等变体。基于文本到视频的扩散变换器,将不同层视频组织为子片段,利用图层嵌入区分各片段及其对应的层提示。针对缺乏高质量分层视频的问题,设计多阶段训练策略:先用低质量视频数据训练;再微调运动LoRA以适配静态帧;最后在高质量分层图像与拼贴视频数据上训练内容LoRA。推理时移除运动LoRA,生成具有期望分层结构的流畅视频。
原文摘要 · Abstract (English)
We present LayerFlow, a unified solution for layer-aware video generation. Given per-layer prompts, LayerFlow generates videos for the transparent foreground, clean background, and blended scene. It also supports versatile variants like decomposing a blended video or generating the background for the given foreground and vice versa. Starting from a text-to-video diffusion transformer, we organize the videos for different layers as sub-clips, and leverage layer embeddings to distinguish each clip and the corresponding layer-wise prompts. In this way, we seamlessly support the aforementioned variants in one unified framework. For the lack of high-quality layer-wise training videos, we design a multi-stage training strategy to accommodate static images with high-quality layer annotations. Specifically, we first train the model with low-quality video data. Then, we tune a motion LoRA to make the model compatible with static frames. Afterward, we train the content LoRA on the mixture of image data with high-quality layered images along with copy-pasted video data. During inference, we remove the motion LoRA thus generating smooth videos with desired layers.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。