Kandinsky ImageSR 2.0
Kandinsky Image Super-Resolution 2.0 as a Diffusers bundle. A single set of transformer
weights serves both x2 and x4. The release uses pre-baked zero-text conditioning: the
text tower and all 50 cross-attention layers are replaced by small per-timestep Safetensors
tables.
This repository contains all components needed for inference with from_pretrained.
Install
The pipeline uses the Kandinsky 5 transformer included in Diffusers 0.41 or newer.
Inference
For calibrated UI controls, creativity accepts levels 0..8 at x2 and x4; level 4
corresponds to the default t. The release accepts the defaults and the 18 creativity
values listed in its config; other raw one_step_t values are not supported.
The model processes 1024-pixel output tiles and blends overlaps with boundary-aware Hanning
windows. Small inputs are replicate-padded and cropped back to the exact requested size.
Inference time
Measured on an NVIDIA H100 80GB (SXM) with square images: bfloat16, torch 2.13.0 (CUDA 12.9),
default settings (tile_batch_size=1). Each time is the median of 5 full pipe(...) calls
after 2 warm-up calls.
Reproduce with scripts/test.py from the GitHub repository:
License
The transformer and pipeline code are released under the MIT License, consistently with
Kandinsky 5. The bundled VAE is sourced from the Apache-2.0-licensed
black-forest-labs/FLUX.1-schnell release.