> ## 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 Product Holding** 接收一张人物照片以及一到三张产品照片，然后渲染出该人物手持该产品的图像。**Bria Virtual Try-On** 对服装和配饰执行同样的处理：每件单品都会替换人物原本穿着的对应单品，并重新贴合身形。

这两个节点都会保留人物的面部、姿势和背景。场景会以约 100 万像素重新渲染，因此一张手机快照加上一张产品照片，就足以在无需拍摄的情况下得到生活方式图像或产品目录效果。

它们是云端 API 节点：需要一个带有积分的 Comfy 账户，不会在本地下载任何模型文件，并返回一张图像，由你使用 Save Image 节点写出。

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

> [!TIP]
>
> **本地用户**
>
> 请确保你的 ComfyUI 已经更新。
>
> * [ComfyUI 下载](https://www.comfy.org/download)
> * [ComfyUI 更新教程](https://docs.comfy.org/zh/installation/update_comfyui.md)
>
> 本指南里的工作流可以在[工作流模板](https://docs.comfy.org/zh/interface/features/template.md)中找到。如果找不到，可能是 ComfyUI 没有更新。
>
> 如果加载工作流时有节点缺失，可能原因有：
>
> 1. 你用的不是最新版（每夜版）。
> 2. 启动时有些节点导入失败。
>
> **云端用户**
>
> * [Cloud](https://cloud.comfy.org) 会在 ComfyUI 稳定版本发布后更新。
>
> 所以，如果你发现本文档中有任何核心节点缺失，可能是因为新核心节点尚未在最新稳定版中发布。请等待下一个稳定版发布。

## 可用工作流

### 产品持握

将商品放入照片中人物的手中。该节点初始只有一个商品输入端口；节点上的加号按钮可添加端口，最多支持同一商品的三张图像，例如商品本身、其包装、另一个角度或配套物品。

![Bria: Product Holding 工作流预览](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/templates/api_bria_product_holding-1.webp)

> **[在 Comfy Cloud 上运行](https://cloud.comfy.org/?template=api_bria_product_holding\&utm_source=docs\&utm_medium=referral\&utm_campaign=bria-product-holding)**
>
> 在 Comfy Cloud 中打开

> **[下载工作流](https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_bria_product_holding.json)**
>
> 下载 JSON，或在模板库中搜索“Bria: Product Holding”

**输入素材**

> **[bria\_holding\_person.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/bria_holding_person.png)**
>
> 加载到 `person_image` 输入

> **[bria\_holding\_product.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/bria_holding_product.png)**
>
> 加载到 `product_images` 输入

### 虚拟试穿

为人物换上来自单独商品照片的服装或配饰。每个连接的物品都会替换对应的已穿物品，两件服装会组合成一套分层穿搭，因此上衣和裙子可以放在同一次运行中，而不必分两次运行。

![Bria: Virtual Try-On 工作流预览](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/templates/api_bria_virtual_try_on-1.webp)

> **[在 Comfy Cloud 上运行](https://cloud.comfy.org/?template=api_bria_virtual_try_on\&utm_source=docs\&utm_medium=referral\&utm_campaign=bria-virtual-try-on)**
>
> 在 Comfy Cloud 中打开

> **[下载工作流](https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_bria_virtual_try_on.json)**
>
> 下载 JSON，或在模板库中搜索“Bria: Virtual Try-On”

**输入素材**

> **[bria\_tryon\_man.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/bria_tryon_man.png)**
>
> 加载到 `person_image` 输入

> **[bria\_tryon\_shirt.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/bria_tryon_shirt.png)**
>
> 加载到 `garment_images` 输入

挂在衣架上或平铺拍摄的服装，与模特穿着的服装同样适用。

## 节点控制

| 控件 | 取值 | 适用节点 | 效果 |
| - | - | - | - |
| `person_image` | 一张图像 | 两个节点 | 用于放置产品或服装的照片。面部、姿态和背景保持不变 |
| `product_images` | 1 至 3 张图像 | Product Holding | 同一产品的图像。批量输入中每张图像各计一次，透明区域按白色处理 |
| `garment_images` | 1 至 3 张图像 | Virtual Try-On | 一起穿着的服装或配饰，每件替换对应的已穿戴物品 |
| `instruction` | 文本，可选 | 两个节点 | 在 Bria 内置指示之外的额外指示，例如 `hold the bag in one hand` 或 `roll the sleeves up` |
| `aspect_ratio` | `auto`、`1:1`、`2:3`、`3:2`、`3:4`、`4:3`、`4:5`、`5:4`、`9:16`、`16:9` | 两个节点 | `auto` 保留人物照片的构图。固定比例输出 0.6 至 1 百万像素，例如比例为 3:4 时输出 768x1024 |
| `seed` | 整数，默认固定 | 两个节点 | 更改它以探索相同输入下的变化 |
| `moderation` | `true`、`false` | 两个节点 | 开启视觉输出审核开关 |

## 提示词技巧

* **从空手开始。** 一张双手可见且为空的人物照片，能给模型留出放置产品的空间。握拳或被占用的手通常会导致尴尬的结果。
* **保持产品图一致。** 同一产品的 1 到 3 张图像效果最佳：正面、包装，以及一个不同角度。混入两个不同的产品会分裂渲染结果。
* **先将 `instruction` 留空。** 内置的指令能处理大多数情况。只有针对特定姿势或面部时，才添加一行说明，例如 `hold the bag in one hand` 或 `face the label to the camera`。
* **使用服装单品图，而非整套搭配。** 参与重新贴合的，是单件衣物在衣架上或平铺拍摄的照片。一张图像里的完整造型往往会替换掉超出预期的内容。
* **在一次运行中叠加衣物。** 两件连接式衣物会组成一套搭配，从而让各件之间的光照和贴合度保持一致。
* **做匹配式编辑时让 `aspect_ratio` 保持 `auto`。** 它会保留原始照片的取景，因此之前和之后的画面能够对齐。

## 开始使用

1. 将 ComfyUI 更新至最新版本
2. 前往模板库，搜索 `Bria`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.