← Back to Leaderboard
MPKU-YuanGroup

PKU-YuanGroup/MagicTime

U-Net and DiT diffusion models for text-driven time-lapse video

Engineering Health (Methodology)
C · 48/100
Maintenance Activity
● Updated 7mo ago
Latest Release
Rolling commits (main)
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance6/35
Fork Adoption16/25
Release Cadence6/20
License Clarity20/20
Self-HostedLocal AIGPUCLI
Total Stars
★ 1,337
24h Growth
+0
7d Growth
+1
Forks
119

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

PKU-YuanGroup/MagicTime Star History (2024-04-07 - 2026-12-04) ALL-TIME STAR HISTORY (2024-04 – 2026-12) +1.3k in 971d · avg +1/day 1.4k 706 0 2024-04-07: ★ 112024-06-08: ★ 1,0552024-08-10: ★ 1,1412024-10-12: ★ 1,1872024-12-14: ★ 1,2102025-02-15: ★ 1,2362025-04-19: ★ 1,2882025-06-21: ★ 1,3022025-08-23: ★ 1,3102025-10-25: ★ 1,3202025-12-27: ★ 1,3232026-02-28: ★ 1,3282026-05-02: ★ 1,3332026-07-04: ★ 1,3342026-09-05: ★ 1,3352026-12-04: ★ 1,337 ★ 1.3k 2024-04 2025-08 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

MagicTime exposes two distinct model paths. The local inference scripts use an AnimateDiff-derived U-Net with a Stable Diffusion v1.5 base, a motion module, DreamBooth weights, and MagicTime-specific components. The checkpoint tree separates magic_adapter_s, magic_adapter_t, and magic_text_encoder under ckpts/Magic_Weights/. The CLI takes a YAML preset, and app.py provides a Gradio entrypoint. Presets and checkpoint selection are the demonstrated ways to configure the pipeline; there is no need to assume a plugin API.

MagicTime-DiT is a separate fine-tune of Open-Sora-Plan v1.0.0 on ChronoMagic-Landscape, not a drop-in U-Net preset. The local Python stack pins PyTorch 2.2.2, xFormers 0.0.25.post1, Diffusers 0.11.1, and Transformers 4.38.2, with ImageIO and FFmpeg/PyAV extras for media handling. Reproduce the pinned environment before attempting upgrades across the inference stack.

Key Capabilities & Differentiators

MagicTime takes a text prompt and generates a time-lapse in which the subject changes state, rather than merely moves. The examples cover seed germination, flowers opening, dough rising and browning, ice melting, and staged construction. The U-Net path ships YAML presets for RealisticVision, ToonYou, and RcnzCartoon. The CLI supports interactive prompts with --human and prompt-file processing with --run-txt and --batch-size, which is useful for comparing several prompts under the same preset.

The separate DiT gallery shows 257-frame, 512 × 512 clips at about 10 seconds, focused on changes in daylight, coastal scenes, and clouds. These are example specifications, not U-Net defaults or throughput measurements. For evaluation, ChronoMagic offers 2,265 captioned time-lapses, and ChronoMagic-Bench offers 1,649 video–text pairs plus a 150-pair subset.

Trade-offs & Limitations

MagicTime is a stronger fit than a generic motion pipeline when the review criterion is whether a subject progresses through recognizable stages. AnimateDiff is a useful local baseline, but the gallery comparisons do not quantify a general quality advantage. Compared with a hosted alternative such as Sora, local deployment gives you control of checkpoint selection and execution, while leaving GPU capacity, dependency compatibility, and media encoding to your team. Treat the generated clips as visualizations, not as validated physical simulations.

The same seed and prompt may produce different results on different machines, so use a fixed environment for regression reviews and do not promise cross-host determinism. The majority of the project is Apache-2.0, but the base checkpoint, DreamBooth or other style assets, and datasets need separate license checks before commercial use. If the adoption plan depends on reproducing the original training process, the pending training code is a more significant constraint than the inference setup.

Hardware & Deployment Guide

