svjack commited on
Commit
9cd7d73
·
verified ·
1 Parent(s): 4c4c9a5

Upload flux_kontext_dev_cat_food.json

Browse files
Files changed (1) hide show
  1. flux_kontext_dev_cat_food.json +1004 -0
flux_kontext_dev_cat_food.json ADDED
@@ -0,0 +1,1004 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "7cbcec68-7fa6-47bb-a38a-da689949a001",
3
+ "revision": 0,
4
+ "last_node_id": 191,
5
+ "last_link_id": 298,
6
+ "nodes": [
7
+ {
8
+ "id": 39,
9
+ "type": "VAELoader",
10
+ "pos": [
11
+ -400,
12
+ 390
13
+ ],
14
+ "size": [
15
+ 337.76861572265625,
16
+ 58
17
+ ],
18
+ "flags": {},
19
+ "order": 0,
20
+ "mode": 0,
21
+ "inputs": [],
22
+ "outputs": [
23
+ {
24
+ "name": "VAE",
25
+ "type": "VAE",
26
+ "links": [
27
+ 61,
28
+ 223
29
+ ]
30
+ }
31
+ ],
32
+ "properties": {
33
+ "cnr_id": "comfy-core",
34
+ "ver": "0.3.38",
35
+ "Node name for S&R": "VAELoader",
36
+ "models": [
37
+ {
38
+ "name": "ae.safetensors",
39
+ "url": "https://huggingface.co/Comfy-Org/Lumina_Image_2.0_Repackaged/resolve/main/split_files/vae/ae.safetensors",
40
+ "directory": "vae"
41
+ }
42
+ ]
43
+ },
44
+ "widgets_values": [
45
+ "ae.safetensors"
46
+ ],
47
+ "color": "#322",
48
+ "bgcolor": "#533"
49
+ },
50
+ {
51
+ "id": 38,
52
+ "type": "DualCLIPLoader",
53
+ "pos": [
54
+ -400,
55
+ 210
56
+ ],
57
+ "size": [
58
+ 337.76861572265625,
59
+ 130
60
+ ],
61
+ "flags": {},
62
+ "order": 1,
63
+ "mode": 0,
64
+ "inputs": [],
65
+ "outputs": [
66
+ {
67
+ "name": "CLIP",
68
+ "type": "CLIP",
69
+ "links": [
70
+ 59
71
+ ]
72
+ }
73
+ ],
74
+ "properties": {
75
+ "cnr_id": "comfy-core",
76
+ "ver": "0.3.38",
77
+ "Node name for S&R": "DualCLIPLoader",
78
+ "models": [
79
+ {
80
+ "name": "clip_l.safetensors",
81
+ "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors",
82
+ "directory": "text_encoders"
83
+ },
84
+ {
85
+ "name": "t5xxl_fp8_e4m3fn_scaled.safetensors",
86
+ "url": "https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp8_e4m3fn_scaled.safetensors",
87
+ "directory": "text_encoders"
88
+ }
89
+ ]
90
+ },
91
+ "widgets_values": [
92
+ "clip_l.safetensors",
93
+ "t5xxl_fp8_e4m3fn_scaled.safetensors",
94
+ "flux",
95
+ "default"
96
+ ],
97
+ "color": "#322",
98
+ "bgcolor": "#533"
99
+ },
100
+ {
101
+ "id": 135,
102
+ "type": "ConditioningZeroOut",
103
+ "pos": [
104
+ 250,
105
+ 200
106
+ ],
107
+ "size": [
108
+ 240,
109
+ 26
110
+ ],
111
+ "flags": {
112
+ "collapsed": false
113
+ },
114
+ "order": 15,
115
+ "mode": 0,
116
+ "inputs": [
117
+ {
118
+ "name": "conditioning",
119
+ "type": "CONDITIONING",
120
+ "link": 237
121
+ }
122
+ ],
123
+ "outputs": [
124
+ {
125
+ "name": "CONDITIONING",
126
+ "type": "CONDITIONING",
127
+ "links": [
128
+ 238
129
+ ]
130
+ }
131
+ ],
132
+ "properties": {
133
+ "cnr_id": "comfy-core",
134
+ "ver": "0.3.39",
135
+ "Node name for S&R": "ConditioningZeroOut"
136
+ },
137
+ "widgets_values": []
138
+ },
139
+ {
140
+ "id": 124,
141
+ "type": "VAEEncode",
142
+ "pos": [
143
+ -20,
144
+ 400
145
+ ],
146
+ "size": [
147
+ 240,
148
+ 50
149
+ ],
150
+ "flags": {
151
+ "collapsed": false
152
+ },
153
+ "order": 16,
154
+ "mode": 0,
155
+ "inputs": [
156
+ {
157
+ "name": "pixels",
158
+ "type": "IMAGE",
159
+ "link": 222
160
+ },
161
+ {
162
+ "name": "vae",
163
+ "type": "VAE",
164
+ "link": 223
165
+ }
166
+ ],
167
+ "outputs": [
168
+ {
169
+ "name": "LATENT",
170
+ "type": "LATENT",
171
+ "links": [
172
+ 291,
173
+ 293
174
+ ]
175
+ }
176
+ ],
177
+ "properties": {
178
+ "cnr_id": "comfy-core",
179
+ "ver": "0.3.39",
180
+ "Node name for S&R": "VAEEncode"
181
+ },
182
+ "widgets_values": []
183
+ },
184
+ {
185
+ "id": 35,
186
+ "type": "FluxGuidance",
187
+ "pos": [
188
+ 250,
189
+ 90
190
+ ],
191
+ "size": [
192
+ 240,
193
+ 58
194
+ ],
195
+ "flags": {
196
+ "collapsed": false
197
+ },
198
+ "order": 18,
199
+ "mode": 0,
200
+ "inputs": [
201
+ {
202
+ "name": "conditioning",
203
+ "type": "CONDITIONING",
204
+ "link": 292
205
+ }
206
+ ],
207
+ "outputs": [
208
+ {
209
+ "name": "CONDITIONING",
210
+ "type": "CONDITIONING",
211
+ "slot_index": 0,
212
+ "links": [
213
+ 57
214
+ ]
215
+ }
216
+ ],
217
+ "properties": {
218
+ "cnr_id": "comfy-core",
219
+ "ver": "0.3.38",
220
+ "Node name for S&R": "FluxGuidance"
221
+ },
222
+ "widgets_values": [
223
+ 2.5
224
+ ]
225
+ },
226
+ {
227
+ "id": 185,
228
+ "type": "MarkdownNote",
229
+ "pos": [
230
+ -960,
231
+ 490
232
+ ],
233
+ "size": [
234
+ 510,
235
+ 170
236
+ ],
237
+ "flags": {},
238
+ "order": 2,
239
+ "mode": 0,
240
+ "inputs": [],
241
+ "outputs": [],
242
+ "title": "About VRAM",
243
+ "properties": {},
244
+ "widgets_values": [
245
+ "For reference:\n- **fp8_scaled**: Requires about 20GB of VRAM.\n- **Original**: Requires about 32GB of VRAM.\n\n---\n\n供参考:\n- **fp8_scaled** : 大概需要 20GB 左右 VRAM \n- **原始权重**: 原始权重,大概需要 32GB 左右 VRAM \n"
246
+ ],
247
+ "color": "#432",
248
+ "bgcolor": "#653"
249
+ },
250
+ {
251
+ "id": 186,
252
+ "type": "MarkdownNote",
253
+ "pos": [
254
+ -960,
255
+ 710
256
+ ],
257
+ "size": [
258
+ 510,
259
+ 170
260
+ ],
261
+ "flags": {},
262
+ "order": 3,
263
+ "mode": 0,
264
+ "inputs": [],
265
+ "outputs": [],
266
+ "title": "Flux Kontext Prompt Techniques",
267
+ "properties": {},
268
+ "widgets_values": [
269
+ "\n## Flux Kontext Prompt Techniques\n\n### 1. Basic Modifications\n- Simple and direct: `\"Change the car color to red\"`\n- Maintain style: `\"Change to daytime while maintaining the same style of the painting\"`\n\n### 2. Style Transfer\n**Principles:**\n- Clearly name style: `\"Transform to Bauhaus art style\"`\n- Describe characteristics: `\"Transform to oil painting with visible brushstrokes, thick paint texture\"`\n- Preserve composition: `\"Change to Bauhaus style while maintaining the original composition\"`\n\n### 3. Character Consistency\n**Framework:**\n- Specific description: `\"The woman with short black hair\"` instead of \"she\"\n- Preserve features: `\"while maintaining the same facial features, hairstyle, and expression\"`\n- Step-by-step modifications: Change background first, then actions\n\n### 4. Text Editing\n- Use quotes: `\"Replace 'joy' with 'BFL'\"`\n- Maintain format: `\"Replace text while maintaining the same font style\"`\n\n## Common Problem Solutions\n\n### Character Changes Too Much\n❌ Wrong: `\"Transform the person into a Viking\"`\n✅ Correct: `\"Change the clothes to be a viking warrior while preserving facial features\"`\n\n### Composition Position Changes\n❌ Wrong: `\"Put him on a beach\"`\n✅ Correct: `\"Change the background to a beach while keeping the person in the exact same position, scale, and pose\"`\n\n### Style Application Inaccuracy\n❌ Wrong: `\"Make it a sketch\"`\n✅ Correct: `\"Convert to pencil sketch with natural graphite lines, cross-hatching, and visible paper texture\"`\n\n## Core Principles\n\n1. **Be Specific and Clear** - Use precise descriptions, avoid vague terms\n2. **Step-by-step Editing** - Break complex modifications into multiple simple steps\n3. **Explicit Preservation** - State what should remain unchanged\n4. **Verb Selection** - Use \"change\", \"replace\" rather than \"transform\"\n\n## Best Practice Templates\n\n**Object Modification:**\n`\"Change [object] to [new state], keep [content to preserve] unchanged\"`\n\n**Style Transfer:**\n`\"Transform to [specific style], while maintaining [composition/character/other] unchanged\"`\n\n**Background Replacement:**\n`\"Change the background to [new background], keep the subject in the exact same position and pose\"`\n\n**Text Editing:**\n`\"Replace '[original text]' with '[new text]', maintain the same font style\"`\n\n> **Remember:** The more specific, the better. Kontext excels at understanding detailed instructions and maintaining consistency. "
270
+ ],
271
+ "color": "#432",
272
+ "bgcolor": "#653"
273
+ },
274
+ {
275
+ "id": 184,
276
+ "type": "MarkdownNote",
277
+ "pos": [
278
+ -960,
279
+ 40
280
+ ],
281
+ "size": [
282
+ 510,
283
+ 400
284
+ ],
285
+ "flags": {},
286
+ "order": 4,
287
+ "mode": 0,
288
+ "inputs": [],
289
+ "outputs": [],
290
+ "title": "Model links",
291
+ "properties": {},
292
+ "widgets_values": [
293
+ "[tutorial](http://docs.comfy.org/tutorials/flux/flux-1-kontext-dev) | [教程](http://docs.comfy.org/zh-CN/tutorials/flux/flux-1-kontext-dev)\n\n**diffusion model**\n\n- [flux1-dev-kontext_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/flux1-kontext-dev_ComfyUI/resolve/main/split_files/diffusion_models/flux1-dev-kontext_fp8_scaled.safetensors)\n\n**vae**\n\n- [ae.safetensors](https://huggingface.co/Comfy-Org/Lumina_Image_2.0_Repackaged/blob/main/split_files/vae/ae.safetensors)\n\n**text encoder**\n\n- [clip_l.safetensors](https://huggingface.co/comfyanonymous/flux_text_encoders/blob/main/clip_l.safetensors)\n- [t5xxl_fp16.safetensors](https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors) or [t5xxl_fp8_e4m3fn_scaled.safetensors](https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp8_e4m3fn_scaled.safetensors)\n\nModel Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ ├── 📂 diffusion_models/\n│ │ └── flux1-dev-kontext_fp8_scaled.safetensors\n│ ├── 📂 vae/\n│ │ └── ae.safetensor\n│ └── 📂 text_encoders/\n│ ├── clip_l.safetensors\n│ └── t5xxl_fp16.safetensors 或者 t5xxl_fp8_e4m3fn_scaled.safetensors\n```\n"
294
+ ],
295
+ "color": "#432",
296
+ "bgcolor": "#653"
297
+ },
298
+ {
299
+ "id": 177,
300
+ "type": "ReferenceLatent",
301
+ "pos": [
302
+ 10,
303
+ 140
304
+ ],
305
+ "size": [
306
+ 197.712890625,
307
+ 46
308
+ ],
309
+ "flags": {},
310
+ "order": 17,
311
+ "mode": 0,
312
+ "inputs": [
313
+ {
314
+ "name": "conditioning",
315
+ "type": "CONDITIONING",
316
+ "link": 294
317
+ },
318
+ {
319
+ "name": "latent",
320
+ "shape": 7,
321
+ "type": "LATENT",
322
+ "link": 293
323
+ }
324
+ ],
325
+ "outputs": [
326
+ {
327
+ "name": "CONDITIONING",
328
+ "type": "CONDITIONING",
329
+ "links": [
330
+ 292
331
+ ]
332
+ }
333
+ ],
334
+ "properties": {
335
+ "cnr_id": "comfy-core",
336
+ "ver": "0.3.41",
337
+ "Node name for S&R": "ReferenceLatent"
338
+ },
339
+ "widgets_values": []
340
+ },
341
+ {
342
+ "id": 178,
343
+ "type": "MarkdownNote",
344
+ "pos": [
345
+ -30,
346
+ -150
347
+ ],
348
+ "size": [
349
+ 540,
350
+ 150
351
+ ],
352
+ "flags": {},
353
+ "order": 5,
354
+ "mode": 0,
355
+ "inputs": [],
356
+ "outputs": [],
357
+ "title": "About multiple images reference",
358
+ "properties": {},
359
+ "widgets_values": [
360
+ "[English] In addition to using **Image Stitch** to combine two images at a time, you can also encode individual images, then concatenate multiple latent conditions using the **ReferenceLatent** node, thus achieving the purpose of referencing multiple images. You can use the **EmptySD3LatentImage** node on the right to connect to **KSamper** and customize the size of the **latent_image**.\n\n[中文] 除了使用 **Image Stitch** 将两个两个图像拼合之外,你同样可以将单独的图像 encode 之后,将多个 latent 条件使用 **ReferenceLatent** 节点串联,从而实现多张图像参考的目的。可以使用右边的 **EmptySD3LatentImage** 节点连接到 **KSamper**来自定义 **latent_image** 的尺寸"
361
+ ],
362
+ "color": "#432",
363
+ "bgcolor": "#653"
364
+ },
365
+ {
366
+ "id": 180,
367
+ "type": "MarkdownNote",
368
+ "pos": [
369
+ -1430,
370
+ 40
371
+ ],
372
+ "size": [
373
+ 450,
374
+ 450
375
+ ],
376
+ "flags": {},
377
+ "order": 6,
378
+ "mode": 0,
379
+ "inputs": [],
380
+ "outputs": [],
381
+ "title": "✨ New ComfyUI feature for Flux.1 Kontext Dev",
382
+ "properties": {},
383
+ "widgets_values": [
384
+ "[English]\nWe have added an **Edit** button to the **Selection Toolbox** of the node for **FLUX.1 Kontext Image Edit** support. When clicked, it quickly adds a **FLUX.1 Kontext Image Edit** group node to the Latent output of your current workflow. This enables an interactive editing experience where you can:\n\n- Create multiple editing iterations, each preserved as a separate node\n- Easily branch off from any previous edit point to explore different creative directions\n- Return to any earlier version and start a new editing branch\n- Modify parameters in earlier nodes and automatically update all downstream edits\n- Execute or re-execute any branch of edits at any time\n- When you want to maintain the effect of the corresponding branch, please set the seed of the corresponding group node to fixed.\n\n\nThis workflow mirrors the iterative nature of LLM conversations, but with the added advantage of visual editing and the ability to maintain multiple parallel editing paths.\n\n---\n\n[中文]\n我们为 **FLUX.1 Kontext Image Edit** 的相关支持在节点的**选择工具箱**上新增了一个**编辑**按钮。点击后,系统会在当前工作流的 Latent 输出上快速添加一个 **FLUX.1 Kontext Image Edit** 的组节点。这种设计带来了灵活的交互式编辑体验:\n\n- 创建多个编辑迭代,每次编辑都会保存为独立节点\n- 可以从任何之前的编辑点分支出新的创作方向\n- 随时返回到早期版本并开始新的编辑分支\n- 修改早期节点的参数,自动更新所有下游编辑\n- 可以随时执行或重新执行任何编辑分支\n- 想要固定对应分支效果时,请将对应的 seed 设置为 fixed\n\n这种工作流程类似于 LLM 对话的迭代特性,但增加了视觉编辑的优势,并能够维护多个并行的编辑路径。"
385
+ ],
386
+ "color": "#322",
387
+ "bgcolor": "#533"
388
+ },
389
+ {
390
+ "id": 187,
391
+ "type": "MarkdownNote",
392
+ "pos": [
393
+ -960,
394
+ 930
395
+ ],
396
+ "size": [
397
+ 510,
398
+ 180
399
+ ],
400
+ "flags": {},
401
+ "order": 7,
402
+ "mode": 0,
403
+ "inputs": [],
404
+ "outputs": [],
405
+ "title": "Flux Kontext 提示词技巧",
406
+ "properties": {},
407
+ "widgets_values": [
408
+ "\n## Flux Kontext 提示词技巧\n\n使用英文\n\n### 1. 基础修改\n- 简单直接:`\"Change the car color to red\"`\n- 保持风格:`\"Change to daytime while maintaining the same style of the painting\"`\n\n### 2. 风格转换\n**原则:**\n- 明确命名风格:`\"Transform to Bauhaus art style\"`\n- 描述特征:`\"Transform to oil painting with visible brushstrokes, thick paint texture\"`\n- 保留构图:`\"Change to Bauhaus style while maintaining the original composition\"`\n\n### 3. 角色一致性\n**框架:**\n- 具体描述:`\"The woman with short black hair\"`而非`\"她\"`\n- 保留特征:`\"while maintaining the same facial features, hairstyle, and expression\"`\n- 分步修改:先改背景,再改动作\n\n### 4. 文本编辑\n- 使用引号:`\"Replace 'joy' with 'BFL'\"`\n- 保持格式:`\"Replace text while maintaining the same font style\"`\n\n## 常见问题解决\n\n### 角色变化过大\n❌ 错误:`\"Transform the person into a Viking\"`\n✅ 正确:`\"Change the clothes to be a viking warrior while preserving facial features\"`\n\n### 构图位置改变\n❌ 错误:`\"Put him on a beach\"`\n✅ 正确:`\"Change the background to a beach while keeping the person in the exact same position, scale, and pose\"`\n\n### 风格应用不准确\n❌ 错误:`\"Make it a sketch\"`\n✅ 正确:`\"Convert to pencil sketch with natural graphite lines, cross-hatching, and visible paper texture\"`\n\n## 核心原则\n\n1. **具体明确** - 使用精确描述,避免模糊词汇\n2. **分步编辑** - 复杂修改分为多个简单步骤\n3. **明确保留** - 说明哪些要保持不变\n4. **动词选择** - 用\"更改\"、\"替换\"而非\"转换\"\n\n## 最佳实践模板\n\n**对象修改:**\n`\"Change [object] to [new state], keep [content to preserve] unchanged\"`\n\n**风格转换:**\n`\"Transform to [specific style], while maintaining [composition/character/other] unchanged\"`\n\n**背景替换:**\n`\"Change the background to [new background], keep the subject in the exact same position and pose\"`\n\n**文本编辑:**\n`\"Replace '[original text]' with '[new text]', maintain the same font style\"`\n\n> **记住:** 越具体越好,Kontext 擅长理解详细指令并保持一致性。"
409
+ ],
410
+ "color": "#432",
411
+ "bgcolor": "#653"
412
+ },
413
+ {
414
+ "id": 175,
415
+ "type": "MarkdownNote",
416
+ "pos": [
417
+ -50,
418
+ 640
419
+ ],
420
+ "size": [
421
+ 320,
422
+ 88
423
+ ],
424
+ "flags": {},
425
+ "order": 8,
426
+ "mode": 0,
427
+ "inputs": [],
428
+ "outputs": [],
429
+ "title": "How to enable multiple image input",
430
+ "properties": {},
431
+ "widgets_values": [
432
+ "Click on the **Load image (from output)** node and use **Ctrl + B** to enable multiple image input support."
433
+ ],
434
+ "color": "#432",
435
+ "bgcolor": "#653"
436
+ },
437
+ {
438
+ "id": 189,
439
+ "type": "MarkdownNote",
440
+ "pos": [
441
+ -400,
442
+ 1200
443
+ ],
444
+ "size": [
445
+ 340,
446
+ 90
447
+ ],
448
+ "flags": {},
449
+ "order": 9,
450
+ "mode": 0,
451
+ "inputs": [],
452
+ "outputs": [],
453
+ "title": "About multi-round edit",
454
+ "properties": {},
455
+ "widgets_values": [
456
+ "The **Load Image (from Outputs)** node allows you to fetch the last image from the output. Click on the **refresh** button to fetch the latest image or manually select an image from the dropdown list."
457
+ ],
458
+ "color": "#432",
459
+ "bgcolor": "#653"
460
+ },
461
+ {
462
+ "id": 42,
463
+ "type": "FluxKontextImageScale",
464
+ "pos": [
465
+ -50,
466
+ 570
467
+ ],
468
+ "size": [
469
+ 270,
470
+ 30
471
+ ],
472
+ "flags": {
473
+ "collapsed": false
474
+ },
475
+ "order": 14,
476
+ "mode": 0,
477
+ "inputs": [
478
+ {
479
+ "name": "image",
480
+ "type": "IMAGE",
481
+ "link": 296
482
+ }
483
+ ],
484
+ "outputs": [
485
+ {
486
+ "name": "IMAGE",
487
+ "type": "IMAGE",
488
+ "links": [
489
+ 222
490
+ ]
491
+ }
492
+ ],
493
+ "properties": {
494
+ "cnr_id": "comfy-core",
495
+ "ver": "0.3.38",
496
+ "Node name for S&R": "FluxKontextImageScale"
497
+ },
498
+ "widgets_values": []
499
+ },
500
+ {
501
+ "id": 37,
502
+ "type": "UNETLoader",
503
+ "pos": [
504
+ -400,
505
+ 80
506
+ ],
507
+ "size": [
508
+ 337.76861572265625,
509
+ 82
510
+ ],
511
+ "flags": {},
512
+ "order": 10,
513
+ "mode": 0,
514
+ "inputs": [],
515
+ "outputs": [
516
+ {
517
+ "name": "MODEL",
518
+ "type": "MODEL",
519
+ "links": [
520
+ 297
521
+ ]
522
+ }
523
+ ],
524
+ "properties": {
525
+ "cnr_id": "comfy-core",
526
+ "ver": "0.3.38",
527
+ "Node name for S&R": "UNETLoader",
528
+ "models": [
529
+ {
530
+ "name": "flux1-dev-kontext_fp8_scaled.safetensors",
531
+ "url": "https://huggingface.co/Comfy-Org/flux1-kontext-dev_ComfyUI/resolve/main/split_files/diffusion_models/flux1-dev-kontext_fp8_scaled.safetensors",
532
+ "directory": "diffusion_models"
533
+ }
534
+ ]
535
+ },
536
+ "widgets_values": [
537
+ "flux1-dev-kontext_fp8_scaled.safetensors",
538
+ "default"
539
+ ],
540
+ "color": "#322",
541
+ "bgcolor": "#533"
542
+ },
543
+ {
544
+ "id": 8,
545
+ "type": "VAEDecode",
546
+ "pos": [
547
+ 373.7264709472656,
548
+ 362.63983154296875
549
+ ],
550
+ "size": [
551
+ 190,
552
+ 46
553
+ ],
554
+ "flags": {
555
+ "collapsed": false
556
+ },
557
+ "order": 20,
558
+ "mode": 0,
559
+ "inputs": [
560
+ {
561
+ "name": "samples",
562
+ "type": "LATENT",
563
+ "link": 52
564
+ },
565
+ {
566
+ "name": "vae",
567
+ "type": "VAE",
568
+ "link": 61
569
+ }
570
+ ],
571
+ "outputs": [
572
+ {
573
+ "name": "IMAGE",
574
+ "type": "IMAGE",
575
+ "slot_index": 0,
576
+ "links": [
577
+ 240
578
+ ]
579
+ }
580
+ ],
581
+ "properties": {
582
+ "cnr_id": "comfy-core",
583
+ "ver": "0.3.38",
584
+ "Node name for S&R": "VAEDecode"
585
+ },
586
+ "widgets_values": []
587
+ },
588
+ {
589
+ "id": 6,
590
+ "type": "CLIPTextEncode",
591
+ "pos": [
592
+ 330,
593
+ 560
594
+ ],
595
+ "size": [
596
+ 400,
597
+ 220
598
+ ],
599
+ "flags": {},
600
+ "order": 12,
601
+ "mode": 0,
602
+ "inputs": [
603
+ {
604
+ "name": "clip",
605
+ "type": "CLIP",
606
+ "link": 59
607
+ }
608
+ ],
609
+ "outputs": [
610
+ {
611
+ "name": "CONDITIONING",
612
+ "type": "CONDITIONING",
613
+ "slot_index": 0,
614
+ "links": [
615
+ 237,
616
+ 294
617
+ ]
618
+ }
619
+ ],
620
+ "title": "CLIP Text Encode (Positive Prompt)",
621
+ "properties": {
622
+ "cnr_id": "comfy-core",
623
+ "ver": "0.3.38",
624
+ "Node name for S&R": "CLIPTextEncode"
625
+ },
626
+ "widgets_values": [
627
+ "make food in cat style, add ears, glasses, beard, mouth, tail."
628
+ ],
629
+ "color": "#232",
630
+ "bgcolor": "#353"
631
+ },
632
+ {
633
+ "id": 136,
634
+ "type": "SaveImage",
635
+ "pos": [
636
+ 758.8885498046875,
637
+ 576.2281494140625
638
+ ],
639
+ "size": [
640
+ 650,
641
+ 660
642
+ ],
643
+ "flags": {},
644
+ "order": 21,
645
+ "mode": 0,
646
+ "inputs": [
647
+ {
648
+ "name": "images",
649
+ "type": "IMAGE",
650
+ "link": 240
651
+ }
652
+ ],
653
+ "outputs": [],
654
+ "properties": {
655
+ "cnr_id": "comfy-core",
656
+ "ver": "0.3.39"
657
+ },
658
+ "widgets_values": [
659
+ "ComfyUI"
660
+ ]
661
+ },
662
+ {
663
+ "id": 191,
664
+ "type": "LoraLoaderModelOnly",
665
+ "pos": [
666
+ -427.3157958984375,
667
+ -192.0359344482422
668
+ ],
669
+ "size": [
670
+ 270,
671
+ 82
672
+ ],
673
+ "flags": {},
674
+ "order": 13,
675
+ "mode": 0,
676
+ "inputs": [
677
+ {
678
+ "name": "model",
679
+ "type": "MODEL",
680
+ "link": 297
681
+ }
682
+ ],
683
+ "outputs": [
684
+ {
685
+ "name": "MODEL",
686
+ "type": "MODEL",
687
+ "links": [
688
+ 298
689
+ ]
690
+ }
691
+ ],
692
+ "properties": {
693
+ "cnr_id": "comfy-core",
694
+ "ver": "0.3.45",
695
+ "Node name for S&R": "LoraLoaderModelOnly"
696
+ },
697
+ "widgets_values": [
698
+ "cat_face_flux_kontext_lora_v1_000004750.safetensors",
699
+ 1
700
+ ]
701
+ },
702
+ {
703
+ "id": 31,
704
+ "type": "KSampler",
705
+ "pos": [
706
+ 593.1984252929688,
707
+ 94.00630950927734
708
+ ],
709
+ "size": [
710
+ 320,
711
+ 262
712
+ ],
713
+ "flags": {},
714
+ "order": 19,
715
+ "mode": 0,
716
+ "inputs": [
717
+ {
718
+ "name": "model",
719
+ "type": "MODEL",
720
+ "link": 298
721
+ },
722
+ {
723
+ "name": "positive",
724
+ "type": "CONDITIONING",
725
+ "link": 57
726
+ },
727
+ {
728
+ "name": "negative",
729
+ "type": "CONDITIONING",
730
+ "link": 238
731
+ },
732
+ {
733
+ "name": "latent_image",
734
+ "type": "LATENT",
735
+ "link": 291
736
+ }
737
+ ],
738
+ "outputs": [
739
+ {
740
+ "name": "LATENT",
741
+ "type": "LATENT",
742
+ "slot_index": 0,
743
+ "links": [
744
+ 52
745
+ ]
746
+ }
747
+ ],
748
+ "properties": {
749
+ "cnr_id": "comfy-core",
750
+ "ver": "0.3.38",
751
+ "Node name for S&R": "KSampler"
752
+ },
753
+ "widgets_values": [
754
+ 1080271813714345,
755
+ "randomize",
756
+ 30,
757
+ 1,
758
+ "euler",
759
+ "simple",
760
+ 1
761
+ ]
762
+ },
763
+ {
764
+ "id": 190,
765
+ "type": "LoadImage",
766
+ "pos": [
767
+ -375.2492370605469,
768
+ 708.8231811523438
769
+ ],
770
+ "size": [
771
+ 270,
772
+ 314
773
+ ],
774
+ "flags": {},
775
+ "order": 11,
776
+ "mode": 0,
777
+ "inputs": [],
778
+ "outputs": [
779
+ {
780
+ "name": "IMAGE",
781
+ "type": "IMAGE",
782
+ "links": [
783
+ 296
784
+ ]
785
+ },
786
+ {
787
+ "name": "MASK",
788
+ "type": "MASK",
789
+ "links": null
790
+ }
791
+ ],
792
+ "properties": {
793
+ "cnr_id": "comfy-core",
794
+ "ver": "0.3.45",
795
+ "Node name for S&R": "LoadImage"
796
+ },
797
+ "widgets_values": [
798
+ "image (47).jpg",
799
+ "image"
800
+ ]
801
+ }
802
+ ],
803
+ "links": [
804
+ [
805
+ 52,
806
+ 31,
807
+ 0,
808
+ 8,
809
+ 0,
810
+ "LATENT"
811
+ ],
812
+ [
813
+ 57,
814
+ 35,
815
+ 0,
816
+ 31,
817
+ 1,
818
+ "CONDITIONING"
819
+ ],
820
+ [
821
+ 59,
822
+ 38,
823
+ 0,
824
+ 6,
825
+ 0,
826
+ "CLIP"
827
+ ],
828
+ [
829
+ 61,
830
+ 39,
831
+ 0,
832
+ 8,
833
+ 1,
834
+ "VAE"
835
+ ],
836
+ [
837
+ 222,
838
+ 42,
839
+ 0,
840
+ 124,
841
+ 0,
842
+ "IMAGE"
843
+ ],
844
+ [
845
+ 223,
846
+ 39,
847
+ 0,
848
+ 124,
849
+ 1,
850
+ "VAE"
851
+ ],
852
+ [
853
+ 237,
854
+ 6,
855
+ 0,
856
+ 135,
857
+ 0,
858
+ "CONDITIONING"
859
+ ],
860
+ [
861
+ 238,
862
+ 135,
863
+ 0,
864
+ 31,
865
+ 2,
866
+ "CONDITIONING"
867
+ ],
868
+ [
869
+ 240,
870
+ 8,
871
+ 0,
872
+ 136,
873
+ 0,
874
+ "IMAGE"
875
+ ],
876
+ [
877
+ 291,
878
+ 124,
879
+ 0,
880
+ 31,
881
+ 3,
882
+ "LATENT"
883
+ ],
884
+ [
885
+ 292,
886
+ 177,
887
+ 0,
888
+ 35,
889
+ 0,
890
+ "CONDITIONING"
891
+ ],
892
+ [
893
+ 293,
894
+ 124,
895
+ 0,
896
+ 177,
897
+ 1,
898
+ "LATENT"
899
+ ],
900
+ [
901
+ 294,
902
+ 6,
903
+ 0,
904
+ 177,
905
+ 0,
906
+ "CONDITIONING"
907
+ ],
908
+ [
909
+ 296,
910
+ 190,
911
+ 0,
912
+ 42,
913
+ 0,
914
+ "IMAGE"
915
+ ],
916
+ [
917
+ 297,
918
+ 37,
919
+ 0,
920
+ 191,
921
+ 0,
922
+ "MODEL"
923
+ ],
924
+ [
925
+ 298,
926
+ 191,
927
+ 0,
928
+ 31,
929
+ 0,
930
+ "MODEL"
931
+ ]
932
+ ],
933
+ "groups": [
934
+ {
935
+ "id": 1,
936
+ "title": "Step 1- Load models",
937
+ "bounding": [
938
+ -410,
939
+ 10,
940
+ 360,
941
+ 450
942
+ ],
943
+ "color": "#3f789e",
944
+ "font_size": 24,
945
+ "flags": {}
946
+ },
947
+ {
948
+ "id": 3,
949
+ "title": "Step 2 - Upload images",
950
+ "bounding": [
951
+ -410,
952
+ 480,
953
+ 700,
954
+ 680
955
+ ],
956
+ "color": "#3f789e",
957
+ "font_size": 24,
958
+ "flags": {}
959
+ },
960
+ {
961
+ "id": 5,
962
+ "title": "Step 3 - Prompt",
963
+ "bounding": [
964
+ 310,
965
+ 480,
966
+ 430,
967
+ 330
968
+ ],
969
+ "color": "#3f789e",
970
+ "font_size": 24,
971
+ "flags": {}
972
+ },
973
+ {
974
+ "id": 6,
975
+ "title": "Conditioning",
976
+ "bounding": [
977
+ -30,
978
+ 10,
979
+ 540,
980
+ 250
981
+ ],
982
+ "color": "#3f789e",
983
+ "font_size": 24,
984
+ "flags": {}
985
+ }
986
+ ],
987
+ "config": {},
988
+ "extra": {
989
+ "ds": {
990
+ "scale": 1.3109994191500771,
991
+ "offset": [
992
+ 414.78365860522547,
993
+ -584.9066698188965
994
+ ]
995
+ },
996
+ "frontendVersion": "1.23.4",
997
+ "groupNodes": {},
998
+ "VHS_latentpreview": false,
999
+ "VHS_latentpreviewrate": 0,
1000
+ "VHS_MetadataImage": true,
1001
+ "VHS_KeepIntermediate": true
1002
+ },
1003
+ "version": 0.4
1004
+ }