Kokon adds experimental editable layers for Qwen-Image 2.1
Reported by r/LocalLLaMA1 source ↓
Kokon version 0.12 adds a tool that selects objects in an image, separates them into layers and repaints the background behind them. Its developer says the feature is experimental and lists several known failures.
Key points
- Kokon can export separated objects and repainted backgrounds as a PSD
- Filling behind an object takes about 15–25 seconds per object on an RTX 5070 Ti, the developer says
- The developer says large-object fills can invent objects and touching people can merge or split
- Kokon is free under AGPL for Windows, macOS 15+ and Linux; model weights have a non-commercial licence
Details
Kokon’s developer describes version 0.12 as a local photo editor built around Qwen-Image 2.1 Turbo. Its Layers lab lets users click objects in an image, put them on separate layers and export a PSD. Qwen-Image 2.1 does not output layers, so Kokon uses a sequence of selection, cutout and image-editing steps.
For selection, Kokon uses MobileSAM, an ONNX model that runs on the CPU and is 44 MB. A fast CPU matting model cuts out objects; an optional quality mode asks Qwen to redraw edges such as hair and fur. Qwen then edits the masked area to fill in the background behind the object.
The developer says background filling takes about 15–25 seconds per object on an RTX 5070 Ti and one to two minutes on an M2 Pro. After objects are moved, an optional edit can create contact shadows and reflections on a separate layer. The developer says this blending often fails, and works better for whole scenes than for individual objects.
The developer reports that large-object fills can invent a replacement object, touching people can be merged or split, and hidden parts of objects are not completed. Kokon is free under the AGPL and supports Windows, macOS 15+ and Linux; NVIDIA requires 12 GB of memory, with an 8 GB beta, while AMD and Intel Vulkan support is also beta. The model weights use Qwen’s non-commercial licence.
Written from coverage as of
Stocks in this story
Change since open: 20 Nov to 21 Nov 2026
Last refresh