Krita Smart Select: AI-powered lasso selection plugin for soft object masks

Hi everyone!

I’ve been working on a Krita plugin called Krita Smart Select. It adds an AI-assisted lasso selection workflow for quickly creating soft object selections.

The idea is simple:

  1. Draw a rough lasso around the object.
  2. Click Select object with AI.
  3. The plugin creates a soft alpha selection clipped to your lasso region.

It is designed for cases where a regular lasso is too tedious, especially around soft or semi-transparent edges. In my tests it works nicely with things like hair, glass, and other objects where hard binary selection is not enough.

What it does

  • Adds a native Krita canvas tool: Smart Select
  • Uses a lasso-first workflow, so the user stays in control of the target area
  • Produces a soft alpha selection, not just a hard binary mask
  • Clips the result to the lasso region and document alpha
  • Supports Krita selection actions like replace/add/subtract/intersect
  • Runs the AI model locally

Requirements

Current release target:

  • Linux
  • Krita 5.3.1
  • NVIDIA GPU strongly recommended
  • The plugin downloads and manages its Python AI runtime/model cache automatically on first use

The current model is BiRefNet HR Matting.

Installation

Download the ZIP from the GitHub release page:

Then in Krita:

Tools -> Scripts -> Import Python Plugin

Choose the downloaded ZIP and restart Krita.

Repository

The README includes installation notes, development setup, screenshots, and documentation links.

Notes

This is still an early release, so feedback and PRs very welcome!

Thanks!

1 Like

Some before/after showcase:



2 Likes

Nice work. I wonder if one day it could be adapted to GIMP or darktable.

1 Like

Thanks!

I tried to make guided selection in C++ for Krita, but of course, due to lack of support, and it didn’t pan out, but I’m glad we have this though I’d prefer guided selection.

Thanks!
In theory, you can use the underlying model (BiRefNet) to make guided selection as well, feel free to reference my code or the Krita Vision Tools plugin by Acly
It served as a great reference for me