Image-to-Video
Cosmos
Diffusers
Safetensors
cosmos3_omni
nvidia
cosmos3
vllm-omni
sglang
sglang-diffusion
video-generation
Instructions to use nvidia/Cosmos3-Super-Image2Video with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Cosmos
How to use nvidia/Cosmos3-Super-Image2Video with Cosmos:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Diffusers
How to use nvidia/Cosmos3-Super-Image2Video with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("nvidia/Cosmos3-Super-Image2Video", dtype=torch.bfloat16, device_map="cuda") pipe.to("cuda") prompt = "A man with short gray hair plays a red electric guitar." image = load_image( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" ) output = pipe(image=image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
File size: 1,396 Bytes
100d2f5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | {
"_blocks_class_name": "Cosmos3OmniBlocks",
"_class_name": "Cosmos3OmniModularPipeline",
"_diffusers_version": "0.39.0.dev0",
"text_tokenizer": [
"transformers",
"Qwen2TokenizerFast",
{
"pretrained_model_name_or_path": "nvidia/Cosmos3-Super-Image2Video",
"revision": null,
"subfolder": "text_tokenizer",
"type_hint": [
"transformers",
"Qwen2TokenizerFast"
],
"variant": null
}
],
"vae": [
"diffusers",
"AutoencoderKLWan",
{
"pretrained_model_name_or_path": "nvidia/Cosmos3-Super-Image2Video",
"revision": null,
"subfolder": "vae",
"type_hint": [
"diffusers",
"AutoencoderKLWan"
],
"variant": null
}
],
"transformer": [
"diffusers",
"Cosmos3OmniTransformer",
{
"pretrained_model_name_or_path": "nvidia/Cosmos3-Super-Image2Video",
"revision": null,
"subfolder": "transformer",
"type_hint": [
"diffusers",
"Cosmos3OmniTransformer"
],
"variant": null
}
],
"scheduler": [
"diffusers",
"UniPCMultistepScheduler",
{
"pretrained_model_name_or_path": "nvidia/Cosmos3-Super-Image2Video",
"revision": null,
"subfolder": "scheduler",
"type_hint": [
"diffusers",
"UniPCMultistepScheduler"
],
"variant": null
}
]
}
|