跳到主要内容Skip to main content
多模态与图像视频Multimodal, Image & Video规模 / 性能Scale / performance

Open-Sora

hpcaitech / Open-Sora

开源视频生成全流程:数据清洗、VAE、DiT 训练、推理,支持文生视频与图生视频。A full open video-generation pipeline: data cleaning, VAE, DiT training and inference for text-to-video and image-to-video.

29.9k stars 3098 forks Python 语言Language Apache-2.0 许可License 最近推送Last push 2026-04-09

为什么选Why choose it

  • 想自己训练/微调视频 DiT 而不是只调用 API,它提供完整 pipeline 和配置。Covers data preparation through training, not only inference.
  • 代码把视频数据、时空压缩、训练并行拆得比较清楚,适合做工程学习基线。Useful for reproducing a video model end to end.
  • 社区活跃,能对照不同版本的模型规模与显存需求。Open code and recipes.

不适合Not for

只想生成几条短片;训练成本高,推理也吃显存。You only want to generate a clip from a prompt.
需要电影级长镜头一致性或商业级 SLA 的生产管线。You cannot manage a large video dataset and training run.

最小上手Minimum setup

  1. 按 README 安装环境并下载 VAE/DiT 权重。Start with the inference example, not training.
  2. 跑官方文生视频最小示例,确认分辨率、帧数与显存。Run a short prompt and record the compute.
  3. 用 10–20 条自己的视频做微调或推理对比,记录吞吐与失败模式。Read the data-cleaning recipe before attempting a fine-tune.

依赖与成本Dependencies and cost

CUDA GPU;推理 24GB+ 显存;训练需要多卡与大数据。Check runtime, model weights and external service dependencies in the README.

许可与使用边界License and usage boundaries

代码 Apache-2.0;模型权重与训练数据另计。Code is Apache-2.0; model weights, training data and generated content may have separate terms — check each before commercial use.

开源不等于可商用:GPL / AGPL 有传染性;代码许可、模型许可、生成内容许可要分开看。上线前读仓库 LICENSE 与模型卡,必要时让法务确认。Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.

替代与相邻Alternatives and neighbors

  • Wan2.1 — 特定场景Niche,开源视频生成模型与推理代码,支持文生视频、图生视频与多尺寸。Open-source video generation models and inference code for text-to-video, image-to-video and multiple resolutions.
  • HunyuanVideo — 特定场景Niche,腾讯混元的开源视频生成模型与推理代码,支持文本/图像到视频。Tencent Hunyuan’s open video generation models and inference code for text-to-video and image-to-video.
  • CogVideo — 生产可用Production,智谱 CogVideoX 系列视频生成模型与推理代码,支持文本/图像到视频。Zhipu’s CogVideoX family of video generation models and inference code for text-to-video and image-to-video.

下一步Next steps

  • 打开 GitHub,先读 README、LICENSE、最近 release 与 issue。Open GitHub and read the README, LICENSE, latest release and issues first.
  • 按“部署依赖 / 显存 / 数据 / 网络 / 权限”列一张上手清单。Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
  • 用一个小样本跑通,再决定是否进生产;不要直接上生产数据。Run a small sample first, then decide on production; never start with production data.

GitHub 仓库 ↗GitHub repository ↗ 文档 ↗Docs ↗ 加入对比Add to compare

快照口径:stars / forks / language / license / pushed_at 来自 GitHub API 2026-11-20 快照;之后的变化没有回写。标签与“适合 / 不适合”是编辑判断,不是 GitHub 元数据。Snapshot: stars / forks / language / license / pushed_at come from the GitHub API snapshot on 2026-11-20; later changes are not written back. Tags and “fit / not fit” are editorial judgments, not GitHub metadata.
不背书:本站只做索引与风险提示,不审计代码、不保证安全、不替你做许可判断。仓库脚本与模型权重请自行审查。No endorsement: this site only indexes and flags risks; it does not audit code, guarantee security or make license decisions for you. Review repository scripts and model weights yourself.