MotionMaster: Training-free Camera Motion Transfer For Video Generation

Teng Hu, Jiangning Zhang, Ran Yi, Yating Wang, Hongrui Huang +3 more
4/24/2024
cs.CV

No official code found. Best implementation: sjtuplayer/MotionMaster (103 stars, Apache-2.0, last commit 2024-10-15).

Abstract

The emergence of diffusion models has greatly propelled the progress in image and video generation. Recently, some efforts have been made in controllable video generation, including text-to-video generation and video motion control, among which camera motion control is an important topic. However, existing camera motion control methods rely on training a temporal camera module, and necessitate substantial computation resources due to the large amount of parameters in video generation models. Moreover, existing methods pre-define camera motion types during training, which limits their flexibility in camera control. Therefore, to reduce training costs and achieve flexible camera control, we propose COMD, a novel training-free video motion transfer model, which disentangles camera motions and object motions in source videos and transfers the extracted camera motions to new videos. We first propose a one-shot camera motion disentanglement method to extract camera motion from a single source video, which separates the moving objects from the background and estimates the camera motion in the moving objects region based on the motion in the background by solving a Poisson equation. Furthermore, we propose a few-shot camera motion disentanglement method to extract the common camera motion from multiple videos with similar camera motions, which employs a window-based clustering technique to extract the common features in temporal attention maps of multiple videos. Finally, we propose a motion combination method to combine different types of camera motions together, enabling our model a more controllable and flexible camera control. Extensive experiments demonstrate that our training-free approach can effectively decouple camera-object motion and apply the decoupled camera motion to a wide range of controllable video generation tasks, achieving flexible and diverse camera motion control.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[ACM MM24] MotionMaster: Training-free Camera Motion Transfer For Video Generation

1033PythonApr 24, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{hu2024motionmaster,
  title  = {MotionMaster: Training-free Camera Motion Transfer For Video Generation},
  author = {Teng Hu and Jiangning Zhang and Ran Yi and Yating Wang and Hongrui Huang and Jieyu Weng and Yabiao Wang and Lizhuang Ma},
  year   = {2024},
  eprint = {2404.15789},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.15789v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.15789.svg)](https://codeofpaper.com/paper/2404.15789)

Discussion