ComfyUI Node

if (FuncAsTexture)

A ComfyUI node in FunctionAsTexture with 5 inputs and 1 output.

By CoiiChan·Created about a year ago·Updated about a year ago· 2
if (FuncAsTexture)
  • imga
  • imgb
  • imgc
  • IMAGE
formula#if function info: if imga < constant pfloat1: use imgc else: use imgb #equalthreshold = 0.01 #lessweight = np.floor(1- imga + pfloat1- equalthreshold) lessweight = np.floor(1- imga + pfloat1) largeweight = np.ceil(imga - pfloat1) result = imgb*largeweight + imgc*lessweight
pfloat10.50
CategoryFunctionAsTexture

Inputs (5)

NameTypeDefaultDescription
formulaSTRING#if function info: if imga < constant pfloat1: use imgc else: use imgb #equalthreshold = 0.01 #lessweight = np.floor(1- imga + pfloat1- equalthreshold) lessweight = np.floor(1- imga + pfloat1) largeweight = np.ceil(imga - pfloat1) result = imgb*largeweight + imgc*lessweight
imgaoptIMAGEOptional ,Reference size ,Default =(1,512,512,3)
imgboptIMAGEDefined OutPut1,When imga >= constant pfloat1
imgcoptIMAGEDefined OutPut2,When imga < constant pfloat1
pfloat1optFLOAT0.500–1imga compare with constant pfloat1.

Outputs (1)

NameTypeDescription
IMAGEIMAGE