工作流 /
图像 /
Ideogram 4.5:图像编辑

Ideogram 4.5:图像编辑
Ideogram 4.5: Image Edit
使用 Ideogram 4.5,根据文本提示词和最多五张输入图像生成编辑或合成图像,其中图像 1 是要编辑的图像,图像 2-5 是设计、材质或颜色的参考。画布尺寸、质量级别和种子均可调整,输出一张图像。非常适合产品和服装替换、将参考设计或调色板应用于现有照片,以及将镜头重新构图成不同的宽高比例。
图像
9 个节点 1 个输入 259 次使用 ComfyUI ≥ 0.38.1 ComfyUI 10 KB
节点构成
MarkdownNote
× 2
IdeogramEditApi
× 1
LoadImage
× 1
BuildJsonPromptIdeogram
× 1
CreateBoundingBoxes
× 1
PreviewAny
× 1
SaveImageAdvanced
× 1
ImageCompare
× 1
官方标注的模型
Ideogram
工作流 JSON
和上面「下载工作流 JSON」是同一份文件。
1{
2 "id": "b9a4879b-6e6a-4acb-a0c0-b4f8375f608c",
3 "revision": 0,
4 "last_node_id": 19,
5 "last_link_id": 23,
6 "nodes": [
7 {
8 "id": 1,
9 "type": "IdeogramEditApi",
10 "pos": [
11 1240,
12 630
13 ],
14 "size": [
15 400,
16 320
17 ],
18 "flags": [],
19 "order": 6,
20 "mode": 0,
21 "inputs": [
22 {
23 "name": "model.images.image_1",
24 "type": "IMAGE",
25 "link": 22
26 },
27 {
28 "name": "model.images.image_2",
29 "shape": 7,
30 "type": "IMAGE",
31 "link": null
32 },
33 {
34 "name": "model.prompt",
35 "type": "STRING",
36 "widget": {
37 "name": "model.prompt"
38 },
39 "link": 5
40 }
41 ],
42 "outputs": [
43 {
44 "name": "IMAGE",
45 "type": "IMAGE",
46 "links": [
47 7
48 ]
49 }
50 ],
51 "properties": {
52 "Node name for S&R": "IdeogramEditApi"
53 },
54 "widgets_values": [
55 "ideogram-4.5",
56 "",
57 "source",
58 2048,
59 2048,
60 "medium",
61 1491935687,
62 "randomize",
63 "randomize"
64 ],
65 "widgets_values_named": {
66 "model": "ideogram-4.5",
67 "model.prompt": "",
68 "model.size": "source",
69 "model.width": 2048,
70 "model.height": 2048,
71 "model.quality": "medium",
72 "model.seed": 1491935687,
73 "control_after_generate#1": "randomize",
74 "control_after_generate": "randomize"
75 },
76 "color": "#432",
77 "bgcolor": "#653"
78 },
79 {
80 "id": 2,
81 "type": "LoadImage",
82 "pos": [
83 -670,
84 630
85 ],
86 "size": [
87 390,
88 720
89 ],
90 "flags": [],
91 "order": 0,
92 "mode": 0,
93 "inputs": [],
94 "outputs": [
95 {
96 "name": "IMAGE",
97 "type": "IMAGE",
98 "links": [
99 21,
100 22,
101 23
102 ]
103 },
104 {
105 "name": "MASK",
106 "type": "MASK",
107 "links": null
108 }
109 ],
110 "properties": {
111 "Node name for S&R": "LoadImage"
112 },
113 "widgets_values": [
114 "interior_orange_sofa.png",
115 "image"
116 ],
117 "widgets_values_named": {
118 "image": "interior_orange_sofa.png",
119 "upload": "image"
120 }
121 },
122 {
123 "id": 3,
124 "type": "BuildJsonPromptIdeogram",
125 "pos": [
126 310,
127 760
128 ],
129 "size": [
130 400,
131 270
132 ],
133 "flags": [],
134 "order": 4,
135 "mode": 0,
136 "inputs": [
137 {
138 "name": "element",
139 "type": "ARRAY",
140 "link": 1
141 }
142 ],
143 "outputs": [
144 {
145 "name": "prompt",
146 "type": "DICT",
147 "links": [
148 4
149 ]
150 }
151 ],
152 "properties": {
153 "Node name for S&R": "BuildJsonPromptIdeogram"
154 },
155 "widgets_values": [
156 "",
157 "",
158 "none",
159 "",
160 "",
161 "",
162 []
163 ],
164 "widgets_values_named": {
165 "high_level_description": "",
166 "background": "",
167 "style": "none",
168 "aesthetics": "",
169 "lighting": "",
170 "medium": "",
171 "color_palette": []
172 }
173 },
174 {
175 "id": 4,
176 "type": "CreateBoundingBoxes",
177 "pos": [
178 -190,
179 630
180 ],
181 "size": [
182 470,
183 720
184 ],
185 "flags": [],
186 "order": 3,
187 "mode": 0,
188 "inputs": [
189 {
190 "name": "background",
191 "shape": 7,
192 "type": "IMAGE",
193 "link": 21
194 },
195 {
196 "name": "bboxes",
197 "shape": 7,
198 "type": "BOUNDING_BOX,ARRAY,STRING",
199 "link": null
200 }
201 ],
202 "outputs": [
203 {
204 "name": "preview",
205 "type": "IMAGE",
206 "links": null
207 },
208 {
209 "name": "bboxes",
210 "type": "BOUNDING_BOX",
211 "links": null
212 },
213 {
214 "name": "elements",
215 "type": "ARRAY",
216 "links": [
217 1
218 ]
219 }
220 ],
221 "properties": {
222 "Node name for S&R": "CreateBoundingBoxes"
223 },
224 "widgets_values": [
225 896,
226 1152,
227 [
228 {
229 "x": 96,
230 "y": 768,
231 "width": 672,
232 "height": 352,
233 "metadata": {
234 "type": "obj",
235 "text": "",
236 "desc": "Change the color to blue",
237 "palette": []
238 }
239 }
240 ],
241 []
242 ],
243 "widgets_values_named": {
244 "width": 896,
245 "height": 1152,
246 "editor_state": [
247 {
248 "x": 96,
249 "y": 768,
250 "width": 672,
251 "height": 352,
252 "metadata": {
253 "type": "obj",
254 "text": "",
255 "desc": "Change the color to blue",
256 "palette": []
257 }
258 }
259 ],
260 "last_incoming": []
261 },
262 "color": "#322",
263 "bgcolor": "#533"
264 },
265 {
266 "id": 5,
267 "type": "PreviewAny",
268 "pos": [
269 750,
270 760
271 ],
272 "size": [
273 430,
274 400
275 ],
276 "flags": [],
277 "order": 5,
278 "mode": 0,
279 "inputs": [
280 {
281 "name": "source",
282 "type": "*",
283 "link": 4
284 }
285 ],
286 "outputs": [
287 {
288 "name": "STRING",
289 "type": "STRING",
290 "links": [
291 5
292 ]
293 }
294 ],
295 "properties": {
296 "Node name for S&R": "PreviewAny"
297 },
298 "widgets_values": [],
299 "widgets_values_named": []
300 },
301 {
302 "id": 7,
303 "type": "SaveImageAdvanced",
304 "pos": [
305 1680,
306 630
307 ],
308 "size": [
309 440,
310 520
311 ],
312 "flags": [],
313 "order": 7,
314 "mode": 0,
315 "inputs": [
316 {
317 "name": "images",
318 "type": "IMAGE",
319 "link": 7
320 }
321 ],
322 "outputs": [
323 {
324 "name": "images",
325 "type": "IMAGE",
326 "links": [
327 8
328 ]
329 }
330 ],
331 "properties": [],
332 "widgets_values": [
333 "ideogram4.5_image_edit",
334 "png",
335 "8-bit",
336 "sRGB"
337 ],
338 "widgets_values_named": {
339 "filename_prefix": "ideogram4.5_image_edit",
340 "format": "png",
341 "format.bit_depth": "8-bit",
342 "format.input_color_space": "sRGB"
343 }
344 },
345 {
346 "id": 8,
347 "type": "ImageCompare",
348 "pos": [
349 2170,
350 630
351 ],
352 "size": [
353 540,
354 530
355 ],
356 "flags": [],
357 "order": 8,
358 "mode": 0,
359 "inputs": [
360 {
361 "name": "image_a",
362 "shape": 7,
363 "type": "IMAGE",
364 "link": 23
365 },
366 {
367 "name": "image_b",
368 "shape": 7,
369 "type": "IMAGE",
370 "link": 8
371 }
372 ],
373 "outputs": [],
374 "properties": {
375 "Node name for S&R": "ImageCompare"
376 },
377 "widgets_values": [],
378 "widgets_values_named": []
379 },
380 {
381 "id": 18,
382 "type": "MarkdownNote",
383 "pos": [
384 -180,
385 1590
386 ],
387 "size": [
388 470,
389 140
390 ],
391 "flags": [],
392 "order": 1,
393 "mode": 0,
394 "inputs": [],
395 "outputs": [],
396 "properties": [],
397 "widgets_values": [
398 "- Enable [Nodes2.0](https://docs.comfy.org/interface/nodes-2) if you can't see the editor above\n- Load an image and draw BBox captions on it, like \"remove it\", to edit the image.\n"
399 ],
400 "widgets_values_named": {
401 "text": "- Enable [Nodes2.0](https://docs.comfy.org/interface/nodes-2) if you can't see the editor above\n- Load an image and draw BBox captions on it, like \"remove it\", to edit the image.\n"
402 },
403 "color": "#222",
404 "bgcolor": "#000"
405 },
406 {
407 "id": 19,
408 "type": "MarkdownNote",
409 "pos": [
410 -1140,
411 630
412 ],
413 "size": [
414 400,
415 300
416 ],
417 "flags": [],
418 "order": 2,
419 "mode": 0,
420 "inputs": [],
421 "outputs": [],
422 "properties": [],
423 "widgets_values": [
424 "## Input Asset\n\n- [interior_orange_sofa.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/interior_orange_sofa.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"
425 ],
426 "widgets_values_named": {
427 "text": "## Input Asset\n\n- [interior_orange_sofa.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/interior_orange_sofa.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"
428 },
429 "color": "#222",
430 "bgcolor": "#000"
431 }
432 ],
433 "links": [
434 [
435 4,
436 3,
437 0,
438 5,
439 0,
440 "DICT"
441 ],
442 [
443 8,
444 7,
445 0,
446 8,
447 1,
448 "IMAGE"
449 ],
450 [
451 21,
452 2,
453 0,
454 4,
455 0,
456 "IMAGE"
457 ],
458 [
459 23,
460 2,
461 0,
462 8,
463 0,
464 "IMAGE"
465 ],
466 [
467 22,
468 2,
469 0,
470 1,
471 0,
472 "IMAGE"
473 ],
474 [
475 5,
476 5,
477 0,
478 1,
479 2,
480 "STRING"
481 ],
482 [
483 1,
484 4,
485 2,
486 3,
487 0,
488 "ARRAY"
489 ],
490 [
491 7,
492 1,
493 0,
494 7,
495 0,
496 "IMAGE"
497 ]
498 ],
499 "groups": [],
500 "config": [],
501 "extra": {
502 "ds": {
503 "scale": 0.40362477370860816,
504 "offset": [
505 1592.986677203126,
506 169.3807937103608
507 ]
508 },
509 "frontendVersion": "1.56.0"
510 },
511 "version": 0.4
512}