Kandinsky ImageSR 2.0

KandinskyLab GitHub HF Demo

Kandinsky ImageSR 2.0 (Diffusers)

Kandinsky ImageSR 2.0 in the native Diffusers format. One transformer enhances an image at its original resolution (Γ—1) or upscales it Γ—2 or Γ—4 in a single flow step. Creativity levels 0–8 trade fidelity for synthesized detail; level 4 is the default.

The weights are the same as in kandinskylab/Kandinsky-ImageSR-2.0; only the configs differ.

import torch
from diffusers import KandinskyImageSRPipeline
from diffusers.utils import load_image

pipe = KandinskyImageSRPipeline.from_pretrained(
    "kandinskylab/Kandinsky-ImageSR-2.0-Diffusers", dtype=torch.bfloat16
).to("cuda")

image = load_image("input.png")
pipe(image, upscale_factor=4, creativity=4).images[0].save("output.png")
Scale Creativity range (t) Default (level 4)
Γ—1 0.005–0.118 0.05
Γ—2 0.07–0.30 0.15
Γ—4 0.17–0.38 0.244

Choose lower levels for fine text and details you want to preserve. Inputs are treated as sRGB.

Quantized transformer: GGUF Q8_0 β€” load it with KandinskyImageSRTransformer3DModel.from_single_file and pass the transformer to this pipeline.

The code and model use the MIT License. The bundled VAE comes from the Apache-2.0-licensed black-forest-labs/FLUX.1-schnell release.

Downloads last month
33
Safetensors
Model size
4B params
Tensor type
F32
Β·
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for kandinskylab/Kandinsky-ImageSR-2.0-Diffusers

Finetuned
(11)
this model

Collection including kandinskylab/Kandinsky-ImageSR-2.0-Diffusers