Custom Nodes for ComfyUI
These are a collection of nodes I have made to help me in my workflows. None of the nodes here require any external dependencies or packages that aren't part of the base ComfyUI install so they should be plug and play.
Installation
Download the node's .zip file
Extract it into your
ComfyUI\custom_nodesfolderRestart your ComfyUI server instance
Refresh the browse you are using for ComfyUI
Have fun!
Let me know if you see any issues.
Description
Unzip the contents into your ComfyUI\custom_nodes folder and restart ComfyUI and refresh your browser. The new node should show up under image in the UI. This node will take invert a MASK.
FAQ
Comments (8)
Excellent work, high quality cut-outs, a person who knows what masks are and what they are for.Just a suggestion: add a blur function so that you can soften mask contours if needed
Before converting image to mask, you could use theally's gaussian blur node to do this.
https://civitai.com/models/19625/comfyui-custom-nodes
I actually had a gaussian blur node I made in my repo, but didn't publish it because I saw that the other one existed. I went ahead and put mine up too just to avoid confusion if anyone else wanted to try it.
@xss @burnt_tongue I am well aware that a blur node can be added after, what I meant was to have it integrated into the ImageToMask node that makes the key. This is because, in this case, it is pointless to add another node just to make a function dedicated to the key. For example: if you have ten keys at ten different points in the workflow, the nodes become twenty against the ten that my suggestion allows.
@claus Normally I try to keep my nodes atomic and narrow focused but it isn't too hard to make what I think you are asking for so I threw out a new node called "Image to Contrast Mask" which includes a blur slider. See if that's what you are looking for.
@xss To tell you the truth no that is not what I meant. But I'm glad we didn't understand each other because now you've created another node that can be very useful and also has creative aspects.
is there a way to color the mask? I need blue as bg and green as foreground.
@KINGLIFER It would be possible to create a new plugin to do that. It would be re-indexing the image output and not really be a mask anymore since the mask expects monochrome.
