Open Saquib764 opened 11 months ago
I have the same requirement as you, Have you solved it through automation?
Yes, I built a custom block using Kornia library, which works with pytorch tensor data type.
https://kornia.readthedocs.io/en/latest/morphology.html
But it would be nice to have this as native feature.
https://github.com/comfyanonymous/ComfyUI/pull/2781 This PR doesn't work (yet) for masks, but you can convert masks to images, process, and then convert back
During my work flow, I frequently dilate/erode the masks to get the desired result. Currently, this has to be done outside ComfyUI, in python. It would be convenient to support this natively to speed up experimentation.