> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# ComfyUI 中使用 Bria 背景移除

> 学习如何在 ComfyUI 中使用 Bria 合作伙伴节点进行图片和视频背景移除、绿幕抠像和背景替换

Bria 的 AI 背景处理模型现已通过合作伙伴节点在 ComfyUI 中使用。本文将介绍**图片背景移除**、**视频背景移除**、**透明视频背景**、**视频绿幕**和**视频背景替换**功能。

<Tip>
  使用 API 节点需要保证你已经正常登录，并在受许可的网络环境下使用，请参考[API 节点总览](/zh/tutorials/partner-nodes/overview)部分文档来了解使用 API 节点的具体使用要求。
</Tip>

<Tip>
  <Tabs>
    <Tab title="便携版或手动安装用户">
      请确保你的 ComfyUI 已经更新。

      * [ComfyUI 下载](https://www.comfy.org/download)
      * [ComfyUI 更新教程](/zh/installation/update_comfyui)

      本指南里的工作流可以在 ComfyUI 的[工作流模板](/zh/interface/features/template)中找到。如果找不到，可能是 ComfyUI 没有更新。

      如果加载工作流时有节点缺失，可能原因有：

      1. 你用的不是最新开发版（nightly）。
      2. 你用的是稳定版或桌面版（没有包含最新的更新）。
      3. 启动时有些节点导入失败。
    </Tab>

    <Tab title="桌面版或云端用户">
      * 桌面版是基于 ComfyUI 稳定版本构建的，它会在有新的桌面稳定版本发布时自动更新。
      * [Cloud](https://cloud.comfy.org) 会在 ComfyUI 稳定版本发布后更新，我们会同步更新 Cloud。

      所以，如果你发现本教程中有任何核心节点缺失，那是因为对应的节点支持还在开发中没有发布正式的稳定版，请等待下一个稳定版本发布。
    </Tab>
  </Tabs>
</Tip>

## 图片背景移除

使用 Bria 的 AI 服务移除任何图片的背景。结果将返回为带透明背景的图片。

<CardGroup cols={2}>
  <Card title="图片背景移除" icon="download" href="https://github.com/Comfy-Org/workflow_templates/blob/main/templates/utility_bria_remove_image_background.json">
    下载工作流
  </Card>

  <Card title="在 Cloud 上运行" icon="cloud" href="https://cloud.comfy.org/?template=utility_bria_remove_image_background&utm_source=docs&utm_medium=referral&utm_campaign=bria">
    在 Comfy Cloud 上试试
  </Card>
</CardGroup>

## 视频背景处理

Bria 的视频背景处理节点可以移除、替换或为视频背景应用色度键效果。输入视频时长不得超过 60 秒。

### 移除视频背景

将视频背景替换为你选择的纯色。

<CardGroup cols={2}>
  <Card title="移除背景（纯色）" icon="download" href="https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_bria_remove_video_background.json">
    下载工作流
  </Card>

  <Card title="在 Cloud 上运行" icon="cloud" href="https://cloud.comfy.org/?template=api_bria_remove_video_background&utm_source=docs&utm_medium=referral&utm_campaign=bria">
    在 Comfy Cloud 上试试
  </Card>
</CardGroup>

### 透明视频背景

移除视频背景并输出为透明背景视频。

<CardGroup cols={2}>
  <Card title="透明背景" icon="download" href="https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_bria_remove_video_background_transparent.json">
    下载工作流
  </Card>

  <Card title="在 Cloud 上运行" icon="cloud" href="https://cloud.comfy.org/?template=api_bria_remove_video_background_transparent&utm_source=docs&utm_medium=referral&utm_campaign=bria">
    在 Comfy Cloud 上试试
  </Card>
</CardGroup>

### 视频绿幕

为视频应用专业的色度键绿幕或蓝幕效果，提供多种预设选项，包括 broadcast\_green、chroma\_green 和 blue\_screen。

<CardGroup cols={2}>
  <Card title="视频绿幕" icon="download" href="https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_bria_video_green_screen.json">
    下载工作流
  </Card>

  <Card title="在 Cloud 上运行" icon="cloud" href="https://cloud.comfy.org/?template=api_bria_video_green_screen&utm_source=docs&utm_medium=referral&utm_campaign=bria">
    在 Comfy Cloud 上试试
  </Card>
</CardGroup>

### 替换视频背景

将视频背景替换为自定义图片或其他视频。

<CardGroup cols={2}>
  <Card title="替换背景" icon="download" href="https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_bria_video_replace_background.json">
    下载工作流
  </Card>

  <Card title="在 Cloud 上运行" icon="cloud" href="https://cloud.comfy.org/?template=api_bria_video_replace_background&utm_source=docs&utm_medium=referral&utm_campaign=bria">
    在 Comfy Cloud 上试试
  </Card>
</CardGroup>
