ComfyUI Node

Distance

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

By CoiiChan·Created about a year ago·Updated about a year ago· 2
Distance
  • imga
  • imgb
  • IMAGE
formularesult = np.sqrt(np.sum((imga - imgb) ** 2, axis=-1))
CategoryFunctionAsTexture

Inputs (3)

NameTypeDefaultDescription
formulaSTRINGresult = np.sqrt(np.sum((imga - imgb) ** 2, axis=-1))
imgaoptIMAGEOptional ,Reference size ,Default =(1,512,512,3)
imgboptIMAGEOptional

Outputs (1)

NameTypeDescription
IMAGEIMAGE