AI Image Upscaler Guide

Kandinsky Lab made Kandinsky ImageSR 2.0, an image-to-image model that takes an existing image and produces an improved or enlarged version. Enlarging an image this way is called super-resolution.

Try the browser demo

Choose an image scale

×1
Keeps the input dimensions and improves the image at its original size.
×2
Doubles the width and height.
×4
Quadruples the width and height.

Creativity accepts levels 0 to 8 at each scale. Level 4 is the default.

Compare the model files

The main model card’s Safetensors metadata lists 4B parameters.

Transformer sizes on disk
ReleaseFormatSize
BF16Diffusers bundle with Safetensors7.39 GiB
GGUF8-bit Q8_0 GGUF3.95 GiB

The transformer and pipeline use the MIT License. The bundled FLUX.1-schnell VAE comes from an Apache-2.0 release.

Run the model locally

Python

Install PyTorch for your CUDA version. Then install the ImageSR runtime wheel using the command for your chosen release.

Place your image at input.png or replace that path with your own. Set upscale_factor to 1, 2, or 4 and choose a creativity level. Each example saves the result to output.png.

BF16 loader

pip install "kandinsky-image-sr @ https://huggingface.co/kandinskylab/Kandinsky-ImageSR-2.0-GGUF/resolve/main/python/kandinsky_image_sr-1.1.1-py3-none-any.whl"
import torch
from kandinsky_image_sr import KandinskyImageSRPipeline

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

image = pipe("input.png", upscale_factor=2, creativity=4).images[0]
image.save("output.png")

GGUF loader

pip install "kandinsky-image-sr[gguf] @ https://huggingface.co/kandinskylab/Kandinsky-ImageSR-2.0-GGUF/resolve/main/python/kandinsky_image_sr-1.1.1-py3-none-any.whl"
from huggingface_hub import hf_hub_download
from kandinsky_image_sr.quantization import load_quantized_pipeline

repo = "kandinskylab/Kandinsky-ImageSR-2.0-GGUF"
weights = hf_hub_download(repo, "Kandinsky-ImageSR-2.0-x1-Q8_0.gguf")
pipe = load_quantized_pipeline(repo, weights, "cuda")

image = pipe("input.png", upscale_factor=1, creativity=4).images[0]
image.save("output.png")

ComfyUI

  1. Install the publisher’s Kandinsky ImageSR 2.0 node through ComfyUI Manager or run comfy node registry-install kandinsky-imagesr.
  2. Restart ComfyUI and open the publisher’s example workflow.
  3. Choose your release in Load Kandinsky ImageSR 2.0. The BF16 loader downloads weights on first use. For GGUF, download the Q8_0 transformer file, set model to kandinskylab/Kandinsky-ImageSR-2.0-GGUF, and point transformer_weights to the local file.

Kandinsky Lab’s benchmarks

Both cards report medians from three warmed runs on an H100 80 GB GPU. Both used a 1024 × 1024 input, 25% tile overlap, one tile per call, and creativity 4 at ×4. The runs used compiled DiT blocks, a compiled VAE decoder, and FlashAttention-3. Timing excludes PNG export.

Compiled ×4 measurements
Kandinsky Lab sourceTimePeak PyTorch VRAM
BF16 model card4.04 s9.35 GiB
GGUF model card4.25 s5.92 GiB

Sources