Nodes/Production Nodes/Quality Gate
ComfyUI Node

Quality Gate

Scores every image (sharpness, exposure, clipping, contrast) without loading any model, then routes keepers to 'passed' and failures to 'rejected', with a JSON report.

By thejunglefruit·Created 22 days ago·Updated 21 days ago· 0
Quality Gate
  • images
  • passed
  • rejected
  • report
  • pass_count
◄min_sharpness50►
◄min_brightness0.08►
◄max_brightness0.92►
◄max_clipped_highlights0.050►
◄max_crushed_shadows0.050►
◄min_contrast0.040►
◄if_none_passreturn_best►
Categoryjungle_fruit/quality

Inputs (8)

NameTypeDefaultDescription
imagesIMAGE—
min_sharpnessFLOAT500–100000Variance of the Laplacian (0-255 scale). Raise for crisp product shots, lower for soft looks.
min_brightnessFLOAT0.080–1Minimum mean luminance (0-1).
max_brightnessFLOAT0.920–1Maximum mean luminance (0-1).
max_clipped_highlightsFLOAT0.0500–1Max fraction of pixels at >= 98% luminance.
max_crushed_shadowsFLOAT0.0500–1Max fraction of pixels at <= 2% luminance.
min_contrastFLOAT0.0400–0.5Minimum RMS contrast (std of luminance).
if_none_passCOMBOreturn_bestreturn_best: send the best-scoring image to 'passed' and flag it in the report. block: send nothing; nodes fed by 'passed' are skipped without error.

Outputs (4)

NameTypeDescription
passedIMAGE—
rejectedIMAGESkipped downstream (not an error) when nothing was rejected.
reportSTRINGJSON report with metrics and reasons per image.
pass_countINT—