Instructions to use kandinskylab/Kandinsky-5.0-I2I-Lite-sft-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use kandinskylab/Kandinsky-5.0-I2I-Lite-sft-Diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("kandinskylab/Kandinsky-5.0-I2I-Lite-sft-Diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -99,7 +99,7 @@ Kandinsky 5.0 Image Lite:
|
|
| 99 |
|
| 100 |
```python
|
| 101 |
import torch
|
| 102 |
-
from diffusers import Kandinsky5I2IPipeline
|
| 103 |
from diffusers.utils import load_image
|
| 104 |
# Load the pipeline
|
| 105 |
model_id = "kandinskylab/Kandinsky-5.0-I2I-Lite-sft-Diffusers"
|
|
|
|
| 99 |
|
| 100 |
```python
|
| 101 |
import torch
|
| 102 |
+
from diffusers import Kandinsky5I2IPipeline # use duffusers fork: pip install git+https://github.com/leffff/diffusers
|
| 103 |
from diffusers.utils import load_image
|
| 104 |
# Load the pipeline
|
| 105 |
model_id = "kandinskylab/Kandinsky-5.0-I2I-Lite-sft-Diffusers"
|