Skip to content

TencentARC/MotionCtrl

 
 

Repository files navigation

MotionCtrl: A Unified and Flexible Motion Controller for Video Generation

[SIGGRAPH 2024 CONFERENCE PROCEEDINGS]

👉 MotionCtrl for [SVD], for [VideoCrafter], for [AnimateDiff]

PaperarXivProject Page

🤗 HF Demo   🤗 HF Demo



🔥🔥 We release the codes, models MotionCtrl on AnimateDiff.

Official implementation of MotionCtrl: A Unified and Flexible Motion Controller for Video Generation.

MotionCtrl can Independently control complex camera motion and object motion of generated videos, with only a unified model.

Results of MotionCtrl+AnimateDiff

⚙️ Environment

conda create -n motionctrl python=3.10.6
conda activate motionctrl
pip install -r requirements.txt

💫 Inference

  1. Preparing Models
  1. Running scripts:

    • CMCM: sh scripts/test_cmcm.sh
    • OMCM: sh scripts/test_omcm.sh

🔥🔥 Training

  1. Preparing Pre-Trained Models
  1. Preparing Dataset
  1. Training

    • Train Camera Motion Control: sh scripts/train_cmcm.sh

    • Train Object Motion Control:

      • Dense: sh scripts/train_omcm_dense.sh
      • Sparse: sh scripts/train_omcm_sparse.sh

📚 Citation

If you make use of our work, please cite our paper.

@inproceedings{wang2024motionctrl,
  title={Motionctrl: A unified and flexible motion controller for video generation},
  author={Wang, Zhouxia and Yuan, Ziyang and Wang, Xintao and Li, Yaowei and Chen, Tianshui and Xia, Menghan and Luo, Ping and Shan, Ying},
  booktitle={ACM SIGGRAPH 2024 Conference Papers},
  pages={1--11},
  year={2024}
}

🤗 Acknowledgment

The current version of MotionCtrl is built on AnimateDiff. We appreciate the authors for sharing their awesome codebase.

❓ Contact

For any question, feel free to email [email protected] or [email protected].

About

Official Code for MotionCtrl [SIGGRAPH 2024]

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •