> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# InvertMask - ComfyUI Built-in Node Documentation

> Complete documentation for the InvertMask node in ComfyUI. Learn its inputs, outputs, parameters and usage.

反转遮罩节点旨在反转给定遮罩的值，有效地翻转遮罩和未遮罩区域。这个操作在图像处理任务中是基础性的，当需要在前景和背景之间切换兴趣焦点时。

## 输入

| 参数名称 | 数据类型 | 作用                               |
| ---- | ---- | -------------------------------- |
| `遮罩` | MASK | 输入遮罩，用于反转。它对于确定在反转过程中要翻转的区域至关重要。 |

## 输出

| 参数名称 | 数据类型 | 作用                              |
| ---- | ---- | ------------------------------- |
| `遮罩` | MASK | 输出是输入遮罩的反转版本，先前的遮罩区域变为未遮罩，反之亦然。 |

***
