ComfyUI Node
Kepri Mask Analysis (Quality Gate + Fallback)
A ComfyUI node in Kepri/Background with 4 inputs and 4 outputs.
Kepri Mask Analysis (Quality Gate + Fallback)
- primary_mask
- fallback_mask
- mask
- fallback_used
- area_percent
- reason
◄min_area_percent0.20►
◄on_fallback_emptyerror►
CategoryKepri/Background
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| primary_mask | MASK | — | |
| min_area_percent | FLOAT | 0.200–100 | Global area threshold on the primary mask. Area < this % of the image -> switch to fallback. 0.0 = fallback only when the mask is fully empty. |
| on_fallback_empty | COMBO | error | If the fallback mask is ALSO empty: raise a clean error (default) / return a full-frame mask / pass the empty primary through. |
| fallback_maskopt | MASK | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| mask | MASK | — |
| fallback_used | BOOLEAN | — |
| area_percent | FLOAT | — |
| reason | STRING | — |