PKU-YuanGroup/MagicTime

โ˜… 1,336โ‘‚ 122

[TPAMI 2025๐Ÿ”ฅ] MagicTime: Time-lapse Video Generation Models as Metamorphic Simulators

About PKU-YuanGroup/MagicTime

PKU-YuanGroup/MagicTime is an open-source project on GitHub, mainly written in Python. [TPAMI 2025๐Ÿ”ฅ] MagicTime: Time-lapse Video Generation Models as Metamorphic Simulators It currently holds 1,336 stars and 122 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 PKU-YuanGroup/MagicTime ยท default branch - ยท size 0 KB ยท watchers 0 ยท source: GitHub REST API and repository README

README

MagicTime: Time-lapse Video Generation Models

as Metamorphic Simulators

If you like our project, please give us a star โญ on GitHub for the latest update.

hf_space Replicate demo and cloud API Open In Colab hf_space arXiv Home Page Dataset zhihu zhihu DOI License github

https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/PKU-YuanGroup%2FOpen-Sora-Plan | Trendshift

This repository is the official implementation of MagicTime, a metamorphic video generation pipeline based on the given prompts. The main idea is to enhance the capacity of video generation models to accurately depict the real world through our proposed methods and dataset.


๐Ÿ’ก We also have other video generation projects that may interest you โœจ.

Open-Sora Plan: Open-Source Large Video Generation Model
Bin Lin, Yunyang Ge and Xinhua Cheng etc.
github github arXiv
> Helios: Real Real-Time Long Video Generation Model
Shenghai Yuan, Jinfa Huang and Xianyi He etc.
github github arXiv
> OpenS2V-Nexus: A Detailed Benchmark and Million-Scale Dataset for Subject-to-Video Generation
Shenghai Yuan, Xianyi He and Yufan Deng etc.
github github arXiv
> ConsisID: Identity-Preserving Text-to-Video Generation by Frequency Decomposition
Shenghai Yuan, Jinfa Huang and Xianyi He etc.
github github arXiv
> ChronoMagic-Bench: A Benchmark for Metamorphic Evaluation of Text-to-Time-lapse Video Generation
Shenghai Yuan, Jinfa Huang and Yongqi Xu etc.
github github arXiv

๐Ÿ“ฃ News

๐Ÿ˜ฎ Highlights

MagicTime shows excellent performance in metamorphic video generation.

Related Resources

Metamorphic Videos vs. General Videos

Compared to general videos, metamorphic videos contain physical knowledge, long persistence, and strong variation, making them difficult to generate. We show compressed .gif on github, which loses some quality. The general videos are generated by the Animatediff and MagicTime.

Type
"Bean sprouts grow and mature from seeds"
"[...] construction in a Minecraft virtual environment"
"Cupcakes baking in an oven [...]"
"[...] transitioning from a tightly closed bud to a fully bloomed state [...]"
General Videos https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/MakeLongVideo https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/MakeLongVideo https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/MakeLongVideo https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/MakeLongVideo
Metamorphic Videos https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/ModelScopeT2V https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/ModelScopeT2V https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/ModelScopeT2V https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/ModelScopeT2V

Gallery

We showcase some metamorphic videos generated by MagicTime, MakeLongVideo, ModelScopeT2V, VideoCrafter, ZeroScope, LaVie, T2V-Zero, Latte and Animatediff below.

Method
"cherry blossoms transitioning [...]"
"dough balls baking process [...]"
"an ice cube is melting [...]"
"a simple modern house's construction [...]"
MakeLongVideo https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/MakeLongVideo https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/MakeLongVideo https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/MakeLongVideo https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/MakeLongVideo
ModelScopeT2V https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/ModelScopeT2V https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/ModelScopeT2V https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/ModelScopeT2V https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/ModelScopeT2V
VideoCrafter https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/VideoCrafter https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/VideoCrafter https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/VideoCrafter https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/VideoCrafter
ZeroScope https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/ZeroScope https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/ZeroScope https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/ZeroScope https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/ZeroScope
LaVie https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/LaVie https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/LaVie https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/LaVie https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/LaVie
T2V-Zero https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/T2V-Zero https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/T2V-Zero https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/T2V-Zero https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/T2V-Zero
Latte https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/Latte https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/Latte https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/Latte https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/Latte
Animatediff https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/Animatediff https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/Animatediff https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/Animatediff https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/Animatediff
Ours https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/Ours https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/Ours https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/Ours https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/Ours

