Cosmos-Predict2:一个高性能的预训练世界基础模型家族,专为面向物理 AI 开发而打造,可生成具备物理感知能力的图像、视频和世界状态。
Cosmos-Predict2 扩散模型是一组基于扩散的世界基础模型,可根据文本、图像或视频输入生成动态、高质量的图像和视频。它可作为与世界生成相关的应用或研究的基础组件。上述模型可在 NVIDIA Open Model 许可协议下用于商业用途。
模型开发者:NVIDIA
Cosmos-Predict2 基于扩散的模型家族包括以下模型:
该模型依据 NVIDIA Open Model License 发布。如需定制许可证,请联系 cosmos-license@nvidia.com。
根据 NVIDIA Open Model License,NVIDIA 确认:
重要提示:如果您规避、禁用、削弱或绕开模型中包含的任何技术限制、安全护栏或相关安全护栏超参数、加密、安全、数字版权管理或身份验证机制,您依据 NVIDIA Open Model License Agreement 享有的权利将自动终止。
全球
Cosmos-Predict2-2B-Video2World 是一种扩散 Transformer 模型,专为在潜在空间中进行视频去噪而设计。该网络以交替排列的自注意力层、交叉注意力层和前馈层作为基本构建模块。交叉注意力层使模型能够在整个去噪过程中以输入文本为条件。在每一层之前,都会应用自适应层归一化,以注入去噪所需的时间信息。当提供图像或视频作为输入时,其潜在帧会沿时间维度与生成帧进行拼接。向条件潜在帧中添加了增广噪声,以弥合训练与推理之间的差距。
输入
输出
视频内容会将输入的文本描述可视化为一段短动画场景,并在指定的时间约束内呈现关键元素。
我们的 AI 模型经过设计和/或优化,可在 NVIDIA GPU 加速系统上运行。通过利用 NVIDIA 的硬件(例如 GPU 核心)和软件框架(例如 CUDA 库),该模型相较于仅使用 CPU 的解决方案,可实现更快的训练和推理速度。
运行时引擎:
import torch
from diffusers import Cosmos2VideoToWorldPipeline
from diffusers.utils import export_to_video, load_image
# Available checkpoints: nvidia/Cosmos-Predict2-2B-Video2World, nvidia/Cosmos-Predict2-14B-Video2World
model_id = "nvidia/Cosmos-Predict2-2B-Video2World"
pipe = Cosmos2VideoToWorldPipeline.from_pretrained(model_id, torch_dtype=torch.bfloat16)
pipe.to("cuda")
prompt = "A close-up shot captures a vibrant yellow scrubber vigorously working on a grimy plate, its bristles moving in circular motions to lift stubborn grease and food residue. The dish, once covered in remnants of a hearty meal, gradually reveals its original glossy surface. Suds form and bubble around the scrubber, creating a satisfying visual of cleanliness in progress. The sound of scrubbing fills the air, accompanied by the gentle clinking of the dish against the sink. As the scrubber continues its task, the dish transforms, gleaming under the bright kitchen lights, symbolizing the triumph of cleanliness over mess."
negative_prompt = "The video captures a series of frames showing ugly scenes, static with no motion, motion blur, over-saturation, shaky footage, low resolution, grainy texture, pixelated images, poorly lit areas, underexposed and overexposed scenes, poor color balance, washed out colors, choppy sequences, jerky movements, low frame rate, artifacting, color banding, unnatural transitions, outdated special effects, fake elements, unconvincing visuals, poorly edited content, jump cuts, visual noise, and flickering. Overall, the video is of poor quality."
image = load_image(
"https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/yellow-scrubber.png"
)
video = pipe(
image=image, prompt=prompt, negative_prompt=negative_prompt, generator=torch.Generator().manual_seed(1)
).frames[0]
export_to_video(video, "output.mp4", fps=16)支持的硬件微架构兼容性:
说明:仅测试了 BF16 精度。FP16 或 FP32 等其他精度未获官方支持。
加速引擎:PyTorch, Transformer Engine
操作系统:
系统要求与性能: 该模型需要 32.54 GB 的 GPU 显存。 下表列出了在不同 NVIDIA GPU 硬件上单次生成的推理时间:
| GPU 硬件 | 480p, 10 FPS | 480p, 16 FPS | 720p, 10 FPS | 720p, 16 FPS | 720p, 10 FPS + NATTEN | 720p, 16 FPS + NATTEN |
|---|---|---|---|---|---|---|
| H100 SXM | 25.3 s | 45.5 s | 115.1 s | 228.8 s | 56 s | 94.2 s |
| H200 SXM | 24 s | 43.7 s | 111.1 s | 221.7 s | 52.9 s | 89.4 s |
| B200 | 14.3 s | 25.5 s | 62.4 s | 123.9 s | 32.6 s | 54 s |
| H100 NVL | 34.1 s | 66.4 s | 175.5 s | 355.7 s | 79 s | 138.7 s |
| H100 PCIe | 39.5 s | 73.7 s | 187.9 s | 378.5 s | 87.4 s | 149.6 s |
| H200 NVL | 27.2 s | 51.4 s | 133.1 s | 267.2 s | 60.7 s | 104.3 s |
| L40S | 256.2 s | 480.9 s | 1281.1 s | 2567.1 s | - | - |
| RTX PRO 6000 Blackwell | 44.6 s | 84.7 s | 223.1 s | 452.2 s | - | - |
质量基准: 为便于对比评估,我们展示基于 PBench 的基准得分。
| 模型 | PBench 综合得分 | PBench 领域得分 | PBench 质量得分 |
|---|---|---|---|
| LTX-Video | 74.0 | 77.2 | 70.8 |
| HunyuanVideo-I2V | 74.0 | 77.4 | 70.6 |
| CogVideoX-5B-I2V | 74.2 | 79.5 | 69.0 |
| Wan2.1-I2V-14B-720P | 75.8 | 81.9 | 69.7 |
| Cosmos-Predict1-7B-Video2World | 73.2 | 77.4 | 69.0 |
| Cosmos-Predict1-14B-Video2World | 73.3 | 77.6 | 69.0 |
| Cosmos-Predict2-2B-Video2World | 77.2 | 84.8 | 69.6 |
| Cosmos-Predict2-14B-Video2World | 77.4 | 84.9 | 69.9 |
注意:上表中的 Cosmos-Predict2 数值均为默认变体(720p、16FPS、无稀疏性)。
所有 Predict2 变体对应的 PBench 得分请参考下表:
| 模型 | PBench 综合得分 | PBench 领域得分 | PBench 质量得分 |
|---|---|---|---|
| Cosmos-Predict2-2B, 480p, 10 fps | 76.8 | 84.3 | 69.2 |
| Cosmos-Predict2-2B, 480p, 16 fps | 76.5 | 83.6 | 69.5 |
| Cosmos-Predict2-2B, 720p, 10 fps | 76.5 | 84.1 | 68.9 |
| Cosmos-Predict2-2B, 720p, 16 fps | 77.2 | 84.8 | 69.6 |
| Cosmos-Predict2-2B, 720p, 10 fps + NATTEN | 76.3 | 83.6 | 69.0 |
| Cosmos-Predict2-2B, 720p, 16 fps + NATTEN | 77.0 | 84.5 | 69.5 |
| Cosmos-Predict2-14B, 480p, 10 fps | 77.0 | 84.2 | 69.7 |
| Cosmos-Predict2-14B, 480p, 16 fps | 77.0 | 84.0 | 70.0 |
| Cosmos-Predict2-14B, 720p, 10 fps | 77.3 | 85.0 | 69.6 |
| Cosmos-Predict2-14B, 720p, 16 fps | 77.4 | 84.9 | 69.9 |
| Cosmos-Predict2-14B, 720p, 10 fps + NATTEN | 76.7 | 84.1 | 69.4 |
| Cosmos-Predict2-14B, 720p, 16 fps + NATTEN | 77.0 | 84.2 | 69.9 |
尽管面向物理 AI 的世界生成能力已取得多方面改进,Cosmos-Predict2 的 video2world 模型在世界预测方面仍面临技术与应用层面的局限。尤其是在生成无伪影的长时长、高分辨率视频方面仍显吃力。常见问题包括时间不一致性、相机与物体运动不稳定,以及交互不够精确。这些模型在生成视频中可能无法准确表征三维空间、四维时空或物理规律,从而产生伪影,例如物体消失或变形、交互不真实、运动不合理。因此,将这些模型用于需要模拟基于物理规律的环境或复杂多智能体动态的应用场景,仍然具有挑战性。
NVIDIA 认为可信 AI 是一项共同责任,并制定了相应的政策与实践,以支持各类 AI 应用的发展。在下载或按照我们的服务条款使用时,开发者应与内部模型团队协作,确保该模型满足相关行业和用例的要求,并应对未预见的产品误用问题。
用户需对模型的输入和输出负责。用户有责任确保该模型得到安全集成,包括在部署前实施护栏以及其他安全机制。
如需了解本模型伦理考量的更详细信息,请参见下方关于可解释性、偏见、安全与保障、隐私的子卡片。请通过此处报告安全漏洞或 NVIDIA AI 关切事项。
我们珍视您,珍视这些数据,珍视它们所代表的多样性,也珍视我们所受托承担的责任。该模型及其相关数据已做到:
| 字段 | 响应 |
|---|---|
| 模型设计与测试中来自受不利影响群体 受保护类别 的参与考量: | 无 |
| 为缓解不良偏差所采取的措施: | 无 |
| 字段 | 响应 |
|---|---|
| 预期应用与领域: | 世界生成 |
| 模型类型: | Transformer |
| 预期用户: | 物理 AI 开发者 |
| 输出: | 视频 |
| 模型工作原理: | 根据视频输入生成视频 |
| 技术局限性: | 模型可能无法准确遵循视频输入。 |
| 已验证符合 NVIDIA 既定质量标准: | 是 |
| 性能指标: | 定量与定性评估 |
| 潜在已知风险: | 模型输出可生成各类视频,包括可能被视为有害、冒犯或不雅的视频。 |
| 许可证: | NVIDIA Open Model License |
| 字段 | 响应 |
|---|---|
| 可生成或可逆向工程得到的个人信息? | 暂无已知 |
| 创建该模型时是否使用了受保护类别数据? | 暂无已知 |
| 是否就所使用的任何个人数据获得了同意? | 暂无已知 |
| 数据集多久审查一次? | 发布前 |
| 用于训练的所有数据集是否均具备来源可溯性? | 是 |
| 数据标注(注释、元数据)是否符合隐私法律法规? | 是 |
| 如数据主体提出更正或删除数据的请求,数据是否已符合此类请求? | 不适用 |
| 适用的隐私政策 | https://www.nvidia.com/en-us/about-nvidia/privacy-policy/ |
| 字段 | 响应 |
|---|---|
| 模型应用场景: | 世界生成 |
| 请描述其对生命安全的关键影响(如有)。 | 暂无已知 |
| 使用场景限制: | NVIDIA Open Model License |
| 模型与数据集限制: | 已应用最小权限原则(PoLP),以限制数据集生成与模型开发的访问权限。相关限制措施会约束训练期间的数据集访问,并遵守数据集许可约束。模型检查点已在 Hugging Face 上提供,未来也可能在云服务商的模型目录中提供。 |