SwarmUI icon indicating copy to clipboard operation
SwarmUI copied to clipboard

Segmentation Multi-Select on single line

Open re3me opened this issue 3 weeks ago • 0 comments

Feature Idea

The ability to choose what segmentation will focus on is great. Typical syntax is <segment:object-1> where the -1 tells the segment to only apply to the first segment detected in the whatever order you have chosen (largest-to-smallest, top-to-bottom, etc.).

However, a big quality of life improvement, I think, would being able list multiple segments for the process to run on. For example <segment:object-1|2|5> which would only apply to the first, second and fifth detected objects. It would save a lot of work copy/pasting and editing each segment instance. Using a | would allow the user to still input the detection threshold and strength after the segment selection. <segment:yolo-yolomodel.pt-1|2|5,0.25,0.6>

Is this feasible?

And not to be cheeky and try to slip in 2 QoL requests in a single post but.. Another QoL is adding an indicator on a segment mask output to what the segment model sees. It can take some trial and error at guessing which segment corresponds to which number if you have complex images. This at face value seems complex but I just wanted to ask.

Other

No response

re3me avatar Nov 15 '25 03:11 re3me