menyifang/MIMO

★ 1,579⑂ 0

Official implementation of "MIMO: Controllable Character Video Synthesis with Spatial Decomposed Modeling"

About menyifang/MIMO

menyifang/MIMO is an open-source project on GitHub, mainly written in Python. Official implementation of "MIMO: Controllable Character Video Synthesis with Spatial Decomposed Modeling" It currently holds 1,579 stars and 0 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Video Projects board and on the AI AI Video Projects list.

GitHub Repository Details

Repository menyifang/MIMO · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

MIMO - Official PyTorch Implementation

Project page | Paper | Video | Online Demo

MIMO: Controllable Character Video Synthesis with Spatial Decomposed Modeling
Yifang Men, Yuan Yao, Miaomiao Cui, Liefeng Bo
Institute for Intelligent Computing (Tongyi Lab), Alibaba Group
In: CVPR 2025

MIMO is a generalizable model for controllable video synthesis, which can not only synthesize realistic character videos with controllable attributes (i.e., character, motion and scene) provided by very simple user inputs, but also simultaneously achieve advanced scalability to arbitrary characters, generality to novel 3D motions, and applicability to interactive real-world scenes in a unified framework.

Demo

Animating character image with driving 3D pose from motion dataset

https://github.com/user-attachments/assets/3a13456f-9ee5-437c-aba4-30d8c3b6e251

Driven by in-the-wild video with spatial 3D motion and interactive scene

https://github.com/user-attachments/assets/4d989e7f-a623-4339-b3d1-1d1a33ad25f2

More results can be found in project page.

📢 News

(2025-06-11) The code is released! We released a simplified version of full implementation, but it could achieve comparable performance.

(2025-02-27) The paper is accepted by CVPR 2025! The full version of the paper is available on arXiv.

(2024-01-07) The online demo (v1.5) supporting custom driving videos is available now! Try out [![ModelScope Spaces]( https://img.shields.io/badge/ModelScope-Spaces-blue)](https://modelscope.cn/studios/iic/MIMO).

(2024-11-26) The online demo (v1.0) is available on ModelScope now! Try out [![ModelScope Spaces]( https://img.shields.io/badge/ModelScope-Spaces-blue)](https://modelscope.cn/studios/iic/MIMO). The 1.5 version to support custom driving videos will be coming soon.

(2024-09-25) The project page, demo video and technical report are released. The full paper version with more details is in process.

Requirements

🚀 Getting Started

git clone https://github.com/menyifang/MIMO.git
cd MIMO

Installation

conda create -n mimo python=3.10
conda activate mimo
bash install.sh

Downloads

Model Weights

You can manually download model weights from ModelScope or Huggingface, or automatically using follow commands.

Download from HuggingFace

from huggingface_hub import snapshot_download 
model_dir = snapshot_download(repo_id='menyifang/MIMO', cache_dir='./pretrained_weights')

Download from ModelScope

from modelscope import snapshot_download
model_dir = snapshot_download(model_id='iic/MIMO', cache_dir='./pretrained_weights')

Prior Model Weights

Download pretrained weights of based model and other components:

Data Preparation

Download examples and resources (assets.zip) from google drive and unzip it under ${PROJECT_ROOT}/. You can also process custom videos following Process driving templates.

After downloading weights and data, the folder of the project structure seems like:

./pretrained_weights/
|-- image_encoder
|   |-- config.json
|   `-- pytorch_model.bin
|-- denoising_unet.pth
|-- motion_module.pth
|-- pose_guider.pth
|-- reference_unet.pth
|-- sd-vae-ft-mse
|   |-- config.json
|   |-- diffusion_pytorch_model.bin
|   `-- diffusion_pytorch_model.safetensors
`-- stable-diffusion-v1-5
    |-- feature_extractor
    |   `-- preprocessor_config.json
    |-- model_index.json
    |-- unet
    |   |-- config.json
    |   `-- diffusion_pytorch_model.bin
    `-- v1-inference.yaml
./assets/
|-- video_template
|   |-- template1

Note: If you have installed some of the pretrained models, such as StableDiffusion V1.5, you can specify their paths in the config file (e.g. ./config/prompts/animation_edit.yaml).

Inference

python run_edit.py
python run_animate.py

Process driving templates

bash setup.sh
you can also use dockerfile(video_decomp/docker/decomp.dockerfile) to build a docker image with all dependencies installed.
from huggingface_hub import snapshot_download 
model_dir = snapshot_download(repo_id='menyifang/MIMO_VidDecomp', cache_dir='./video_decomp/')
cd video_decomp
python run.py

The processed template can be putted under ${PROJECT_ROOT}/assets/video_template for editing and animation tasks as follows:

./assets/video_template/
|-- template1/
|   |-- vid.mp4
|   |-- mask.mp4
|   |-- sdc.mp4
|   |-- bk.mp4
|   |-- occ.mp4 (if existing)
|-- template2/
|-- ...
|-- templateN/

Training

🎨 Gradio Demo

Online Demo: We launch an online demo of MIMO at ModelScope Studio.

If you have your own GPU resource (>= 40GB vram), you can run a local gradio app via following commands:

python app.py

Acknowledgments

Thanks for great work from Moore-AnimateAnyone, SAM, 4D-Humans, ProPainter

Citation

If you find this code useful for your research, please use the following BibTeX entry.

@inproceedings{men2025mimo,
  title={MIMO: Controllable Character Video Synthesis with Spatial Decomposed Modeling},
  author={Men, Yifang and Yao, Yuan and Cui, Miaomiao and Liefeng Bo},
  booktitle={Computer Vision and Pattern Recognition (CVPR), 2025 IEEE Conference on},
  year={2025}}
}

GitHub Stars & Activity

1,579Stars
0Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars1,579
Forks0
Open issues0
Primary languagePython
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

calesthio / OpenMontage

Python★ 59,376⑂ 0
2

ATH-MaaS / Pixelle-Video

Python★ 28,141⑂ 0
3

KlingAIResearch / LivePortrait

Python★ 19,050⑂ 0
4

Wan-Video / Wan2.2

Python★ 17,520⑂ 0
5

Zulko / moviepy

Python★ 14,897⑂ 0
6

zai-org / CogVideo

Python★ 13,018⑂ 0
7

Tencent-Hunyuan / HunyuanVideo

Python★ 12,527⑂ 0
8

HKUDS / ViMax

Python★ 12,393⑂ 0

More AI Rankings