commit 94aadb3d8fdcefed9396c4e77984094c9c6b60ee Author: ViperEkura <3081035982@qq.com> Date: Wed May 6 21:15:18 2026 +0800 first commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..506e349 --- /dev/null +++ b/README.md @@ -0,0 +1,44 @@ +# AstrAI Promo — 动画渲染 + +Manim 驱动的技术动画,用于 AstrAI 宣传视频。 + +## 依赖 + +```bash +pip install manim +# 或: conda install -c conda-forge manim +``` + +## 渲染单个场景 + +```bash +# 1080p(推荐) +manim -qh promo/continuous_batching.py ContinuousBatching + +# 480p 草稿 +manim -ql promo/continuous_batching.py ContinuousBatching + +# 4K +manim -4k promo/continuous_batching.py ContinuousBatching +``` + +## 渲染全部 + +```bash +python promo/render_all.py +``` + +输出到 `promo/output/videos/`。 + +## 场景清单 + +| 文件 | Scene class | 内容 | 建议时长 | +|------|-------------|------|---------| +| `transformer.py` | `Transformer` | GQA 注意力机制详解 (Q/K/V→RoPE→Attention→O) + 规格卡 | ~25s | +| `continuous_batching.py` | `ContinuousBatching` | 4 阶段流水线 + 吞吐对比 | ~30s | +| `prefix_cache.py` | `PrefixCache` | Radix Tree 生长 + 前缀复用 | ~30s | +| `architecture.py` | `Architecture` | 全栈架构逐层展开 | ~30s | + +## 导入视频剪辑 + +输出的 `.mp4` 直接导入 DaVinci Resolve / Camtasia / Premiere Pro。