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 text_encoder_2/config.json from ml-resources/Kandinsky-6.0-Pro-5s-Diffusers: direct link, hf CLI and curl.
- Browser
- Download file 944 Bytes
-
https://huggingface.co/ml-resources/Kandinsky-6.0-Pro-5s-Diffusers/resolve/main/text_encoder_2/config.json
- Command line
-
hf download hf://ml-resources/Kandinsky-6.0-Pro-5s-Diffusers/text_encoder_2/config.json
-
curl -L -o config.json https://huggingface.co/ml-resources/Kandinsky-6.0-Pro-5s-Diffusers/resolve/main/text_encoder_2/config.json
944 Bytes
| { | |
| "add_cross_attention": false, | |
| "architectures": [ | |
| "CLIPTextModel" | |
| ], | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 0, | |
| "cross_attention_hidden_size": null, | |
| "decoder_start_token_id": null, | |
| "dropout": 0.0, | |
| "dtype": "float32", | |
| "eos_token_id": 2, | |
| "finetuning_task": null, | |
| "hidden_act": "quick_gelu", | |
| "hidden_size": 768, | |
| "initializer_factor": 1.0, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "is_decoder": false, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 77, | |
| "model_type": "clip_text_model", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 1, | |
| "prefix": null, | |
| "projection_dim": 768, | |
| "pruned_heads": {}, | |
| "sep_token_id": null, | |
| "task_specific_params": null, | |
| "tie_encoder_decoder": false, | |
| "tie_word_embeddings": true, | |
| "tokenizer_class": null, | |
| "torchscript": false, | |
| "transformers_version": "5.14.1", | |
| "use_bfloat16": false, | |
| "vocab_size": 49408 | |
| } | |