Nodes/comfyui-kepri-nodes-pack/Kepri Mask Analysis (Quality Gate + Fallback)
ComfyUI Node

Kepri Mask Analysis (Quality Gate + Fallback)

A ComfyUI node in Kepri/Background with 4 inputs and 4 outputs.

By wearekhepri·Created 3 months ago·Updated about a month ago· 1
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)

NameTypeDefaultDescription
primary_maskMASK
min_area_percentFLOAT0.200–100Global 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_emptyCOMBOerrorIf the fallback mask is ALSO empty: raise a clean error (default) / return a full-frame mask / pass the empty primary through.
fallback_maskoptMASK

Outputs (4)

NameTypeDescription
maskMASK
fallback_usedBOOLEAN
area_percentFLOAT
reasonSTRING