Image-to-Image
Diffusers
Safetensors
KandinskyImageSRPipeline
super-resolution
image-super-resolution
kandinsky
Instructions to use kandinskylab/Kandinsky-ImageSR-2.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use kandinskylab/Kandinsky-ImageSR-2.0 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-ImageSR-2.0", 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
Upload private baked MS3 step-5000 Diffusers evaluation bundle
#2
by Riko0 - opened
README.md
CHANGED
|
@@ -21,7 +21,7 @@ import torch
|
|
| 21 |
from kandinsky_image_sr import KandinskyImageSRPipeline
|
| 22 |
|
| 23 |
pipe = KandinskyImageSRPipeline.from_pretrained(
|
| 24 |
-
"
|
| 25 |
).to("cuda")
|
| 26 |
image = pipe("input.png", upscale_factor=4, one_step_t=0.244).images[0]
|
| 27 |
```
|
|
|
|
| 21 |
from kandinsky_image_sr import KandinskyImageSRPipeline
|
| 22 |
|
| 23 |
pipe = KandinskyImageSRPipeline.from_pretrained(
|
| 24 |
+
"kandinskylab/Kandinsky-ImageSR-2.0", dtype=torch.bfloat16
|
| 25 |
).to("cuda")
|
| 26 |
image = pipe("input.png", upscale_factor=4, one_step_t=0.244).images[0]
|
| 27 |
```
|