ComfyPilotComfyPilot
工作流 / 图像工具 / 图层分解: Seedream 5.0 Pro
图层分解: Seedream 5.0 Pro

图层分解: Seedream 5.0 Pro

Layer Decomposition: Seedream 5.0 Pro

使用 Seedream 5.0 Pro,通过一条文本指令即可将任何图像拆分为独立的、可编辑的图层——主体、产品、背景和文字。一张海报可生成10+个图层,设计级文字分离支持多语言标题和CJK字体。非常适合品牌设计、电商素材创建和布局迭代。

图像工具 9 个节点 1 个输入 65 次使用 ComfyUI ≥ 0.37.3 ComfyUI 10 KB

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

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

节点构成

LoadImage × 1
BatchImagesNode × 1
BatchMasksNode × 1
SaveImageAdvanced × 1
Note × 1
ImageCompositor × 1
JoinImageWithAlpha × 1
ByteDanceSeedreamLayerSeparationNodeV2 × 1
MarkdownNote × 1

官方标注的模型

Seedream 5.0 Pro

工作流 JSON

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

1{
2 "id": "7d136772-0647-4a55-bd62-7e9c36c41a0b",
3 "revision": 0,
4 "last_node_id": 33,
5 "last_link_id": 46,
6 "nodes": [
7 {
8 "id": 15,
9 "type": "LoadImage",
10 "pos": [
11 -2420,
12 -290
13 ],
14 "size": [
15 330,
16 410
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 0,
21 "inputs": [],
22 "outputs": [
23 {
24 "name": "IMAGE",
25 "type": "IMAGE",
26 "links": [
27 41
28 ]
29 },
30 {
31 "name": "MASK",
32 "type": "MASK",
33 "links": null
34 }
35 ],
36 "properties": {
37 "Node name for S&R": "LoadImage"
38 },
39 "widgets_values": [
40 "victory_cover.png",
41 "image"
42 ],
43 "widgets_values_named": {
44 "image": "victory_cover.png",
45 "upload": "image"
46 }
47 },
48 {
49 "id": 20,
50 "type": "BatchImagesNode",
51 "pos": [
52 -1110,
53 -290
54 ],
55 "size": [
56 230,
57 100
58 ],
59 "flags": [],
60 "order": 4,
61 "mode": 0,
62 "inputs": [
63 {
64 "label": "image0",
65 "name": "images.image0",
66 "type": "IMAGE",
67 "link": 42
68 },
69 {
70 "name": "images.image1",
71 "shape": 7,
72 "type": "IMAGE",
73 "link": 44
74 },
75 {
76 "name": "images.image2",
77 "shape": 7,
78 "type": "IMAGE",
79 "link": null
80 }
81 ],
82 "outputs": [
83 {
84 "name": "IMAGE",
85 "type": "IMAGE",
86 "links": [
87 38
88 ]
89 }
90 ],
91 "properties": {
92 "Node name for S&R": "BatchImagesNode"
93 }
94 },
95 {
96 "id": 22,
97 "type": "BatchMasksNode",
98 "pos": [
99 -1110,
100 -130
101 ],
102 "size": [
103 230,
104 100
105 ],
106 "flags": [],
107 "order": 5,
108 "mode": 0,
109 "inputs": [
110 {
111 "label": "mask0",
112 "name": "masks.mask0",
113 "type": "MASK",
114 "link": 43
115 },
116 {
117 "name": "masks.mask1",
118 "shape": 7,
119 "type": "MASK",
120 "link": 45
121 },
122 {
123 "name": "masks.mask2",
124 "shape": 7,
125 "type": "MASK",
126 "link": null
127 }
128 ],
129 "outputs": [
130 {
131 "name": "MASK",
132 "type": "MASK",
133 "links": [
134 39
135 ]
136 }
137 ],
138 "properties": {
139 "Node name for S&R": "BatchMasksNode"
140 }
141 },
142 {
143 "id": 23,
144 "type": "SaveImageAdvanced",
145 "pos": [
146 -820,
147 -270
148 ],
149 "size": [
150 460,
151 600
152 ],
153 "flags": [],
154 "order": 8,
155 "mode": 0,
156 "inputs": [
157 {
158 "name": "images",
159 "type": "IMAGE",
160 "link": 40
161 }
162 ],
163 "outputs": [
164 {
165 "name": "images",
166 "type": "IMAGE",
167 "links": null
168 }
169 ],
170 "properties": [],
171 "widgets_values": [
172 "layers/image_layer",
173 "png",
174 "8-bit",
175 "sRGB"
176 ],
177 "widgets_values_named": {
178 "filename_prefix": "layers/image_layer",
179 "format": "png",
180 "format.bit_depth": "8-bit",
181 "format.input_color_space": "sRGB"
182 }
183 },
184 {
185 "id": 26,
186 "type": "Note",
187 "pos": [
188 -1540,
189 390
190 ],
191 "size": [
192 350,
193 110
194 ],
195 "flags": [],
196 "order": 1,
197 "mode": 0,
198 "inputs": [],
199 "outputs": [],
200 "title": "Note: Edit layers",
201 "properties": [],
202 "widgets_values": [
203 "Switch to Nodes2.0 then click the `Open Compositor`"
204 ],
205 "widgets_values_named": {
206 "text": "Switch to Nodes2.0 then click the `Open Compositor`"
207 },
208 "color": "#222",
209 "bgcolor": "#000"
210 },
211 {
212 "id": 25,
213 "type": "ImageCompositor",
214 "pos": [
215 -1600,
216 -290
217 ],
218 "size": [
219 460,
220 620
221 ],
222 "flags": [],
223 "order": 6,
224 "mode": 0,
225 "inputs": [
226 {
227 "name": "layers",
228 "type": "LAYERS",
229 "link": 46
230 }
231 ],
232 "outputs": [
233 {
234 "name": "IMAGE",
235 "type": "IMAGE",
236 "links": null
237 },
238 {
239 "name": "MASK",
240 "type": "MASK",
241 "links": null
242 }
243 ],
244 "properties": {
245 "Node name for S&R": "ImageCompositor"
246 },
247 "widgets_values": [
248 []
249 ],
250 "widgets_values_named": {
251 "compositor": []
252 }
253 },
254 {
255 "id": 31,
256 "type": "JoinImageWithAlpha",
257 "pos": [
258 -1100,
259 30
260 ],
261 "size": [
262 230,
263 50
264 ],
265 "flags": [],
266 "order": 7,
267 "mode": 0,
268 "inputs": [
269 {
270 "name": "image",
271 "type": "IMAGE",
272 "link": 38
273 },
274 {
275 "name": "alpha",
276 "type": "MASK",
277 "link": 39
278 }
279 ],
280 "outputs": [
281 {
282 "name": "IMAGE",
283 "type": "IMAGE",
284 "links": [
285 40
286 ]
287 }
288 ],
289 "properties": {
290 "Node name for S&R": "JoinImageWithAlpha"
291 }
292 },
293 {
294 "id": 32,
295 "type": "ByteDanceSeedreamLayerSeparationNodeV2",
296 "pos": [
297 -2050,
298 -290
299 ],
300 "size": [
301 400,
302 380
303 ],
304 "flags": [],
305 "order": 3,
306 "mode": 0,
307 "inputs": [
308 {
309 "name": "model.image",
310 "type": "IMAGE",
311 "link": 41
312 }
313 ],
314 "outputs": [
315 {
316 "name": "base_image",
317 "type": "IMAGE",
318 "links": [
319 42
320 ]
321 },
322 {
323 "name": "base_mask",
324 "type": "MASK",
325 "links": [
326 43
327 ]
328 },
329 {
330 "name": "layers",
331 "type": "IMAGE",
332 "links": [
333 44
334 ]
335 },
336 {
337 "name": "masks",
338 "type": "MASK",
339 "links": [
340 45
341 ]
342 },
343 {
344 "name": "bboxes",
345 "type": "BOUNDING_BOX",
346 "links": null
347 },
348 {
349 "name": "layer_stack",
350 "type": "LAYERS",
351 "links": [
352 46
353 ]
354 }
355 ],
356 "properties": {
357 "Node name for S&R": "ByteDanceSeedreamLayerSeparationNodeV2"
358 },
359 "widgets_values": [
360 "seedream 5.0 flash",
361 "Separate the image into three layers: the main character and the ship; the background; text, icons, and graphic elements.",
362 "auto",
363 498392743,
364 "randomize",
365 false,
366 false,
367 "randomize",
368 "randomize"
369 ],
370 "widgets_values_named": {
371 "model": "seedream 5.0 flash",
372 "model.prompt": "Separate the image into three layers: the main character and the ship; the background; text, icons, and graphic elements.",
373 "model.size": "auto",
374 "model.seed": 498392743,
375 "control_after_generate#2": "randomize",
376 "model.watermark": false,
377 "model.crop_layers": false,
378 "control_after_generate#1": "randomize",
379 "control_after_generate": "randomize"
380 },
381 "color": "#432",
382 "bgcolor": "#653"
383 },
384 {
385 "id": 33,
386 "type": "MarkdownNote",
387 "pos": [
388 -2860,
389 -290
390 ],
391 "size": [
392 380,
393 400
394 ],
395 "flags": [],
396 "order": 2,
397 "mode": 0,
398 "inputs": [],
399 "outputs": [],
400 "properties": [],
401 "widgets_values": [
402 "## Input Asset\n\n- [victory_cover.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/victory_cover.png)\n\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"
403 ],
404 "widgets_values_named": {
405 "text": "## Input Asset\n\n- [victory_cover.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/victory_cover.png)\n\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"
406 },
407 "color": "#222",
408 "bgcolor": "#000"
409 }
410 ],
411 "links": [
412 [
413 38,
414 20,
415 0,
416 31,
417 0,
418 "IMAGE"
419 ],
420 [
421 39,
422 22,
423 0,
424 31,
425 1,
426 "MASK"
427 ],
428 [
429 46,
430 32,
431 5,
432 25,
433 0,
434 "LAYERS"
435 ],
436 [
437 42,
438 32,
439 0,
440 20,
441 0,
442 "IMAGE"
443 ],
444 [
445 44,
446 32,
447 2,
448 20,
449 1,
450 "IMAGE"
451 ],
452 [
453 43,
454 32,
455 1,
456 22,
457 0,
458 "MASK"
459 ],
460 [
461 45,
462 32,
463 3,
464 22,
465 1,
466 "MASK"
467 ],
468 [
469 40,
470 31,
471 0,
472 23,
473 0,
474 "IMAGE"
475 ],
476 [
477 41,
478 15,
479 0,
480 32,
481 0,
482 "IMAGE"
483 ]
484 ],
485 "groups": [],
486 "config": [],
487 "extra": {
488 "ds": {
489 "scale": 0.6708640735188275,
490 "offset": [
491 3185.4918687607233,
492 647.5357385910693
493 ]
494 },
495 "frontendVersion": "1.53.6"
496 },
497 "version": 0.4
498}