Kandinsky Lab's ImageSR 2.0 Upscales Images to 4K in One Step
Kandinsky Lab drops a 4B-parameter single-step diffusion upscaler under MIT license that turns 720p into 2K in seconds on consumer GPUs.
Takeaways
- Kandinsky-ImageSR-2.0 is a 4B-parameter single-step diffusion super-resolution model released under MIT license.
- One transformer handles x1 enhancement plus x2 and x4 upscaling with pre-baked zero-text conditioning.
- H100 benchmarks: 2.78s for 1K to 2K, 7.80s for 1K to 4K, 37.5s for 2K to 8K.
- Compiled x4 inference peaks at 9.35 GiB VRAM, fitting on consumer GPUs like the 4090.
- Tiled pipeline with Hanning-window blending and a 0-8 creativity slider for detail control.
- GitHub, ComfyUI node, GGUF and INT8/W4A8 quantizations already available.
Kandinsky Lab has released ImageSR 2.0 weights for native-resolution enhancement and 2× or 4× upscaling. The model targets a common constraint in generative pipelines: enlarging diffusion outputs or reference frames without running a slow, multi-step restoration process.
The Diffusers-compatible release uses a 4-billion-parameter transformer in BF16, a 16-bit numerical format supported by recent GPUs. One set of weights handles all three scale modes. Instead of iterating through a denoising schedule, the model makes one denoising prediction for each image tile.
One model, three scales
ImageSR 2.0 removes the text encoder and substitutes compact per-timestep Safetensors tables for the text conditioning used by 50 cross-attention layers. The tables contain precomputed zero-text conditioning, which removes text-encoding overhead and makes inference image-driven and deterministic for a chosen timestep.
- 1× enhancement: Cleans an image without changing its dimensions.
- 2× upscaling: Doubles width and height, producing four times as many pixels.
- 4× upscaling: Quadruples width and height, producing 16 times as many pixels.
One step meets the stopwatch
The project reports the following BF16 latency measurements on an NVIDIA H100:
| Input | Scale | Output | Time |
|---|---|---|---|
| 1024 × 1024 | 2× | 2048 × 2048 | 2.78 seconds |
| 1024 × 1024 | 4× | 4096 × 4096 | 7.80 seconds |
| 2048 × 2048 | 4× | 8192 × 8192 | 37.5 seconds |
Compiling the diffusion-transformer blocks and VAE decoder, then enabling FlashAttention-3, reduces the reported 1024-to-4096 run to about four seconds. That configuration peaked at 9.35 GiB of PyTorch-managed VRAM, suggesting it can fit on a 24 GB RTX 4090 or 16 GB RTX 5080. CUDA context, compilation workspaces, and other process memory can raise total usage beyond PyTorch’s reported figure.
The compiled 2048-to-8192 benchmark took 19.56 seconds on one H100 and 11.88 seconds on two H100s. These measurements come from project testing, so production latency will vary with GPU architecture, PyTorch version, attention backend, compilation overhead, and input dimensions.
Tiles make 8K manageable
The pipeline processes 1024 × 1024 output tiles and blends overlapping regions with boundary-aware Hanning windows. An 8192 × 8192 result uses an 11 × 11 grid because adjacent tiles overlap. This design bounds per-pass memory use while reducing visible seams between tiles.
Inputs smaller than the required tile size receive replicate padding, which extends their edge pixels outward. The pipeline crops the completed result back to the requested dimensions, preserving the exact output size.
The API stays compact
The Python entry point accepts a file path, scale factor, and calibrated single-step timestep:
import torch
from kandinsky_image_sr import KandinskyImageSRPipeline
pipe = KandinskyImageSRPipeline.from_pretrained(
"kandinskylab/Kandinsky-ImageSR-2.0",
dtype=torch.bfloat16,
).to("cuda")
result = pipe(
"input.png",
upscale_factor=4,
one_step_t=0.244,
)
result.images[0].save("output.png")
The example assumes the project package, a CUDA-enabled PyTorch installation, and enough local storage for the 4B-parameter checkpoint. Moving the pipeline to CUDA loads the model onto the GPU; applications with tighter memory limits can investigate the quantized variants described below.
Creativity controls reconstruction
The project maps its raw diffusion timesteps to a human-facing creativity scale from 0 through 8, with level 4 as the default. Higher settings permit more synthesized texture and can reduce fidelity to the source. Hair, edges, and letterforms may appear sharper, while small text, faces, and repeated patterns can also change.
The configuration provides 18 calibrated values, with nine each for 2× and 4× operation. Arbitrary one_step_t values fall outside the supported configuration, which limits timestep sweeps for researchers. The 1× mode provides enhancement and compression cleanup without resampling the image.
Where it fits in production
ImageSR 2.0 targets workflows that need higher resolution before delivery or before another generative stage:
- Sharpening reference frames before sending them to image-to-video models such as Wan or HunyuanVideo.
- Enlarging outputs from SDXL, FLUX, or Qwen-Image for print and high-resolution displays.
- Cleaning compression artifacts in legacy image libraries with the 1× enhancement mode.
- Adding super-resolution to ComfyUI graphs through the published registry node.
The surrounding ecosystem includes GGUF Q8_0 weights, INT8 and W4A8 variants, a hosted demo, and a sibling video model for temporal super-resolution. Quantization reduces transformer weight memory, while tile activations and VAE decoding still establish a hardware floor.
Four limits to plan around
- No prompt steering: The zero-text design prevents prompt-guided restoration available in tools such as SUPIR and SDXL tile workflows.
- Discrete timestep support: The release supports its configured creativity values rather than arbitrary raw timesteps.
- Possible invented detail: Higher creativity settings can alter text, facial features, textures, and other source-sensitive content.
- Mixed licensing: The transformer weights use the MIT license, while the bundled VAE comes from the Apache-2.0-licensed FLUX.1-schnell release. Deployments must comply with both licenses.
ImageSR 2.0 combines diffusion-based detail synthesis with one model evaluation per tile, reducing the inference burden associated with multi-step restoration. Its practical value depends on source fidelity at the selected creativity level, so evaluations should cover faces, text, fine patterns, tile boundaries, and temporal consistency when outputs feed a video pipeline.