ComfyPilotComfyPilot
工作流 / 视频工具 / 替换背景: Bria
替换背景: Bria

替换背景: Bria

Replace Background: Bria

上传视频和背景图片。检测主要主体,并用提供的图片替换原始背景。适用于内容创作、虚拟制作和视频项目中的背景清理。

视频工具 4 个节点 2 个输入 11 次使用 ComfyUI ≥ 0.24.1 ComfyUI 4 KB

下载工作流 JSON 查看官方来源

下载后把文件拖进 ComfyUI 窗口即可打开。

节点构成

BriaVideoReplaceBackground × 1
LoadVideo × 1
SaveVideo × 1
LoadImage × 1

官方标注的模型

BRIA

工作流 JSON

和上面「下载工作流 JSON」是同一份文件。

1{
2 "id": "fec79b8a-cef0-4761-8db4-543eea16093c",
3 "revision": 0,
4 "last_node_id": 11,
5 "last_link_id": 9,
6 "nodes": [
7 {
8 "id": 3,
9 "type": "BriaVideoReplaceBackground",
10 "pos": [
11 900,
12 3560
13 ],
14 "size": [
15 399.984375,
16 219.984375
17 ],
18 "flags": [],
19 "order": 2,
20 "mode": 0,
21 "inputs": [
22 {
23 "name": "video",
24 "type": "VIDEO",
25 "link": 1
26 },
27 {
28 "name": "background_image",
29 "shape": 7,
30 "type": "IMAGE",
31 "link": 5
32 },
33 {
34 "name": "background_video",
35 "shape": 7,
36 "type": "VIDEO",
37 "link": null
38 }
39 ],
40 "outputs": [
41 {
42 "name": "VIDEO",
43 "type": "VIDEO",
44 "links": [
45 3
46 ]
47 }
48 ],
49 "properties": {
50 "cnr_id": "comfy-core",
51 "ver": "0.24.0",
52 "Node name for S&R": "BriaVideoReplaceBackground"
53 },
54 "widgets_values": [
55 1664417559,
56 "randomize"
57 ],
58 "color": "#432",
59 "bgcolor": "#653"
60 },
61 {
62 "id": 4,
63 "type": "LoadVideo",
64 "pos": [
65 540,
66 3550
67 ],
68 "size": [
69 279.984375,
70 379.984375
71 ],
72 "flags": [],
73 "order": 0,
74 "mode": 0,
75 "inputs": [],
76 "outputs": [
77 {
78 "name": "VIDEO",
79 "type": "VIDEO",
80 "links": [
81 1
82 ]
83 }
84 ],
85 "properties": {
86 "cnr_id": "comfy-core",
87 "ver": "0.24.0",
88 "Node name for S&R": "LoadVideo"
89 },
90 "widgets_values": [
91 "stained_window_vintage_woman.mp4",
92 "image"
93 ]
94 },
95 {
96 "id": 6,
97 "type": "SaveVideo",
98 "pos": [
99 1340,
100 3540
101 ],
102 "size": [
103 499.984375,
104 529.984375
105 ],
106 "flags": [],
107 "order": 3,
108 "mode": 0,
109 "inputs": [
110 {
111 "name": "video",
112 "type": "VIDEO",
113 "link": 3
114 }
115 ],
116 "outputs": [],
117 "properties": {
118 "cnr_id": "comfy-core",
119 "ver": "0.24.0",
120 "Node name for S&R": "SaveVideo"
121 },
122 "widgets_values": [
123 "video/ComfyUI",
124 "auto",
125 "auto"
126 ]
127 },
128 {
129 "id": 8,
130 "type": "LoadImage",
131 "pos": [
132 530,
133 3990
134 ],
135 "size": [
136 289.984375,
137 369.984375
138 ],
139 "flags": [],
140 "order": 1,
141 "mode": 0,
142 "inputs": [],
143 "outputs": [
144 {
145 "name": "IMAGE",
146 "type": "IMAGE",
147 "links": [
148 5
149 ]
150 },
151 {
152 "name": "MASK",
153 "type": "MASK",
154 "links": null
155 }
156 ],
157 "properties": {
158 "cnr_id": "comfy-core",
159 "ver": "0.24.0",
160 "Node name for S&R": "LoadImage"
161 },
162 "widgets_values": [
163 "gothic_hall_light_rays.png",
164 "image"
165 ]
166 }
167 ],
168 "links": [
169 [
170 1,
171 4,
172 0,
173 3,
174 0,
175 "VIDEO"
176 ],
177 [
178 3,
179 3,
180 0,
181 6,
182 0,
183 "VIDEO"
184 ],
185 [
186 5,
187 8,
188 0,
189 3,
190 1,
191 "IMAGE"
192 ]
193 ],
194 "groups": [],
195 "config": [],
196 "extra": {
197 "ds": {
198 "scale": 0.6379754989573092,
199 "offset": [
200 945.7197558917596,
201 -2940.8643907617625
202 ]
203 },
204 "frontendVersion": "1.45.15",
205 "VHS_latentpreview": false,
206 "VHS_latentpreviewrate": 0,
207 "VHS_MetadataImage": true,
208 "VHS_KeepIntermediate": true
209 },
210 "version": 0.4
211}