We show more metamorphic videos generated by MagicTime with the help of Realistic, ToonYou and RcnzCartoon.

https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/Realistic https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/Realistic https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/Realistic
"[...] bean sprouts grow and mature from seeds"
"dough [...] swells and browns in the oven [...]"
"the construction [...] in Minecraft [...]"
https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/RcnzCartoon https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/RcnzCartoon https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/RcnzCartoon
"a bud transforms into a yellow flower"
"time-lapse of a plant germinating [...]"
"[...] a modern house being constructed in Minecraft [...]"
https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/ToonYou https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/ToonYou https://github.com/PKU-YuanGroup/MagicTime/blob/HEAD/ToonYou
"an ice cube is melting"
"bean plant sprouts grow and mature from the soil"
"time-lapse of delicate pink plum blossoms [...]"

Prompts are trimmed for display, see here for full prompts.

Integrate into DiT-based Architecture

The mission of this project is to help reproduce Sora and provide high-quality video-text data and data annotation pipelines, to support Open-Sora-Plan or other DiT-based T2V models. To this end, we take an initial step to integrate our MagicTime scheme into the DiT-based Framework. Specifically, our method supports the Open-Sora-Plan v1.0.0 for fine-tuning. We first scale up with additional metamorphic landscape time-lapse videos in the same annotation framework to get the ChronoMagic-Landscape dataset. Then, we fine-tune the Open-Sora-Plan v1.0.0 with the ChronoMagic-Landscape dataset to get the MagicTime-DiT model. The results are as follows (257ร—512ร—512 (10s)):

"Time-lapse of a coastal landscape [...]"
"Display the serene beauty of twilight [...]"
"Sunrise Splendor: Capture the breathtaking moment [...]"
"Nightfall Elegance: Embrace the tranquil beauty [...]"
"The sun descending below the horizon [...]"
"[...] daylight fades into the embrace of the night [...]"
"Time-lapse of the dynamic formations of clouds [...]"
"Capture the dynamic formations of clouds [...]"

Prompts are trimmed for display, see here for full prompts.

๐Ÿค— Demo

Gradio Web UI

Highly recommend trying out our web demo by the following command, which incorporates all features currently supported by MagicTime. We also provide online demo in Hugging Face Spaces.

python app.py

CLI Inference

# For Realistic
python inference_magictime.py --config sample_configs/RealisticVision.yaml --human

or you can directly run the .sh

sh inference_cli.sh

warning: It is worth noting that even if we use the same seed and prompt but we change a machine, the results will be different.

โš™๏ธ Requirements and Installation

We recommend the requirements as follows.

Environment

git clone --depth=1 https://github.com/PKU-YuanGroup/MagicTime.git
cd MagicTime
conda create -n magictime python=3.10.13
conda activate magictime
pip install -r requirements.txt

Download MagicTime

The weights are available at ๐Ÿค—HuggingFace and ๐ŸŸฃWiseModel, or you can download it with the following commands.

```bash

way 1

if you are in china mainland, run this first: export HF_ENDPOINT=https://hf-mirror.com

huggingface-cli download --repo-type model \ BestWishYsh/MagicTime

GitHub Stars & Activity

1,336Stars
122Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars1,336
Forks122
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โ˜… 60,525โ‘‚ 7,677
โ†’
2

ATH-MaaS / Pixelle-Video

Pythonโ˜… 28,283โ‘‚ 4,114
โ†’
3

Wan-Video / Wan2.2

Pythonโ˜… 17,575โ‘‚ 2,252
โ†’
4

Zulko / moviepy

Pythonโ˜… 14,913โ‘‚ 2,108
โ†’
5

zai-org / CogVideo

Pythonโ˜… 13,032โ‘‚ 1,350
โ†’
6

Tencent-Hunyuan / HunyuanVideo

Pythonโ˜… 12,550โ‘‚ 1,332
โ†’
7

HKUDS / ViMax

Pythonโ˜… 12,430โ‘‚ 1,874
โ†’
8

Lightricks / LTX-Video

Pythonโ˜… 10,966โ‘‚ 1,138
โ†’

More AI Rankings