MagicMotion: Controllable Video Generation with Dense-to-Sparse Trajectory Guidance
MagicMotion 是一种基于密集到稀疏轨迹引导的可控视频生成框架,能够通过三种级别的控制条件(掩膜、框和稀疏框)精确控制视频中的物体运动。
更新于 2025-03-21。作者:Quanhao Li、Zhen Xing、Rui Wang、Hui Zhang、Qi Dai、Zuxuan Wu。
中文摘要
近期在视频生成领域的进步显著提升了视觉质量和时间一致性。基于此,轨迹可控的视频生成技术应运而生,它通过明确定义的空间路径实现精确的对象运动控制。然而,现有方法在处理复杂对象运动和多对象运动控制方面存在困难,导致轨迹跟踪不精确、对象一致性差和视觉质量受损。此外,这些方法仅支持单一格式的轨迹控制,限制了它们在多种场景中的应用。另外,目前尚无公开的针对轨迹可控视频生成专门定制的数据集或基准,这阻碍了稳健的训练和系统评估。为了应对这些挑战,我们引入了MagicMotion,这是一种新颖的图像到视频生成框架,它通过从密集到稀疏的三级条件实现轨迹控制:掩码、边界框和稀疏框。给定一个输入图像和轨迹,MagicMotion能够无缝地将对象沿定义的轨迹动画化,同时保持对象一致性和视觉质量。此外,我们提出了MagicData,这是一个大规模的轨迹可控视频数据集,以及一个用于标注和过滤的自动化流程。我们还引入了MagicBench,这是一个全面的基准,评估了不同对象数量下的视频质量和轨迹控制精度。广泛的实验表明,MagicMotion在各个指标上均优于先前的方法。我们的项目页面公开可访问,网址为https://quanhaol.github.io/magicmotion-site。
英文摘要
Recent advances in video generation have led to remarkable improvements in visual quality and temporal coherence. Upon this, trajectory-controllable video generation has emerged to enable precise object motion control through explicitly defined spatial paths. However, existing methods struggle with complex object movements and multi-object motion control, resulting in imprecise trajectory adherence, poor object consistency, and compromised visual quality. Furthermore, these methods only support trajectory control in a single format, limiting their applicability in diverse scenarios. Additionally, there is no publicly available dataset or benchmark specifically tailored for trajectory-controllable video generation, hindering robust training and systematic evaluation. To address these challenges, we introduce MagicMotion, a novel image-to-video generation framework that enables trajectory control through three levels of conditions from dense to sparse: masks, bounding boxes, and sparse boxes. Given an input image and trajectories, MagicMotion seamlessly animates objects along defined trajectories while maintaining object consistency and visual quality. Furthermore, we present MagicData, a large-scale trajectory-controlled video dataset, along with an automated pipeline for annotation and filtering. We also introduce MagicBench, a comprehensive benchmark that assesses both video quality and trajectory control accuracy across different numbers of objects. Extensive experiments demonstrate that MagicMotion outperforms previous methods across various metrics. Our project page are publicly available at https://quanhaol.github.io/magicmotion-site.
解读
一句话总结
MagicMotion 是一种基于密集到稀疏轨迹引导的可控视频生成框架,能够通过三种级别的控制条件(掩膜、框和稀疏框)精确控制视频中的物体运动。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:现有的轨迹可控视频生成方法在处理复杂物体运动和多物体运动控制时存在挑战,导致轨迹跟随不准确、物体一致性差和视觉质量受损。
- 现有方案不足:现有方法通常只支持单一类型的轨迹控制信号,缺乏适用于不同场景的灵活性;同时,缺乏公开的专门针对轨迹可控视频生成的数据集和基准,限制了模型的训练和评估。
- 研究目标:提出 MagicMotion,一个支持多种轨迹控制信号的可控视频生成框架,并构建相应的数据集和基准,以实现高质量、精确轨迹控制的视频生成。
问题2:论文的核心创新点是什么?
- 技术创新:利用类似 ControlNet 的架构,通过 Trajectory ControlNet 编码轨迹信息,并将其添加到基础 DiT 模型中,实现轨迹引导。
- 方法改进:采用渐进式训练策略,支持从密集到稀疏的三种轨迹控制条件(掩膜、框和稀疏框),并通过 Latent Segmentation Loss 提高模型对物体形状的感知能力。
- 优势:与现有方法相比,MagicMotion 能够提供更精确的轨迹控制,更高的视觉质量和更好的物体一致性。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在 MagicBench 和 DAVIS 数据集上进行的实验,展示了 MagicMotion 在视频质量和轨迹控制精度方面的优越性。
- 性能提升:在 MagicBench 和 DAVIS 数据集上,MagicMotion 在 FID、FVD、M IoU 和 B IoU 等指标上均优于现有方法。
- 对比结果:与现有方法相比,MagicMotion 在各种指标上均表现出更优的性能,特别是在处理多物体运动时。
问题4:这个研究的实际应用价值是什么?
- 应用场景:MagicMotion 可用于动画制作、视频编辑、虚拟现实和增强现实等领域,以实现精确控制视频中的物体运动。
- 实施建议:利用 MagicMotion 和 MagicData 数据集,可以快速生成高质量、符合特定要求的视频内容。
- 局限与展望:虽然 MagicMotion 表现出优异的性能,但仍存在一些局限性,如对复杂场景和动态背景的处理能力有限。未来研究方向包括提高模型的鲁棒性和泛化能力。