PKU-YuanGroup/MagicTime
U-Net and DiT diffusion models for text-driven time-lapse video
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
--run-txt reads prompts from a text file and --batch-size controls how many are grouped per batch.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.
You need a managed production API, validated physical simulation, deterministic output across machines, or a complete original training pipeline.
Quick Start & Installation
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 →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| MagicTime ★ | 1.3k | +1 | Python | Apache-2.0 | U-Net and DiT diffusion models for text-driven time-lapse video |
| hyperframes | 95.5k | +4.4k | TypeScript | Apache-2.0 | HTML timelines for editable video projects and frame-by-frame rendering |
| Open-Generative-AI | 37.6k | +1.1k | JavaScript | MIT | Next.js and Electron studio for cloud and local media generation |
| LTX-Video | 11.6k | +85 | Python | Apache-2.0 | Legacy 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.
curl -sL https://repoforai.com/repo/PKU-YuanGroup/MagicTime.md
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?
How much GPU memory do I need, and how should I size a batch worker?
Can I self-host MagicTime in a commercial product?
When should I choose MagicTime over AnimateDiff or a hosted service?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
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