Acly / krita-ai-tools

Krita plugin which adds selection tools to mask objects with a single click, or by drawing a bounding box.
GNU General Public License v3.0
408 stars 21 forks source link

[Feature Request] Background removal using InSPyReNet #21

Open moonwhaler opened 3 months ago

moonwhaler commented 3 months ago

I already posted this in the "Krita Diffusion" discussion (https://github.com/Acly/krita-ai-diffusion/discussions/779#discussioncomment-10098572), but maybe this kind of request is better suited here: Background removal using InSPyReNet (https://github.com/plemeri/InSPyReNet).

There's also a Comfy Node for that: https://github.com/john-mnz/ComfyUI-Inspyrenet-Rembg?tab=readme-ov-file

I am already using the "transparent background" stand-alone implementation (https://github.com/plemeri/transparent-background), but having this in Krita directly could be pretty interesting.

An implementation workflow could look like follows:

  1. Draw a rectangle around the object (...) to cut out
  2. Create a new layer which includes the cut out object - or the original layer as a new one, but with the resulting alpha mask aplied to it
sraney commented 3 months ago

I would like to see this also, I've been looking at creating an update to the workflows to include a background remover, but having it in this tool be much cleaner.