Instructions to use kandinskylab/Kandinsky-S2V-1.0-Lite-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use kandinskylab/Kandinsky-S2V-1.0-Lite-Diffusers 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("kandinskylab/Kandinsky-S2V-1.0-Lite-Diffusers", 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
Kandinsky-S2V-1.0-Lite-Diffusers: from kandinskylab/Kandinsky-6.0-S2V-Lite-Diffusers@5f37fea7d6, renamed for Kandinsky S2V 1.0
bae1605 verified Download vae/config.json from kandinskylab/Kandinsky-S2V-1.0-Lite-Diffusers: direct link, hf CLI and curl.
- Browser
- Download file 718 Bytes
-
https://huggingface.co/kandinskylab/Kandinsky-S2V-1.0-Lite-Diffusers/resolve/main/vae/config.json
- Command line
-
hf download hf://kandinskylab/Kandinsky-S2V-1.0-Lite-Diffusers/vae/config.json
-
curl -L -o config.json https://huggingface.co/kandinskylab/Kandinsky-S2V-1.0-Lite-Diffusers/resolve/main/vae/config.json
718 Bytes
| { | |
| "_class_name": "AutoencoderKLHunyuanVideo", | |
| "_diffusers_version": "0.32.0.dev0", | |
| "act_fn": "silu", | |
| "block_out_channels": [ | |
| 128, | |
| 256, | |
| 512, | |
| 512 | |
| ], | |
| "down_block_types": [ | |
| "HunyuanVideoDownBlock3D", | |
| "HunyuanVideoDownBlock3D", | |
| "HunyuanVideoDownBlock3D", | |
| "HunyuanVideoDownBlock3D" | |
| ], | |
| "in_channels": 3, | |
| "latent_channels": 16, | |
| "layers_per_block": 2, | |
| "mid_block_add_attention": true, | |
| "norm_num_groups": 32, | |
| "out_channels": 3, | |
| "scaling_factor": 0.476986, | |
| "spatial_compression_ratio": 8, | |
| "temporal_compression_ratio": 4, | |
| "up_block_types": [ | |
| "HunyuanVideoUpBlock3D", | |
| "HunyuanVideoUpBlock3D", | |
| "HunyuanVideoUpBlock3D", | |
| "HunyuanVideoUpBlock3D" | |
| ] | |
| } | |