Please impliment the Krita Segmentation Tools into source

Dear talented Krita Team and valuable supporters of Krita,

I hope you’re doing well. I’m reaching out as a long-time donation supporter and recent full-time user of Krita, excited about the potential of the ‘Krita Segmentation Tools’ addon.

This tool, developed by Acly using a dataset from Meta (Yes… FB Meta), can none-the-less, significantly boost Krita’s functionality, positioning it as a strong competitor to PS and GIMP.

My professional experience with PS’s object select tool highlighted its efficiency in streamlining workflows, especially in pre-production. Discovering the similar capabilities in Krita’s addon was a game-changer, suggesting that Krita can provide comparable, innovative features.

However, the installation complexity of this addon on Linux poses a challenge, particularly for less tech-savvy users, potentially steering them towards more accessible options like PS in windows.

In light of this, integrating such functionalities directly into Krita could greatly benefit our community, making it more accessible and appealing, especially for those transitioning from proprietary software. This integration could mark a significant step in Krita’s evolution as a leading open-source software, enhancing its user experience without compromising its core values.

Thank you for your dedication to Krita’s development. I’m enthusiastic about its future and our community’s growth.

Best regards,

Simon

This is the link of the plugin author on the forum:
Object Selection Tools - Plugins Development - Krita Artists (krita-artists.org)

Having such a feature is great, but we cannot be sure if it complies with GPL

1 Like

Thanks for the link to that post!

I think I get what you mean. I wonder if there are some alternative frameworks to draw upon while referencing what Acly has done?

This one is Apache 2… would that be ok potentially?

-S

I don’t know. But I believe there must be a reason why the author did not do so.

Considering that the original author is still active, I think we can directly inquire with him

1 Like

True, it’d be much appreciated if @Acly was to weigh in; hopefully he’s still active on the forums.

If you’re around Acly; your powers are sought after.

EDIT 1: I sent a PM just to be sure.

EDIT 2: This page on github with the results sorted by starts is a pretty nice way to get a shortlist of probable candidates too I think…

https://github.com/search?q=image+segmentation&type=repositories&s=stars&o=desc

EDIT:

Just found FB/Meta’s github page… so yeah it is Apache 2.0 apparently… if this is the same thing use in Acly’s addon?

Wouldn’t that mean that the licensing is ok for now if in theory Acly doesn’t mind?

-S

All dependencies are either Apache-2.0 or MIT. I don’t think there is a license issue.

There is a small technical hurdle that some of them don’t compile with Krita’s MinGW/Clang pipeline on windows, but nothing insurmountable. Also, even the small network I use bumps Krita’s installation size noticeably. (GPU support is heavy, but optional).

These kind of things might weigh in on any decision to merge. Which I think usually comes down to: How many users want this? Can it attract potential new users? vs. How much effort is it to maintain in the long-term.

3 Likes

Great work on all your addons btw.

Is it possible to do what you did in your most popular addon and include the client and Internal dependency manager to grab all the heavy dependencies in the same nature? I’d gladly accept it in that form. Even if it’s an addon that’s disabled and then you need to restart and install dependencies inside Krita; I’d really benefit from it.

I followed your guide for the app image but I’m too much of a noob to know how to make a shortcut to run from the taskbar in Linux.

-S

The problem with code to be integrated into Krita is that this code must be under GPL, or at least 100% GPL-compatible. The GPL is very strict in this respect. I know that your plugin itself is therefore compatible, but I’m not sure if it still relies on components under other licenses that may not be compatible.

Michelist

1 Like

The plugin is GPL, the dependencies Apache-2.0 and MIT - both are GPL compatible. I believe Krita has such dependencies already.

@SimonH If you are asking whether the selection tools can be implemented as a Python plugin: No, it’s not possible.

1 Like

Sorry, to clarify; my idea is to have two separate components;

-The addon would just be a client/download manager to grab your latest tar, extract it and merge contents with the active instance of Krita.

-The downloaded files merged with Krita’s directory set up kind of like like appimage guide details.

Is it possible when implemented like that?

I mean I’m not necessarily against downloading a bigger Krita file if it’s got segmentation technology built in; IF it’s the only way to get it in there. I wonder how others would feel about it?

Hey guys; to aid everyone in being able to test these tools to determine for yourself the usefulness and the impact to artist workflow; I have created a script that will properly install these tools in the latest krita stable build. It’s just copy paste; enter, go get a coffee and the hard work is all done for you.

Limitation is also a plus for some like myself; it installs straight to home directory to reduce security related clicks and prompts during installation.

It’s smart so it won’t re-download if you’ve got the latest of everything; which also makes it an updater. There’s also an uninstall script for when you’re done testing it and want to remove it. So to repair your install; you’d uninstall then install again.

Credit to @Michelist for helping me find the right command for get latest stable krita.

This script took 4-6 days for me to figure out how to script; so this should tell you how keen I am to see this kind of functionality standard to Krita. @Acly I hope there is a way that people will be able to fund your work. Very important for us to support talented people making useful tools for Krita artists.

I do really think you deserve to be supported in bringing more amazing time saving technology to Krita; and I hope to see that support grow as more people use this.

-S

1 Like