Downloads · 30 days
28
5% of all-time downloads
maxin-cn/Cinemo
Cinemo is a image-to-video model from maxin-cn. Use it for the image-to-video task on the model card, and read the license before you ship it in a product. It is set up for diffusers. The card lists the license as apache-2.0.
This repo contains pre-trained weights for our paper exploring image animation with motion diffusion models (Cinemo). You can find more visualizations on our project page.
Downloads · 30 days
28
5% of all-time downloads
All-time downloads
619
Public
Repo size
10.3 GB
Likes
32
Public
Click a slice to open those files.
.bin4.5 GB · 53%
From the Hugging Face model README
This repo contains pre-trained weights for our paper exploring image animation with motion diffusion models (Cinemo). You can find more visualizations on our project page.
In this project, we propose a novel method called Cinemo, which can perform motion-controllable image animation with strong consistency and smoothness. To improve motion smoothness, Cinemo learns the distribution of motion residuals, rather than directly generating subsequent frames. Additionally, a structural similarity index-based method is proposed to control the motion intensity. Furthermore, we propose a noise refinement technique based on discrete cosine transformation to ensure temporal consistency. These three methods help Cinemo generate highly consistent, smooth, and motion-controlled image animation results. Compared to previous methods, Cinemo offers simpler and more precise user control and better generative performance.
First, download and set up the repo:
git clone https://github.com/maxin-cn/Cinemo
cd Cinemo
We provide an environment.yml file that can be used to create a Conda environment. If you only want
to run pre-trained models locally on CPU, you can remove the cudatoolkit and pytorch-cuda requirements from the file.
conda env create -f environment.yml
conda activate cinemo
You can sample from our pre-trained Cinemo models with animation.py. Weights for our pre-trained Cinemo model can be found here. The script has various arguments to adjust sampling steps, change the classifier-free guidance scale, etc:
bash pipelines/animation.sh
You can also utilize Cinemo for other applications, such as motion transfer and video editing:
bash pipelines/video_editing.sh
Cinemo has been greatly inspired by the following amazing works and teams: LaVie and SEINE, we thank all the contributors for open-sourcing.
@misc{ma2024cinemoconsistentcontrollableimage,
title={Cinemo: Consistent and Controllable Image Animation with Motion Diffusion Models},
author={Xin Ma and Yaohui Wang and Gengyun Jia and Xinyuan Chen and Yuan-Fang Li and Cunjian Chen and Yu Qiao},
year={2024},
eprint={2407.15642},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2407.15642},
}