Update README.md
Browse files
README.md
CHANGED
|
@@ -24,15 +24,15 @@ import torch
|
|
| 24 |
from diffusers import Kandinsky5I2VPipeline
|
| 25 |
from diffusers.utils import export_to_video, load_image
|
| 26 |
|
| 27 |
-
|
| 28 |
"kandinskylab/Kandinsky-5.0-I2V-Pro-sft-5s-Diffusers",
|
| 29 |
torch_dtype=torch.bfloat16,
|
| 30 |
)
|
| 31 |
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
|
| 37 |
image = load_image(
|
| 38 |
"https://img.freepik.com/free-photo/pug-dog-isolated-white-background_2829-11416.jpg?semt=ais_hybrid&w=740&q=80"
|
|
@@ -47,7 +47,7 @@ prompt = "A pug smiles happily holding a sign that says KANDINSKY"
|
|
| 47 |
negative_prompt = "Static, 2D cartoon, cartoon, 2d animation, paintings, images, worst quality, low quality, ugly, deformed, walking backwards"
|
| 48 |
|
| 49 |
|
| 50 |
-
output =
|
| 51 |
image=image,
|
| 52 |
prompt=prompt,
|
| 53 |
negative_prompt=negative_prompt,
|
|
@@ -86,14 +86,11 @@ Parkhomenko
|
|
| 86 |
# Citation
|
| 87 |
|
| 88 |
```
|
| 89 |
-
@misc{
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
archivePrefix={arXiv},
|
| 95 |
-
primaryClass={cs.CV},
|
| 96 |
-
url={https://arxiv.org/abs/2511.14993},
|
| 97 |
}
|
| 98 |
|
| 99 |
@misc{mikhailov2025nablanablaneighborhoodadaptiveblocklevel,
|
|
|
|
| 24 |
from diffusers import Kandinsky5I2VPipeline
|
| 25 |
from diffusers.utils import export_to_video, load_image
|
| 26 |
|
| 27 |
+
pipe = Kandinsky5I2VPipeline.from_pretrained(
|
| 28 |
"kandinskylab/Kandinsky-5.0-I2V-Pro-sft-5s-Diffusers",
|
| 29 |
torch_dtype=torch.bfloat16,
|
| 30 |
)
|
| 31 |
|
| 32 |
+
pipe = pipe.to("cuda:0")
|
| 33 |
+
pipe.transformer.set_attention_backend("flex")
|
| 34 |
+
pipe.enable_model_cpu_offload()
|
| 35 |
+
pipe.transformer.compile(mode="max-autotune-no-cudagraphs", dynamic=True)
|
| 36 |
|
| 37 |
image = load_image(
|
| 38 |
"https://img.freepik.com/free-photo/pug-dog-isolated-white-background_2829-11416.jpg?semt=ais_hybrid&w=740&q=80"
|
|
|
|
| 47 |
negative_prompt = "Static, 2D cartoon, cartoon, 2d animation, paintings, images, worst quality, low quality, ugly, deformed, walking backwards"
|
| 48 |
|
| 49 |
|
| 50 |
+
output = pipe(
|
| 51 |
image=image,
|
| 52 |
prompt=prompt,
|
| 53 |
negative_prompt=negative_prompt,
|
|
|
|
| 86 |
# Citation
|
| 87 |
|
| 88 |
```
|
| 89 |
+
@misc{kandinsky2025,
|
| 90 |
+
author = {Alexander Belykh and Alexander Varlamov and Alexey Letunovskiy and Anastasia Aliaskina and Anastasia Maltseva and Anastasiia Kargapoltseva and Andrey Shutkin and Anna Averchenkova and Anna Dmitrienko and Bulat Akhmatov and Denis Dimitrov and Denis Koposov and Denis Parkhomenko and Dmitrii and Ilya Vasiliev and Ivan Kirillov and Julia Agafonova and Kirill Chernyshev and Kormilitsyn Semen and Lev Novitskiy and Maria Kovaleva and Mikhail Mamaev and Mikhailov and Nikita Kiselev and Nikita Osterov and Nikolai Gerasimenko and Nikolai Vaulin and Olga Kim and Olga Vdovchenko and Polina Gavrilova and Polina Mikhailova and Tatiana Nikulina and Viacheslav Vasilev and Vladimir Arkhipkin and Vladimir Korviakov and Vladimir Polovnikov and Yury Kolabushin},
|
| 91 |
+
title = {Kandinsky 5.0: A family of diffusion models for Video & Image generation},
|
| 92 |
+
howpublished = {\url{https://github.com/kandinskylab/Kandinsky-5}},
|
| 93 |
+
year = 2025
|
|
|
|
|
|
|
|
|
|
| 94 |
}
|
| 95 |
|
| 96 |
@misc{mikhailov2025nablanablaneighborhoodadaptiveblocklevel,
|