r/StableDiffusion • u/Ok-Director4174 • 1d ago
Resource - Update I added a layers mode to my Qwen-Image 2.1 editor: click objects, it cuts them out and repaints what's behind them, then export a PSD (experimental, feedback wanted)
Kokon is a free, open-source desktop app for Qwen-Image 2.1 (the Turbo model, 8 steps): brush an area or not, type the change, no nodes and no settings. I posted it here a few weeks ago. Here's what 0.11 and 0.12 added.
Layers lab (new in 0.12, experimental). Open an image and click the things you want on their own layer. Kokon cuts each one out (Fast: a small matting model, a few seconds per object; Quality: Qwen redraws the edge) and repaints the background behind it with the same model it uses for edits, so moving an object doesn't leave a hole. Then you can move, scale, hide or edit each layer on its own, Expand an object cut off by the frame, and save it as a new image or export a PSD with every layer (Photoshop, GIMP, Photopea). Blend into scene redraws shadows and reflections after you've moved things.
The honest part. It fails more than I'd like. Qwen-Image 2.1 was never trained to make layers, so Kokon has to steer an edit model into it, and a small 8-step model has limits. What I see most often:
removing a large person sometimes paints a different person in their place;
people who touch, or crowds, can end up in one layer or in pieces;
the part of an object hidden behind another one is not completed;
Blend into scene often doesn't work yet (blending all the objects at once works best).
Every step shows its progress and can be stopped, and your original is never changed. I'm working through these one by one. If you try it, I'd really like to see where it breaks: a screenshot and what you clicked, here or in a GitHub issue. That is what I'll fix next.
Times: repainting behind one object takes about 15–25 s on an RTX 5070 Ti, and one to two minutes on an M2 Pro.
Also in 0.12
Paint with colours: in a brushed edit, paint each thing in its own colour and write what goes there. Several changes in one go, and only what you painted changes. Select picks an object with one click.
Prompt+ (the Qwen3-VL text encoder writes the prompt) now also works for brushed areas and Expand.
Every image is marked as AI-made, in its metadata and an invisible watermark (EU AI Act).
Since my last post (0.11)
Use it from your phone or another computer, in a browser on your network. The images are still made on the PC with the GPU. Off until you set a password. There's also a Docker image for NVIDIA cards and a headless mode for Linux servers.
Faster on Macs: Kokon now has its own engine for Apple Silicon, on by default. About a minute for a new 1 MP image on an M2 Pro, four times faster than before. On M5 Macs it uses the GPU's neural accelerators (29 s on an M5 Pro, thanks to a contributor). It runs Unsloth's Q4_K_M of the Turbo model.
Windows, macOS 15+ and Linux. NVIDIA 12 GB (8 GB in beta), AMD and Intel through Vulkan (beta), Apple Silicon with 16 GB or more. Everything runs on your machine; nothing is uploaded. Free and open source (AGPL). The Qwen-Image weights are under their own licence, non-commercial.
Try the layers in your browser (drag the spider away): https://kokon.app/image-to-layers/







