Image-to-Video
Diffusers
Safetensors
Kandinsky6TI2VAPipeline
video
video-generation
text-to-video
audio-generation
kandinsky
Instructions to use ml-resources/Kandinsky-6.0-Pro-5s-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ml-resources/Kandinsky-6.0-Pro-5s-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("ml-resources/Kandinsky-6.0-Pro-5s-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
Download tokenizer/tokenizer_config.json from ml-resources/Kandinsky-6.0-Pro-5s-Diffusers: direct link, hf CLI and curl.
- Browser
- Download file 736 Bytes
-
https://huggingface.co/ml-resources/Kandinsky-6.0-Pro-5s-Diffusers/resolve/main/tokenizer/tokenizer_config.json
- Command line
-
hf download hf://ml-resources/Kandinsky-6.0-Pro-5s-Diffusers/tokenizer/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/ml-resources/Kandinsky-6.0-Pro-5s-Diffusers/resolve/main/tokenizer/tokenizer_config.json
736 Bytes
| { | |
| "add_prefix_space": false, | |
| "backend": "tokenizers", | |
| "bos_token": null, | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "<|im_end|>", | |
| "errors": "replace", | |
| "extra_special_tokens": [ | |
| "<|im_start|>", | |
| "<|im_end|>", | |
| "<|object_ref_start|>", | |
| "<|object_ref_end|>", | |
| "<|box_start|>", | |
| "<|box_end|>", | |
| "<|quad_start|>", | |
| "<|quad_end|>", | |
| "<|vision_start|>", | |
| "<|vision_end|>", | |
| "<|vision_pad|>", | |
| "<|image_pad|>", | |
| "<|video_pad|>" | |
| ], | |
| "is_local": true, | |
| "local_files_only": true, | |
| "model_max_length": 131072, | |
| "pad_token": "<|endoftext|>", | |
| "processor_class": "Qwen2_5_VLProcessor", | |
| "split_special_tokens": false, | |
| "tokenizer_class": "Qwen2Tokenizer", | |
| "unk_token": null | |
| } | |