ComfyUI Node

Quality Gate

Emit needs_upscale=True when quality_score < threshold.

By parametricparadigm·Created 4 days ago·Updated about 3 hours ago· 1
Quality Gate
  • image
  • needs_upscale
  • image
◄quality_score0.50►
◄threshold0.50►
CategoryParametric/Image

Inputs (3)

NameTypeDefaultDescription
imageIMAGEThe input image.
quality_scoreFLOAT0.500–1Quality score. From 0 to 1. Default 0.5.
thresholdFLOAT0.500–1The cut-off value. From 0 to 1. Default 0.5.

Outputs (2)

NameTypeDescription
needs_upscaleBOOLEAN—
imageIMAGE—