dnl13 / ComfyUI-dnl13-seg

I'm working on enabling SAM-HQ and Dino for ComfyUI to easily generate masks automatically, either through automation or prompts.
18 stars 3 forks source link

[FEATURE REQUEST] - Mask_grow_shrink_factor to expand/contract in different directions #8

Open alessandroperilli opened 11 months ago

alessandroperilli commented 11 months ago

Right now, the mask_grow_shrink_factor parameter equally adds/subtracts the same amount of pixels in every direction, like a Mask Grow node.

It would be very cool if there was a more granular control and you could define an expand/shrink amount for top, bottom, left, and right.

dnl13 commented 11 months ago

Absolutely! Great idea!

However, this would also apply to every mask found using the multi-mask feature. In fact, I can imagine treating this as a separate node. This way, you could potentially use the "BatchSelector" beforehand to selectively expand a specific mask as needed.