MagicTime shows excellent performance in metamorphic video generation.
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 | ![]() | ![]() | ![]() | ![]() |
| Metamorphic Videos | ![]() | ![]() | ![]() | ![]() |
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 | ![]() | ![]() | ![]() | ![]() |
| ModelScopeT2V | ![]() | ![]() | ![]() | ![]() |
| VideoCrafter | ![]() | ![]() | ![]() | ![]() |
| ZeroScope | ![]() | ![]() | ![]() | ![]() |
| LaVie | ![]() | ![]() | ![]() | ![]() |
| T2V-Zero | ![]() | ![]() | ![]() | ![]() |
| Latte | ![]() | ![]() | ![]() | ![]() |
| Animatediff | ![]() | ![]() | ![]() | ![]() |
| Ours | ![]() | ![]() | ![]() | ![]() |
We show more metamorphic videos generated by MagicTime with the help of Realistic, ToonYou and RcnzCartoon.
![]() | ![]() | ![]() |
| "[...] bean sprouts grow and mature from seeds" | "dough [...] swells and browns in the oven [...]" | "the construction [...] in Minecraft [...]" |
![]() | ![]() | ![]() |
| "a bud transforms into a yellow flower" | "time-lapse of a plant germinating [...]" | "[...] a modern house being constructed in Minecraft [...]" |
![]() | ![]() | ![]() |
| "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.
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.
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 Huggingface Spaces.
python app.py
We recommend the requirements as follows.
git clone https://github.com/PKU-YuanGroup/MagicTime.git
cd MagicTime
conda env create -f environment.yml
conda activate magictime
The training code is coming soon! For inference, some example are shown below:
# For [Realistic](https://civitai.com/models/4201/realistic-vision-v20)
python inference_magictime.py --config sample_configs/RealisticVision.yaml
# For [ToonYou](https://civitai.com/models/30240/toonyou)
python inference_magictime.py --config sample_configs/ToonYou.yaml
# For [RcnzCartoon](https://civitai.com/models/66347/rcnz-cartoon-3d)
python inference_magictime.py --config sample_configs/RcnzCartoon.yaml
# or you can directly run the .sh
sh inference.sh
ChronoMagic with 2265 metamorphic time-lapse videos, each accompanied by a detailed caption. We released the subset of ChronoMagic used to train MagicTime. The dataset can be downloaded at Google Drive. Some samples can be found on our Project Page.
Animatediff The codebase we built upon and it is a strong U-Net-based text-to-video generation model.
Open-Sora-Plan The codebase we built upon and it is a simple and scalable DiT-based text-to-video generation repo, to reproduce Sora.
If you find our paper and code useful in your research, please consider giving a star :star: and citation :pencil:.
@misc{yuan2024magictime,
title={MagicTime: Time-lapse Video Generation Models as Metamorphic Simulators},
author={Shenghai Yuan and Jinfa Huang and Yujun Shi and Yongqi Xu and Ruijie Zhu and Bin Lin and Xinhua Cheng and Li Yuan and Jiebo Luo},
year={2024},
eprint={2404.05014},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
arxiv.org/abs/2404.05014
102 commits
1 commits
MagicTime shows excellent performance in metamorphic video generation.
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 | ![]() | ![]() | ![]() | ![]() |
| Metamorphic Videos | ![]() | ![]() | ![]() | ![]() |
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 | ![]() | ![]() | ![]() | ![]() |
| ModelScopeT2V | ![]() | ![]() | ![]() | ![]() |
| VideoCrafter | ![]() | ![]() | ![]() | ![]() |
| ZeroScope | ![]() | ![]() | ![]() | ![]() |
| LaVie | ![]() | ![]() | ![]() | ![]() |
| T2V-Zero | ![]() | ![]() | ![]() | ![]() |
| Latte | ![]() | ![]() | ![]() | ![]() |
| Animatediff | ![]() | ![]() | ![]() | ![]() |
| Ours | ![]() | ![]() | ![]() | ![]() |
We show more metamorphic videos generated by MagicTime with the help of Realistic, ToonYou and RcnzCartoon.
![]() | ![]() | ![]() |
| "[...] bean sprouts grow and mature from seeds" | "dough [...] swells and browns in the oven [...]" | "the construction [...] in Minecraft [...]" |
![]() | ![]() | ![]() |
| "a bud transforms into a yellow flower" | "time-lapse of a plant germinating [...]" | "[...] a modern house being constructed in Minecraft [...]" |
![]() | ![]() | ![]() |
| "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.
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.
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 Huggingface Spaces.
python app.py
We recommend the requirements as follows.
git clone https://github.com/PKU-YuanGroup/MagicTime.git
cd MagicTime
conda env create -f environment.yml
conda activate magictime
The training code is coming soon! For inference, some example are shown below:
# For [Realistic](https://civitai.com/models/4201/realistic-vision-v20)
python inference_magictime.py --config sample_configs/RealisticVision.yaml
# For [ToonYou](https://civitai.com/models/30240/toonyou)
python inference_magictime.py --config sample_configs/ToonYou.yaml
# For [RcnzCartoon](https://civitai.com/models/66347/rcnz-cartoon-3d)
python inference_magictime.py --config sample_configs/RcnzCartoon.yaml
# or you can directly run the .sh
sh inference.sh
ChronoMagic with 2265 metamorphic time-lapse videos, each accompanied by a detailed caption. We released the subset of ChronoMagic used to train MagicTime. The dataset can be downloaded at Google Drive. Some samples can be found on our Project Page.
Animatediff The codebase we built upon and it is a strong U-Net-based text-to-video generation model.
Open-Sora-Plan The codebase we built upon and it is a simple and scalable DiT-based text-to-video generation repo, to reproduce Sora.
If you find our paper and code useful in your research, please consider giving a star :star: and citation :pencil:.
@misc{yuan2024magictime,
title={MagicTime: Time-lapse Video Generation Models as Metamorphic Simulators},
author={Shenghai Yuan and Jinfa Huang and Yujun Shi and Yongqi Xu and Ruijie Zhu and Bin Lin and Xinhua Cheng and Li Yuan and Jiebo Luo},
year={2024},
eprint={2404.05014},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
arxiv.org/abs/2404.05014
102 commits
1 commits