Documentation Index
Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
Use this file to discover all available pages before exploring further.
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
Overview
The VOIDQuadmaskPreprocess node prepares a mask for VOID inpainting by converting it into a special four-level “quadmask.” It takes an input mask, optionally dilates the primary region, then quantizes the mask values into four distinct levels representing different semantic regions (primary object, overlap, affected area, and background). Finally, it inverts and normalizes the mask so the output values are in the range [0, 1], where 1.0 indicates the area to remove and 0.0 indicates the area to keep.Inputs
| Parameter | Data Type | Required | Range | Description |
|---|---|---|---|---|
mask | MASK | Yes | N/A | The input mask to be preprocessed. |
dilate_width | INT | No | 0 to 50 (step: 1) | Dilation radius for the primary mask region. A value of 0 means no dilation is applied. (default: 0) |
Outputs
| Output Name | Data Type | Description |
|---|---|---|
quadmask | MASK | The preprocessed quadmask with values in [0, 1], representing four discrete levels: 1.0 (primary object to remove), ~0.75 (overlap of primary and affected), ~0.50 (affected region), and 0.0 (background to keep). |
Source fingerprint (SHA-256):
a972ff74686baaa3a3659a74517d3b6f7335e8f62d09be9329d0e71d1fad137a