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
Download SOURCE.json from kandinskylab/Kandinsky-ImageSR-2.0: direct link, hf CLI and curl.
- Browser
- Download file 362 Bytes
-
https://huggingface.co/kandinskylab/Kandinsky-ImageSR-2.0/resolve/main/SOURCE.json
- Command line
-
hf download hf://kandinskylab/Kandinsky-ImageSR-2.0/SOURCE.json
-
curl -L -o SOURCE.json https://huggingface.co/kandinskylab/Kandinsky-ImageSR-2.0/resolve/main/SOURCE.json
362 Bytes
| { | |
| "vae_source": "black-forest-labs/FLUX.1-schnell", | |
| "zero_text_baked": true, | |
| "baked_timesteps": [ | |
| 0.07, | |
| 0.086, | |
| 0.1, | |
| 0.118, | |
| 0.134, | |
| 0.15, | |
| 0.17, | |
| 0.18, | |
| 0.1885, | |
| 0.207, | |
| 0.21, | |
| 0.2255, | |
| 0.244, | |
| 0.27, | |
| 0.278, | |
| 0.3, | |
| 0.312, | |
| 0.346, | |
| 0.38 | |
| ], | |
| "bake_latent_size": 128, | |
| "bake_tile_size": 1024 | |
| } | |