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
File size: 362 Bytes
933de4f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | {
"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
}
|