ComfyUI Node

Mask To Float

Converts a batch of masks into a list of float values. Each mask in the batch is converted to a single float value by calculating the mean of all pixel values in that mask. Works with individual masks or batches of masks. Input a mask (single or batch), and the output floats will be a list containing one float value per mask, representing the average intensity of each mask. Useful for converting mask data into weights for animation or other float-based operations.

By yvann-ba·Created 2 years ago·Updated 5 months ago· 705
Mask To Float
  • mask
  • floats
Category👁️ Yvann Nodes/🔄 Convert

Inputs (1)

NameTypeDefaultDescription
maskMASKBatch of masks to convert to mean float values

Outputs (1)

NameTypeDescription
floatsFLOATS