工作流 /
图像 /
FLUX 3 Image:边界框编辑

FLUX 3 Image:边界框编辑
FLUX 3 Image: Bounding Box Edit
通过将“创建边界框”节点中的盒子输入到提示词中,使用 FLUX 3 Image 将对象和文本放置在您想要的位置,这样每个盒子都带有自己的描述并复制到渲染中。盒子相对于画布,因此请将输出设置为相同的比例。输出一张图像,最高 4K。非常适合海报和布局构图、放置标题和说明文字,以及控制主体在画面中的位置。
图像
7 个节点 1 个输入 168 次使用 ComfyUI ≥ 0.38.2 ComfyUI 9 KB
节点构成
Flux3ImageNode
× 1
LoadImage
× 1
CreateBoundingBoxes
× 1
PreviewAny
× 1
SaveImageAdvanced
× 1
ImageCompare
× 1
MarkdownNote
× 1
官方标注的模型
FLUX 3 Image
工作流 JSON
和上面「下载工作流 JSON」是同一份文件。
1{
2 "id": "19291425-9102-405f-969a-4281ebcb00c2",
3 "revision": 0,
4 "last_node_id": 8,
5 "last_link_id": 8,
6 "nodes": [
7 {
8 "id": 1,
9 "type": "Flux3ImageNode",
10 "pos": [
11 1570,
12 -350
13 ],
14 "size": [
15 400,
16 320
17 ],
18 "flags": [],
19 "order": 3,
20 "mode": 0,
21 "showAdvanced": false,
22 "inputs": [
23 {
24 "name": "images.image_1",
25 "shape": 7,
26 "type": "IMAGE",
27 "link": 1
28 },
29 {
30 "name": "images.image_2",
31 "shape": 7,
32 "type": "IMAGE",
33 "link": null
34 },
35 {
36 "name": "images.image_3",
37 "shape": 7,
38 "type": "IMAGE",
39 "link": null
40 },
41 {
42 "name": "bounding_boxes",
43 "shape": 7,
44 "type": "ARRAY",
45 "link": 3
46 }
47 ],
48 "outputs": [
49 {
50 "name": "IMAGE",
51 "type": "IMAGE",
52 "links": [
53 6
54 ]
55 }
56 ],
57 "properties": {
58 "Node name for S&R": "Flux3ImageNode"
59 },
60 "widgets_values": [
61 "Edit image according to the caption",
62 "auto",
63 "1K",
64 true,
65 4,
66 3632876409,
67 "randomize"
68 ],
69 "widgets_values_named": {
70 "prompt": "Edit image according to the caption",
71 "aspect_ratio": "auto",
72 "resolution": "1K",
73 "grounding": true,
74 "safety_tolerance": 4,
75 "seed": 3632876409,
76 "control_after_generate": "randomize"
77 },
78 "color": "#432",
79 "bgcolor": "#653"
80 },
81 {
82 "id": 2,
83 "type": "LoadImage",
84 "pos": [
85 460,
86 -350
87 ],
88 "size": [
89 510,
90 770
91 ],
92 "flags": [],
93 "order": 0,
94 "mode": 0,
95 "inputs": [],
96 "outputs": [
97 {
98 "name": "IMAGE",
99 "type": "IMAGE",
100 "links": [
101 1,
102 5,
103 7
104 ]
105 },
106 {
107 "name": "MASK",
108 "type": "MASK",
109 "links": null
110 }
111 ],
112 "properties": {
113 "Node name for S&R": "LoadImage"
114 },
115 "widgets_values": [
116 "giant_flamingo_balloon_ship_harbor.png",
117 "image"
118 ],
119 "widgets_values_named": {
120 "image": "giant_flamingo_balloon_ship_harbor.png",
121 "upload": "image"
122 }
123 },
124 {
125 "id": 3,
126 "type": "CreateBoundingBoxes",
127 "pos": [
128 1020,
129 -350
130 ],
131 "size": [
132 500,
133 790
134 ],
135 "flags": [],
136 "order": 2,
137 "mode": 0,
138 "inputs": [
139 {
140 "name": "background",
141 "shape": 7,
142 "type": "IMAGE",
143 "link": 5
144 },
145 {
146 "name": "bboxes",
147 "shape": 7,
148 "type": "BOUNDING_BOX,ARRAY,STRING",
149 "link": null
150 }
151 ],
152 "outputs": [
153 {
154 "name": "preview",
155 "type": "IMAGE",
156 "links": null
157 },
158 {
159 "name": "bboxes",
160 "type": "BOUNDING_BOX",
161 "links": null
162 },
163 {
164 "name": "elements",
165 "type": "ARRAY",
166 "links": [
167 3,
168 4
169 ]
170 }
171 ],
172 "properties": {
173 "Node name for S&R": "CreateBoundingBoxes"
174 },
175 "widgets_values": [
176 896,
177 1152,
178 [
179 {
180 "x": 192,
181 "y": 384,
182 "width": 288,
183 "height": 352,
184 "metadata": {
185 "type": "obj",
186 "text": "",
187 "desc": "Change it to rubber duck",
188 "palette": []
189 }
190 }
191 ],
192 []
193 ],
194 "widgets_values_named": {
195 "width": 896,
196 "height": 1152,
197 "editor_state": [
198 {
199 "x": 192,
200 "y": 384,
201 "width": 288,
202 "height": 352,
203 "metadata": {
204 "type": "obj",
205 "text": "",
206 "desc": "Change it to rubber duck",
207 "palette": []
208 }
209 }
210 ],
211 "last_incoming": []
212 }
213 },
214 {
215 "id": 5,
216 "type": "PreviewAny",
217 "pos": [
218 1020,
219 640
220 ],
221 "size": [
222 500,
223 390
224 ],
225 "flags": [],
226 "order": 4,
227 "mode": 0,
228 "inputs": [
229 {
230 "name": "source",
231 "type": "*",
232 "link": 4
233 }
234 ],
235 "outputs": [
236 {
237 "name": "STRING",
238 "type": "STRING",
239 "links": null
240 }
241 ],
242 "properties": {
243 "Node name for S&R": "PreviewAny"
244 },
245 "widgets_values": [],
246 "widgets_values_named": []
247 },
248 {
249 "id": 6,
250 "type": "SaveImageAdvanced",
251 "pos": [
252 2010,
253 -350
254 ],
255 "size": [
256 620,
257 790
258 ],
259 "flags": [],
260 "order": 5,
261 "mode": 0,
262 "inputs": [
263 {
264 "name": "images",
265 "type": "IMAGE",
266 "link": 6
267 }
268 ],
269 "outputs": [
270 {
271 "name": "images",
272 "type": "IMAGE",
273 "links": [
274 8
275 ]
276 }
277 ],
278 "properties": [],
279 "widgets_values": [
280 "FLUX_3_Image_edit",
281 "png",
282 "8-bit",
283 "sRGB"
284 ],
285 "widgets_values_named": {
286 "filename_prefix": "FLUX_3_Image_edit",
287 "format": "png",
288 "format.bit_depth": "8-bit",
289 "format.input_color_space": "sRGB"
290 }
291 },
292 {
293 "id": 7,
294 "type": "ImageCompare",
295 "pos": [
296 2680,
297 -350
298 ],
299 "size": [
300 740,
301 760
302 ],
303 "flags": [],
304 "order": 6,
305 "mode": 0,
306 "inputs": [
307 {
308 "name": "image_a",
309 "shape": 7,
310 "type": "IMAGE",
311 "link": 7
312 },
313 {
314 "name": "image_b",
315 "shape": 7,
316 "type": "IMAGE",
317 "link": 8
318 }
319 ],
320 "outputs": [],
321 "properties": {
322 "Node name for S&R": "ImageCompare"
323 },
324 "widgets_values": [],
325 "widgets_values_named": []
326 },
327 {
328 "id": 8,
329 "type": "MarkdownNote",
330 "pos": [
331 50,
332 -350
333 ],
334 "size": [
335 370,
336 270
337 ],
338 "flags": [],
339 "order": 1,
340 "mode": 0,
341 "inputs": [],
342 "outputs": [],
343 "properties": [],
344 "widgets_values": [
345 "## Input Asset\n\n- [giant_flamingo_balloon_ship_harbor.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/giant_flamingo_balloon_ship_harbor.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"
346 ],
347 "widgets_values_named": {
348 "text": "## Input Asset\n\n- [giant_flamingo_balloon_ship_harbor.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/giant_flamingo_balloon_ship_harbor.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"
349 },
350 "color": "#222",
351 "bgcolor": "#000"
352 }
353 ],
354 "links": [
355 [
356 4,
357 3,
358 2,
359 5,
360 0,
361 "ARRAY"
362 ],
363 [
364 5,
365 2,
366 0,
367 3,
368 0,
369 "IMAGE"
370 ],
371 [
372 7,
373 2,
374 0,
375 7,
376 0,
377 "IMAGE"
378 ],
379 [
380 8,
381 6,
382 0,
383 7,
384 1,
385 "IMAGE"
386 ],
387 [
388 1,
389 2,
390 0,
391 1,
392 0,
393 "IMAGE"
394 ],
395 [
396 6,
397 1,
398 0,
399 6,
400 0,
401 "IMAGE"
402 ],
403 [
404 3,
405 3,
406 2,
407 1,
408 3,
409 "ARRAY"
410 ]
411 ],
412 "groups": [],
413 "config": [],
414 "extra": {
415 "ds": {
416 "scale": 0.6113365232539095,
417 "offset": [
418 -517.4240170872545,
419 711.3433061167084
420 ]
421 },
422 "frontendVersion": "1.55.17",
423 "VHS_latentpreview": false,
424 "VHS_latentpreviewrate": 0,
425 "VHS_MetadataImage": true,
426 "VHS_KeepIntermediate": true
427 },
428 "version": 0.4
429}