概述
这一点之所以重要,是因为其论文和公开权重详细展示了数据筛选和分阶段训练如何将图像生成器转变为视频生成器,并且它成为了相机控制和 3D 研究的基础。
主要要点
- Stable Video Diffusion 是 Stability AI 于 2023 年 11 月 21 日发布的开放权重图像转视频模型,提供 576x1024 分辨率的 14 帧和 25 帧版本。
- 它在 Stable Diffusion 2.1 图像模型的基础上增加了时间卷积层和注意力层,并在视频数据上对整个网络进行了微调。
- 其论文基于从约 5.8 亿个片段中筛选出的 1.52 亿个精选片段进行训练,筛选过程使用了剪辑检测、光流、OCR 和 CLIP 评分。
- 模型卡片列出了最长约四秒的片段,不支持文本控制,且在人脸、人物和可读文本方面存在弱点。
- 当前的 Stability AI 社区许可证仅允许年营收低于 100 万美元的组织进行商业使用。
深入探讨
Stable Video Diffusion is a family of video generation models from Stability AI, the company behind Stable Diffusion. The publicly released checkpoints are image-to-video models: given one still picture, they generate a short video that starts from that picture and adds motion. The original SVD checkpoint produces 14 frames, and SVD-XT, finetuned from it, produces 25 frames at 576x1024 pixels. Stability AI announced the models on November 21, 2023 as a research preview, saying they were not yet intended for real-world or commercial applications, and published code on GitHub, weights on Hugging Face, and a paper on arXiv.
To understand how it works, start with diffusion. A diffusion model is trained by taking real data, adding random noise in many small steps, and teaching a neural network to predict and remove that noise. To generate something new, the model starts from pure noise and removes it step by step until a clean sample remains. A latent diffusion model does this not on raw pixels but in a compressed space produced by an autoencoder, a network that squeezes an image into a smaller grid of numbers, called latents, and can expand it back. Working in this smaller space is what made Stable Diffusion practical on ordinary GPUs.
SVD extends that idea from images to video. The paper, by Andreas Blattmann and colleagues, starts from the Stable Diffusion 2.1 image model and inserts temporal layers, a temporal convolution and a temporal attention layer after every spatial layer, so the network can relate each frame to the others. The whole network is then trained on video. In the image-to-video version, the input picture is used as conditioning: it guides every denoising step so the clip stays consistent with it. Extra inputs, which the paper calls micro-conditioning, tell the model the target frame rate and, in the released pipeline, how much motion to produce. A decoder finetuned for temporal consistency turns the final latents back into frames.
The paper's main contribution is a recipe in three stages. Stage one is ordinary text-to-image pretraining, inherited from Stable Diffusion. Stage two is video pretraining on a large, filtered dataset at low resolution: 14 frames at 256x384 for 150,000 iterations. Stage three is finetuning on a smaller, high-quality video set at higher resolution. The authors built a Large Video Dataset of about 580 million annotated clips, roughly 212 years of footage, then filtered it to 152 million clips. Filtering removed scene cuts with a cut detector, nearly static clips using optical flow, clips heavy with on-screen text using optical character recognition, and low-quality clips using CLIP-based aesthetic and text-image similarity scores. Captions came from an image captioner, a video captioner and a language model that merged the two. The authors chose the filtering thresholds using human preference ratings and argue that a well-curated pretraining set is essential for high-quality video.
On results, the paper reports a zero-shot Fréchet Video Distance of 242.02 on the UCF-101 benchmark, lower and therefore better than 355.20 for PYOCO and 367.23 for Make-A-Video. The Hugging Face model card states that human voters preferred SVD image-to-video over the commercial tools Runway GEN-2 and PikaLabs for video quality at the time. The paper also showed SVD as a general motion prior: it could be adapted with camera-motion LoRA modules, small add-on weight updates that steer motion, and finetuned into a multi-view model that generates several views of an object at once. Stability AI later built SV3D, published in March 2024, on the same idea, generating orbital videos around an object from a single image for 3D reconstruction.
Compared with alternatives, SVD sits between closed commercial video generators and later open models. Closed services such as Runway's GEN-2 offered text prompts and web interfaces, while SVD offered downloadable weights that researchers could inspect, finetune and run locally. Its main limits relative to newer systems are length and control. The model card lists clips of up to about four seconds, outputs that may show little motion or only slow camera pans, no control through text in the released image-to-video checkpoints, faces and people that may not render properly, and no legible text. The autoencoder is lossy, so fine detail can be lost.
Licensing needs attention. The SVD-XT repository now carries the Stability AI Community License, last updated July 5, 2024. It allows commercial use after registering with Stability AI, but the license terminates for organizations whose annual revenue exceeds US$1 million, which then need a separate license. It also requires a "Powered by Stability AI" notice and bars using the model or its outputs to build or improve other foundation generative models. The model card lists generating factual representations of real people or events as out of scope.
In practice, SVD runs in the diffusers library with a few lines of Python. The diffusers guide shows SVD-XT loaded in 16-bit precision and says that model offloading, feed-forward chunking and decoding one or two frames at a time can bring memory use below 8 GB of VRAM, at the cost of speed and possibly some flicker. Training is another matter: the model card reports about 200,000 A100 80 GB GPU-hours for SVD, roughly 64,000 kWh of energy and about 19,000 kg of CO2 equivalent.
04工作示例
使用 SVD-XT 从单张图像生成短视频片段
在具有 NVIDIA GPU 的计算机上安装扩散器、变压器和加速 Python 包。
从 float16 中的 stableai/stable-video-diffusion-img2vid-xt 加载 StableVideoDiffusionPipeline 并调用enable_model_cpu_offload()。
加载一张风景照片并将其大小调整为正好 1024x576 像素,使其与模型的训练分辨率相匹配。
修复随机种子,然后生成decode_chunk_size = 8的帧,并以每秒7帧的速度将它们导出到MP4。
使用相同的种子再次生成,但motion_bucket_id = 180和noise_aug_strength = 0.1,如扩散器指南中所示。
如果内存耗尽,请启用前馈分块并将decode_chunk_size降低到2。
它显示了什么
两个剪辑,每个 25 帧,大约 3.6 秒,每秒 7 帧,从同一图像开始。检查第一帧是否与输入紧密匹配,并比较两个剪辑:第二帧应该显示更多的运动并且偏离原始图片更远。
现实世界的实施
设计师通过 Hugging Face 扩散器库向 SVD-XT 检查点提供 1024x576 产品照片,并获得长达约四秒的 25 帧剪辑,显示轻柔的动作或缓慢的相机摇摄。
Stability AI 的 SV3D 在 2024 年 3 月的 arXiv 论文中进行了描述,它采用 SVD 图像到视频模型,从一张照片中生成围绕对象的轨道视频,然后使用这些视图构建 3D 模型。
SVD 论文的作者将基本模型微调为 SVD-MV,这是一种多视图生成器,在 Google 扫描对象集中的 50 个对象上得分为 0.14 LPIPS,领先于 SyncDreamer 和 Zero123XL。
研究人员将小型相机运动 LoRA 模块附加到 SVD 基础模型上,以控制平移或缩放等运动,2023 年 11 月的论文中展示了这种改编。
拥有消费级 GPU 的爱好者运行 SVD-XT,具有模型 CPU 卸载、前馈分块和小解码块大小,扩散器指南称这使内存需求低于 8 GB VRAM。
稳定视频传播的未来
SVD's influence now lies mostly in its recipe and its role as a base model rather than in its raw output quality. The November 2023 paper argued that careful data curation and a staged training schedule matter as much as architecture, and that a video model learns a general sense of motion and 3D structure that other tasks can reuse. Stability AI's own March 2024 SV3D paper followed that path, using the image-to-video model with explicit camera control to generate consistent orbital views for 3D reconstruction. Open problems visible in the model card remain active research areas across video generation: longer clips beyond a few seconds, reliable motion when the scene should move, text control in image-to-video models, correct rendering of people and faces, and legible text in frames. Evaluation is also unsettled. Metrics such as Fréchet Video Distance on UCF-101, used in the SVD paper, capture only part of what viewers care about, so human preference studies remain common. Licensing and provenance shape adoption. The Stability AI Community License, updated in July 2024, permits commercial use only below a US$1 million annual revenue threshold, and its acceptable use policy excludes some applications. Teams considering SVD should check the current license file and model card before building on it, since terms can change.
付诸实践
为什么这很重要
- 速度与规模. 视觉人工智能可以大规模自动化检查、检测和标记任务。
- 构建选择. 创意团队可以通过更少的手动修改更快地构建概念原型。
- 团队与工作流程. 操作可以使用以前难以处理的图像和视频信号。
留意
- 如果出处不明,肖像权和同意可能会成为法律风险。
- 模型性能可能因光照、人口统计和环境的不同而有所不同。
- 除非监控置信阈值,否则误报可能会被忽视。
后续步骤
- 定义精确度、召回率和错误成本的接受标准。
- 使用符合实际生产条件的数据进行测试。
- 为低置信度或高影响力的预测添加人工审核。
- 跟踪模型漂移并在相机或数据集更改后重新验证。
资料来源与延伸阅读
- arXiv (Blattmann et al., 2023)稳定的视频扩散:将潜在视频扩散模型扩展到大型数据集
- Stability AI引入稳定的视频扩散
- Hugging Face (Stability AI)stableai/stable-video-diffusion-img2vid-xt 模型卡
- Hugging Face (Stability AI)Stability AI 社区许可协议(SVD-XT 存储库)
- Hugging Face diffusers documentation稳定的视频扩散指南
- arXiv (Voleti et al., 2024)SV3D:使用潜在视频扩散从单个图像进行新颖的多视图合成和 3D 生成
不断探索
常见问题
什么是稳定视频扩散?
稳定视频扩散(SVD)是Stability AI的开放权重潜在视频扩散模型,于2023年11月发布,可将单个静止图像转换为分辨率为576x1024的14或25帧的短片。这很重要,因为它的论文和公众权重详细展示了数据管理和分阶段训练如何将图像生成器转变为视频生成器,并且它成为相机控制和 3D 研究的基础。
公共稳定视频扩散图像到视频检查点使用什么输入?
公共图像到视频检查点限制静态图像上的剪辑生成;该论文还研究了文本到视频的基础模型。
SVD 在静态图像稳定扩散架构中添加了什么来处理运动?
SVD 插入时间注意力和 3D 卷积层,使帧在时间上保持一致。
稳定视频扩散在什么样的空间中执行去噪以节省计算?
与稳定扩散一样,SVD 是一种潜在扩散模型,它以压缩的潜在表示形式工作,大大减少了计算量。
SVD 的研究发布有什么重要意义?
论文报告发布代码和权重,而检查点许可证则设置使用条款;公开可用并不意味着不受限制的商业权利。
SVD 的公共检查点通常会生成大约多少帧?
发布的 SVD 检查点会生成大约 14 到 25 帧的短片。