Start with the recommended Python 3.10.13 Conda environment and install requirements.txt. Fetch the checkpoints from Hugging Face or WiseModel and confirm that ckpts/ contains Base_Model/, DreamBooth/, and Magic_Weights/. For a smoke test, launch python app.py or run python inference_magictime.py --config sample_configs/RealisticVision.yaml. Once dependencies and weights are staged, this local path does not require a hosted inference API; the Hugging Face Spaces demo is a separate option.

For a GPU deployment, verify that the PyTorch and xFormers builds work with the target driver and CUDA stack before scaling out. Measure peak VRAM and render time with the selected preset, then tune batch size and concurrency. No container recipe or tagged release is present in the supplied tree and release metadata. Batch inference was added in July 2024, the technical report was updated in April 2025, and the main MagicTime training code remains pending. Pin both the source revision and checkpoint revision for repeatable deployments.

Architecture: AnimateDiff-derived U-Net with a Stable Diffusion v1.5 base, a motion module, and separate MagicTime weight components.
Style presets: RealisticVision, ToonYou, and RcnzCartoon are selectable through YAML configurations.
Batch inference: --run-txt reads prompts from a text file and --batch-size controls how many are grouped per batch.
DiT variant: Open-Sora-Plan v1.0.0 fine-tuned on ChronoMagic-Landscape, with 257-frame, 512 × 512, 10-second examples.
Evaluation resources: ChronoMagic provides 2,265 captioned time-lapses; ChronoMagic-Bench provides 1,649 video–text pairs and a 150-pair subset.
Local runtime: Gradio and CLI entrypoints with PyTorch 2.2.2, xFormers 0.0.25.post1, and Diffusers 0.11.1 pinned in the dependency manifest.
Best For

Research teams and creators with access to a GPU who want local, prompt-driven time-lapses and need to compare whether each stage of a transformation is visible.

Skip If

You need a managed production API, validated physical simulation, deterministic output across machines, or a complete original training pipeline.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Self-HostedLocal AIGPUCLI
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

Comparison vs. Top Voice, Vision & Video Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
MagicTime ★1.3k+1PythonApache-2.0U-Net and DiT diffusion models for text-driven time-lapse video
hyperframes95.5k+4.4kTypeScriptApache-2.0HTML timelines for editable video projects and frame-by-frame rendering
Open-Generative-AI37.6k+1.1kJavaScriptMITNext.js and Electron studio for cloud and local media generation
LTX-Video11.6k+85PythonApache-2.0Legacy LTX-Video: local DiT video generation from prompts, images, and clips

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/PKU-YuanGroup/MagicTime.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

PKU-YuanGroup/MagicTime Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about MagicTime

How do I integrate MagicTime, and can I swap in MagicTime-DiT?

Use inference_magictime.py with a YAML preset or launch app.py for the Gradio UI. The local U-Net path expects the Stable Diffusion v1.5 base, motion module, DreamBooth assets, and MagicTime components in the ckpts/ layout. MagicTime-DiT is a separate Open-Sora-Plan v1.0.0 fine-tune; do not assume its weights can be loaded by the U-Net CLI.

How much GPU memory do I need, and how should I size a batch worker?

There is no verified minimum VRAM or latency figure. Start with one prompt on the target GPU, measure peak VRAM and render time for the chosen preset, then increase batch size or concurrency independently. Do not use the 10-second DiT examples to size the U-Net deployment.

Can I self-host MagicTime in a commercial product?

The majority of the project is Apache-2.0, but that is not a blanket grant for third-party checkpoints, datasets, or the hosted research preview. Before shipping, verify the terms of the exact base model, style weights, and any datasets you use, and keep the corresponding notices.

When should I choose MagicTime over AnimateDiff or a hosted service?

Compare it with AnimateDiff if you need a local baseline for temporal consistency: use the same prompts and inspect whether each phase of the transformation is visible and coherent. Consider a hosted alternative such as Sora if you would rather not operate GPUs. The gallery is not a controlled benchmark and does not establish parity with Sora.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining PKU-YuanGroup/MagicTime? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature PKU-YuanGroup/MagicTime on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare