Skip to main content

🔧 Mask Fix

essentials/mask
MaskFix+

Example

JSON Example
{
  "class_type": "MaskFix+",
  "inputs": {
    "mask": [
      "node_id",
      0
    ],
    "erode_dilate": 0,
    "fill_holes": 0,
    "remove_isolated_pixels": 0,
    "smooth": 0,
    "blur": 0
  }
}

This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.

Inputs

NameTypeStatusConstraintsDefault
maskMASKrequired--
erode_dilateINTrequiredmin: -256, max: 256, step: 10
fill_holesINTrequiredmin: 0, max: 128, step: 10
remove_isolated_pixelsINTrequiredmin: 0, max: 32, step: 10
smoothINTrequiredmin: 0, max: 256, step: 10
blurINTrequiredmin: 0, max: 256, step: 10

Outputs

IndexNameTypeIs ListConnection Reference
0MASKMASKNo["{node_id}", 0]
How to connect to these outputs

To connect another node's input to an output from this node, use the connection reference format:

["node_id", output_index]

Where node_id is the ID of this MaskFix+ node in your workflow, and output_index is the index from the table above.

Example

If this node has ID "5" in your workflow:

  • MASK (MASK): ["5", 0]
Was this page helpful?