The InvertMask node is designed to invert the values of a given mask, effectively flipping the masked and unmasked areas. This operation is fundamental in image processing tasks where the focus of interest needs to be switched between the foreground and the background.

## Inputs

| Parameter | Description | Data Type |
| --- | --- | --- |
| `mask` | The 'mask' parameter represents the input mask to be inverted. It is crucial for determining the areas to be flipped in the inversion process. | MASK |

## Outputs

| Parameter | Description | Data Type |
| --- | --- | --- |
| `mask` | The output is an inverted version of the input mask, with previously masked areas becoming unmasked and vice versa. | MASK |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/InvertMask/en.md)
