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.
Mask To Float
- mask
- floats
Category👁️ Yvann Nodes/🔄 Convert
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| mask | MASK | Batch of masks to convert to mean float values |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| floats | FLOATS | — |