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

# ComfyUI 中的 Bria Eraser、Expand Image 和 GenFill

> 使用 ComfyUI 中的 Bria Eraser、Expand Image 和 Generative Fill 合作节点移除对象、扩展图像，并在遮罩区域内生成内容。

Bria 的图像编辑工具以合作节点（Partner Nodes）的形式在 ComfyUI 中提供。本页介绍三种基于遮罩的编辑工作流：**Bria Eraser**（移除对象）、**Bria Expand Image**（在边界之外进行 outpaint）和 **Bria Generative Fill**（在遮罩区域内生成内容）。这三种工作流都能让编辑区域之外的所有内容保持像素级不变。

## Bria 图像编辑的优势

* **对象移除**：Bria Eraser 擦除遮罩标记的对象或区域，并用周围环境内容填充，无需提示词
* **图像扩展**：Bria Expand Image 在原始边界之外进行 outpaint，生成与图像光照、透视和纹理相匹配的周围环境
* **生成式填充**：Bria Generative Fill 根据提示词重新生成遮罩区域，以艺术指导的方式将新内容融入场景
* **像素级保留**：三种工作流都会让编辑区域之外的所有内容保持不变

## 示例输出

使用 Bria Eraser 移除对象，并对擦除区域背后的背景进行 inpainting：

![Bria：Eraser 示例输出](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/Bria_Eraser.png)

使用 Bria Expand Image 扩展图像，将场景延伸到原始边界之外：

![Bria：Expand Image 示例输出](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/Bria_Expand_Image.png)

生成式填充，根据提示词重新生成遮罩区域：

![Bria：Generative Fill 示例输出](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/Bria_GenFill.png)

## 在 ComfyUI 中使用

<Card title="Bria 图像编辑工作流" icon="diagram-project" href="/zh/tutorials/partner-nodes/bria/image-editing/workflow">
  在 ComfyUI 中本地或通过 Comfy Cloud 运行 Eraser、Expand Image 和 Generative Fill 工作流
</Card>
