CivArchive
    Preview 337109

    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

    1. Download the node's .zip file

    2. Extract it into your ComfyUI\custom_nodes folder

    3. Restart your ComfyUI server instance

    4. Refresh the browse you are using for ComfyUI

    5. 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)

    clausMar 28, 2023· 3 reactions
    CivitAI

    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

    xss
    Author
    Mar 30, 2023

    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.

    clausMar 30, 2023

    @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.

    xss
    Author
    Mar 31, 2023

    @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.

    clausApr 1, 2023

    @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.

    KINGLIFERDec 7, 2023

    is there a way to color the mask? I need blue as bg and green as foreground.

    xss
    Author
    Jan 9, 2024

    @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.

    Other
    Other
    by xss

    Details

    Downloads
    6,748
    Platform
    CivitAI
    Platform Status
    Available
    Created
    3/26/2023
    Updated
    5/11/2026
    Deleted
    -

    Files

    comfyuiCustomNodesBy_invertMask.zip

    Mirrors

    Available On (1 platform)

    Same model published on other platforms. May have additional downloads or version variants.