A pruned version by lvladikov based on the latest official release from kandinskylab on 11 28 (uploaded on 11 29, MIT license): Each of the 50 Transformer blocks retains 12 of the 20 attention heads, and the feed-forward layers are halved. The model is then "healed" via distillation using the original model as the teacher (11,498 image tiles, approximately five hours on a single H200). It remains a one-step diffusion super-resolution model, supporting ×1 enhancement, ×2, and ×4. There is no random seed; the same image and parameters yield identical results. The VAE uses the ae.safetensors from FLUX.1.
Why it matters The author claims that weight memory usage is reduced by over 40% without loss of detail. There are also int8 files for 8GB GPUs and MLX nodes for Macs; simply drag them into a workflow to upscale.
Upvotes 31 · Likes 31 · Downloads 3446
Reasons
- Author claims (H200, bfloat16): Transformer weight memory is 4.45 GB vs. the official 8.01 GB; processing a single 1024 pixel tile takes 0.098 seconds vs. 0.144 seconds; a full image upscale from 2048 to 8192 at ×4 takes 28.6 seconds vs. 34.1 seconds. At ×4, PSNR is 25.3 vs. 25.6 dB, and the amount of detail at ×2 / ×4 is 1.05 / 1.09 times that of the official version.
- The int8 version is 2.17 GB: The author claims that on an RTX 4090, memory usage is 5.5 GiB vs. 7.4 GiB, and each tile takes 0.41 seconds vs. 0.48 seconds. The visual quality is indistinguishable from the full version to the naked eye, making it suitable for 8–12 GB GPUs.
- The model card includes ×4 1:1 crops of subjects such as freckles on portraits, dew on spiderwebs, fox fur, and brick walls. The detailed card contains side-by-side comparisons with the official version for each scenario.
Usage
- ComfyUI: Place kandinsky_imagesr_2.0_2.7B.safetensors in models/diffusion_models/ and the ae.safetensors from FLUX.1 in models/vae/. Copy comfyui/ComfyUI-Kandinsky-ImageSR/ into custom_nodes/ and restart. Drag in kandinsky_imagesr_2.7B_upscale_image.json. Set upscale_by to 1 / 2 / 4, and creativity to 0–8 (default 4; higher values result in more repainting). For ×8, chain two upscale nodes.
- For 8 GB GPUs, use the int8 file and the corresponding _int8 workflow (native int8 acceleration requires ComfyUI v0.27 or later). For Macs, use the MLX nodes and the _mlx workflow. You can also call ksr_torch.py directly in your own code.
Risks
- The pruned architecture is incompatible with the official loader; you must install the custom nodes from the repository, as it is not native to ComfyUI. If you installed the nodes before 11 30, you need to re-copy them to get the speed improvements.
- All speed and quality figures are self-tested by the author (16 test scenarios). The comparison between the int8 and full versions was based on only three scenarios. This entry has not been run.