Instructions to use kandinskylab/Kandinsky-5.0-I2V-Pro-sft-5s-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use kandinskylab/Kandinsky-5.0-I2V-Pro-sft-5s-Diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("kandinskylab/Kandinsky-5.0-I2V-Pro-sft-5s-Diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -35,15 +35,16 @@ pipeline.enable_model_cpu_offload()
|
|
| 35 |
pipeline.transformer.compile(mode="max-autotune-no-cudagraphs", dynamic=True)
|
| 36 |
|
| 37 |
image = load_image(
|
| 38 |
-
"https://
|
| 39 |
)
|
| 40 |
|
| 41 |
height = 640
|
| 42 |
width = 640
|
| 43 |
image = image.resize((width, height))
|
| 44 |
|
| 45 |
-
prompt = "
|
| 46 |
-
|
|
|
|
| 47 |
|
| 48 |
|
| 49 |
output = pipeline(
|
|
|
|
| 35 |
pipeline.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"
|
| 39 |
)
|
| 40 |
|
| 41 |
height = 640
|
| 42 |
width = 640
|
| 43 |
image = image.resize((width, height))
|
| 44 |
|
| 45 |
+
prompt = "A pug smiles happily holding a sign that says KANDINSKY"
|
| 46 |
+
|
| 47 |
+
negative_prompt = "Static, 2D cartoon, cartoon, 2d animation, paintings, images, worst quality, low quality, ugly, deformed, walking backwards"
|
| 48 |
|
| 49 |
|
| 50 |
output = pipeline(
|