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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | — | |
| min_sharpness | FLOAT | 500–100000 | Variance of the Laplacian (0-255 scale). Raise for crisp product shots, lower for soft looks. |
| min_brightness | FLOAT | 0.080–1 | Minimum mean luminance (0-1). |
| max_brightness | FLOAT | 0.920–1 | Maximum mean luminance (0-1). |
| max_clipped_highlights | FLOAT | 0.0500–1 | Max fraction of pixels at >= 98% luminance. |
| max_crushed_shadows | FLOAT | 0.0500–1 | Max fraction of pixels at <= 2% luminance. |
| min_contrast | FLOAT | 0.0400–0.5 | Minimum RMS contrast (std of luminance). |
| if_none_pass | COMBO | return_best | return_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)
| Name | Type | Description |
|---|---|---|
| passed | IMAGE | — |
| rejected | IMAGE | Skipped downstream (not an error) when nothing was rejected. |
| report | STRING | JSON report with metrics and reasons per image. |
| pass_count | INT | — |