工作流 /
图像 /
Bria:虚拟试穿

Bria:虚拟试穿
Bria: Virtual Try-On
使用 Bria 将单独产品图中的服装穿到照片中的人物身上。一张人物照片加上一到三件服装或配饰,即可生成穿着效果,其中面部、姿态和背景保持不变,服装会重新贴合身体。非常适合无需拍摄的时尚目录和画册。
图像
6 个节点 2 个输入 74 次使用 ComfyUI ≥ 0.42.5 ComfyUI 9 KB
节点构成
LoadImage
× 2
MarkdownNote
× 1
BriaVirtualTryOn
× 1
SaveImage
× 1
ImageCompare
× 1
官方标注的模型
BRIA
工作流 JSON
和上面「下载工作流 JSON」是同一份文件。
1{
2 "id": "60907284-662d-4c42-b157-1344088b88e5",
3 "revision": 0,
4 "last_node_id": 6,
5 "last_link_id": 5,
6 "nodes": [
7 {
8 "id": 1,
9 "type": "MarkdownNote",
10 "pos": [
11 40,
12 40
13 ],
14 "size": [
15 420,
16 540
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 0,
21 "inputs": [],
22 "outputs": [],
23 "properties": [],
24 "widgets_values": [
25 "# Bria: Virtual Try-On\n\nPut a garment from a product photo onto the person. Bria keeps the face, pose and background of the person photo and refits the garment to the body, so a catalog or flat-lay shot becomes a worn look without a photoshoot. The result comes back at roughly one megapixel.\n\n## Input Asset\n\n- [bria_tryon_man.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/bria_tryon_man.png)\n- [bria_tryon_shirt.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/bria_tryon_shirt.png)\n\n## Parameters\n\n- `garment_images` takes 1 to 3 garments or accessories worn together, and each one replaces the matching item the person already wears. The node starts with one garment socket, and the + button on the node adds more.\n- `instruction` is optional extra direction on top of Bria's built-in one, such as `keep the shirt untucked` or `roll the sleeves up`. Left empty, the garment is simply worn as shown.\n- Two garments are combined into one layered outfit, so a top and a skirt can go in together instead of running the node twice.\n- `aspect_ratio` at `auto` keeps the framing of the person photo; a fixed ratio returns 0.6 to 1 megapixel.\n- A garment photographed on a hanger or laid flat works as well as one worn by a model.\n- This node only returns an image, so it is connected to Save Image.\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
26 ],
27 "widgets_values_named": {
28 "text": "# Bria: Virtual Try-On\n\nPut a garment from a product photo onto the person. Bria keeps the face, pose and background of the person photo and refits the garment to the body, so a catalog or flat-lay shot becomes a worn look without a photoshoot. The result comes back at roughly one megapixel.\n\n## Input Asset\n\n- [bria_tryon_man.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/bria_tryon_man.png)\n- [bria_tryon_shirt.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/bria_tryon_shirt.png)\n\n## Parameters\n\n- `garment_images` takes 1 to 3 garments or accessories worn together, and each one replaces the matching item the person already wears. The node starts with one garment socket, and the + button on the node adds more.\n- `instruction` is optional extra direction on top of Bria's built-in one, such as `keep the shirt untucked` or `roll the sleeves up`. Left empty, the garment is simply worn as shown.\n- Two garments are combined into one layered outfit, so a top and a skirt can go in together instead of running the node twice.\n- `aspect_ratio` at `auto` keeps the framing of the person photo; a fixed ratio returns 0.6 to 1 megapixel.\n- A garment photographed on a hanger or laid flat works as well as one worn by a model.\n- This node only returns an image, so it is connected to Save Image.\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
29 },
30 "color": "#222",
31 "bgcolor": "#000"
32 },
33 {
34 "id": 2,
35 "type": "LoadImage",
36 "pos": [
37 500,
38 40
39 ],
40 "size": [
41 326.1653330667779,
42 181.9998904451512
43 ],
44 "flags": [],
45 "order": 1,
46 "mode": 0,
47 "inputs": [],
48 "outputs": [
49 {
50 "name": "IMAGE",
51 "type": "IMAGE",
52 "links": [
53 1,
54 5
55 ]
56 },
57 {
58 "name": "MASK",
59 "type": "MASK",
60 "links": null
61 }
62 ],
63 "properties": {
64 "Node name for S&R": "LoadImage"
65 },
66 "widgets_values": [
67 "bria_tryon_man.png",
68 "image"
69 ],
70 "widgets_values_named": {
71 "image": "bria_tryon_man.png",
72 "upload": "image"
73 }
74 },
75 {
76 "id": 3,
77 "type": "LoadImage",
78 "pos": [
79 502.8420711856701,
80 543.7503664230233
81 ],
82 "size": [
83 320,
84 370
85 ],
86 "flags": [],
87 "order": 2,
88 "mode": 0,
89 "inputs": [],
90 "outputs": [
91 {
92 "name": "IMAGE",
93 "type": "IMAGE",
94 "links": [
95 2
96 ]
97 },
98 {
99 "name": "MASK",
100 "type": "MASK",
101 "links": null
102 }
103 ],
104 "properties": {
105 "Node name for S&R": "LoadImage"
106 },
107 "widgets_values": [
108 "bria_tryon_shirt.png",
109 "image"
110 ],
111 "widgets_values_named": {
112 "image": "bria_tryon_shirt.png",
113 "upload": "image"
114 }
115 },
116 {
117 "id": 4,
118 "type": "BriaVirtualTryOn",
119 "pos": [
120 874.165333066778,
121 40
122 ],
123 "size": [
124 440,
125 420
126 ],
127 "flags": [],
128 "order": 3,
129 "mode": 0,
130 "inputs": [
131 {
132 "name": "person_image",
133 "type": "IMAGE",
134 "link": 1
135 },
136 {
137 "name": "garment_images.garment_image_1",
138 "type": "IMAGE",
139 "link": 2
140 },
141 {
142 "name": "garment_images.garment_image_2",
143 "shape": 7,
144 "type": "IMAGE",
145 "link": null
146 }
147 ],
148 "outputs": [
149 {
150 "name": "IMAGE",
151 "type": "IMAGE",
152 "links": [
153 3
154 ]
155 }
156 ],
157 "properties": {
158 "Node name for S&R": "BriaVirtualTryOn"
159 },
160 "widgets_values": [
161 "put the shirt on the person",
162 "auto",
163 42,
164 "fixed",
165 "false"
166 ],
167 "widgets_values_named": {
168 "instruction": "put the shirt on the person",
169 "aspect_ratio": "auto",
170 "seed": 42,
171 "control_after_generate": "fixed",
172 "moderation": "false"
173 },
174 "color": "#432",
175 "bgcolor": "#653"
176 },
177 {
178 "id": 5,
179 "type": "SaveImage",
180 "pos": [
181 1362.165333066778,
182 40
183 ],
184 "size": [
185 440,
186 470
187 ],
188 "flags": [],
189 "order": 4,
190 "mode": 0,
191 "inputs": [
192 {
193 "name": "images",
194 "type": "IMAGE",
195 "link": 3
196 }
197 ],
198 "outputs": [
199 {
200 "name": "images",
201 "type": "IMAGE",
202 "links": [
203 4
204 ]
205 }
206 ],
207 "properties": [],
208 "widgets_values": [
209 "api_bria_virtual_try_on"
210 ],
211 "widgets_values_named": {
212 "filename_prefix": "api_bria_virtual_try_on"
213 }
214 },
215 {
216 "id": 6,
217 "type": "ImageCompare",
218 "pos": [
219 1850.165333066778,
220 40
221 ],
222 "size": [
223 421.35818083267776,
224 476.0491445942677
225 ],
226 "flags": [],
227 "order": 5,
228 "mode": 0,
229 "inputs": [
230 {
231 "name": "image_a",
232 "shape": 7,
233 "type": "IMAGE",
234 "link": 5
235 },
236 {
237 "name": "image_b",
238 "shape": 7,
239 "type": "IMAGE",
240 "link": 4
241 }
242 ],
243 "outputs": [],
244 "properties": {
245 "Node name for S&R": "ImageCompare"
246 },
247 "widgets_values": [],
248 "widgets_values_named": []
249 }
250 ],
251 "links": [
252 [
253 3,
254 4,
255 0,
256 5,
257 0,
258 "IMAGE"
259 ],
260 [
261 1,
262 2,
263 0,
264 4,
265 0,
266 "IMAGE"
267 ],
268 [
269 2,
270 3,
271 0,
272 4,
273 1,
274 "IMAGE"
275 ],
276 [
277 4,
278 5,
279 0,
280 6,
281 1,
282 "IMAGE"
283 ],
284 [
285 5,
286 2,
287 0,
288 6,
289 0,
290 "IMAGE"
291 ]
292 ],
293 "groups": [],
294 "config": [],
295 "extra": {
296 "ds": {
297 "scale": 0.44076913214425156,
298 "offset": [
299 914.2634036097404,
300 634.6402318271216
301 ]
302 },
303 "frontendVersion": "1.57.1"
304 },
305 "version": 0.4
306}