aleph65 commited on
Commit
0f1140c
·
verified ·
1 Parent(s): bf42213

Add new-krea2-faceswap-v14: v13 + FaceSegment face mask into ref_boost_mask

Browse files
workflows/api/new-krea2-faceswap-v14-raw.json ADDED
@@ -0,0 +1,320 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "1": {
3
+ "_meta": {
4
+ "title": "Load Krea 2 Diffusion Model"
5
+ },
6
+ "class_type": "UNETLoader",
7
+ "inputs": {
8
+ "unet_name": "krea2_raw_bf16.safetensors",
9
+ "weight_dtype": "default"
10
+ }
11
+ },
12
+ "10": {
13
+ "_meta": {
14
+ "title": "VAE Encode Face"
15
+ },
16
+ "class_type": "VAEEncode",
17
+ "inputs": {
18
+ "pixels": [
19
+ "9",
20
+ 0
21
+ ],
22
+ "vae": [
23
+ "4",
24
+ 0
25
+ ]
26
+ }
27
+ },
28
+ "11": {
29
+ "_meta": {
30
+ "title": "Krea2 Edit (source patch)"
31
+ },
32
+ "class_type": "Krea2EditModelPatch",
33
+ "inputs": {
34
+ "fit_mode": "fit",
35
+ "model": [
36
+ "2",
37
+ 0
38
+ ],
39
+ "ref_boost": 4.0,
40
+ "ref_boost_a": 1.0,
41
+ "ref_boost_mask": [
42
+ "12",
43
+ 1
44
+ ],
45
+ "source_image": [
46
+ "6",
47
+ 0
48
+ ],
49
+ "source_image_b": [
50
+ "9",
51
+ 0
52
+ ],
53
+ "source_latent": [
54
+ "7",
55
+ 0
56
+ ],
57
+ "source_latent_b": [
58
+ "10",
59
+ 0
60
+ ],
61
+ "vae": [
62
+ "4",
63
+ 0
64
+ ]
65
+ }
66
+ },
67
+ "12": {
68
+ "_meta": {
69
+ "title": "Face mask on reference (\u2192 ref_boost focuses here)"
70
+ },
71
+ "class_type": "FaceSegment",
72
+ "inputs": {
73
+ "Earring": false,
74
+ "Eyeglasses": false,
75
+ "Hair": false,
76
+ "Left-ear": false,
77
+ "Left-eye": true,
78
+ "Left-eyebrow": true,
79
+ "Lower-lip": true,
80
+ "Mouth": true,
81
+ "Neck": false,
82
+ "Nose": true,
83
+ "Right-ear": false,
84
+ "Right-eye": true,
85
+ "Right-eyebrow": true,
86
+ "Skin": true,
87
+ "Upper-lip": true,
88
+ "background": "Alpha",
89
+ "images": [
90
+ "9",
91
+ 0
92
+ ],
93
+ "invert_output": false,
94
+ "mask_blur": 8,
95
+ "mask_offset": 0,
96
+ "process_res": 512
97
+ }
98
+ },
99
+ "13": {
100
+ "_meta": {
101
+ "title": "Edit Instruction (grounded)"
102
+ },
103
+ "class_type": "Krea2EditGroundedEncode",
104
+ "inputs": {
105
+ "clip": [
106
+ "3",
107
+ 0
108
+ ],
109
+ "grounding_px": 1024,
110
+ "image": [
111
+ "6",
112
+ 0
113
+ ],
114
+ "image_b": [
115
+ "9",
116
+ 0
117
+ ],
118
+ "prompt": "Replace the face of the woman in image 1 with the face of the woman in image 2. Keep the pose, outfit, body, lighting and background exactly the same.",
119
+ "system_prompt": ""
120
+ }
121
+ },
122
+ "14": {
123
+ "_meta": {
124
+ "title": "Negative (grounded \u2014 used at CFG > 1)"
125
+ },
126
+ "class_type": "Krea2EditGroundedEncode",
127
+ "inputs": {
128
+ "clip": [
129
+ "3",
130
+ 0
131
+ ],
132
+ "grounding_px": 1024,
133
+ "image": [
134
+ "6",
135
+ 0
136
+ ],
137
+ "image_b": [
138
+ "9",
139
+ 0
140
+ ],
141
+ "prompt": "blurry, low quality, jpeg artifacts, oversaturated, plastic skin, deformed face, extra fingers",
142
+ "system_prompt": ""
143
+ }
144
+ },
145
+ "15": {
146
+ "_meta": {
147
+ "title": "Target Latent (auto-follows body AR)"
148
+ },
149
+ "class_type": "EmptySD3LatentImage",
150
+ "inputs": {
151
+ "batch_size": 1,
152
+ "height": [
153
+ "6",
154
+ 2
155
+ ],
156
+ "width": [
157
+ "6",
158
+ 1
159
+ ]
160
+ }
161
+ },
162
+ "16": {
163
+ "class_type": "KSampler",
164
+ "inputs": {
165
+ "cfg": 2.5,
166
+ "denoise": 1.0,
167
+ "latent_image": [
168
+ "15",
169
+ 0
170
+ ],
171
+ "model": [
172
+ "11",
173
+ 0
174
+ ],
175
+ "negative": [
176
+ "14",
177
+ 0
178
+ ],
179
+ "positive": [
180
+ "13",
181
+ 0
182
+ ],
183
+ "sampler_name": "er_sde",
184
+ "scheduler": "simple",
185
+ "seed": 42,
186
+ "steps": 50
187
+ }
188
+ },
189
+ "17": {
190
+ "class_type": "VAEDecode",
191
+ "inputs": {
192
+ "samples": [
193
+ "16",
194
+ 0
195
+ ],
196
+ "vae": [
197
+ "4",
198
+ 0
199
+ ]
200
+ }
201
+ },
202
+ "18": {
203
+ "class_type": "SaveImage",
204
+ "inputs": {
205
+ "filename_prefix": "new-krea2-faceswap-v14-raw",
206
+ "images": [
207
+ "17",
208
+ 0
209
+ ]
210
+ }
211
+ },
212
+ "2": {
213
+ "_meta": {
214
+ "title": "Identity Edit LoRA v1.2 (required)"
215
+ },
216
+ "class_type": "LoraLoaderModelOnly",
217
+ "inputs": {
218
+ "lora_name": "krea2_identity_edit_v1_2.safetensors",
219
+ "model": [
220
+ "1",
221
+ 0
222
+ ],
223
+ "strength_model": 1.0
224
+ }
225
+ },
226
+ "3": {
227
+ "_meta": {
228
+ "title": "Load Text Encoder"
229
+ },
230
+ "class_type": "CLIPLoader",
231
+ "inputs": {
232
+ "clip_name": "qwen3vl_4b_bf16.safetensors",
233
+ "device": "default",
234
+ "type": "krea2"
235
+ }
236
+ },
237
+ "4": {
238
+ "_meta": {
239
+ "title": "Load VAE"
240
+ },
241
+ "class_type": "VAELoader",
242
+ "inputs": {
243
+ "vae_name": "qwen_image_vae.safetensors"
244
+ }
245
+ },
246
+ "5": {
247
+ "_meta": {
248
+ "title": "Body / Scene Image (image 1)"
249
+ },
250
+ "class_type": "LoadImage",
251
+ "inputs": {
252
+ "image": "body.jpg"
253
+ }
254
+ },
255
+ "6": {
256
+ "_meta": {
257
+ "title": "Resize body (AR kept, /16, max 1520)"
258
+ },
259
+ "class_type": "ImageResizeKJv2",
260
+ "inputs": {
261
+ "crop_position": "center",
262
+ "device": "cpu",
263
+ "divisible_by": 16,
264
+ "height": 1520,
265
+ "image": [
266
+ "5",
267
+ 0
268
+ ],
269
+ "keep_proportion": "resize",
270
+ "pad_color": "0, 0, 0",
271
+ "upscale_method": "lanczos",
272
+ "width": 1520
273
+ }
274
+ },
275
+ "7": {
276
+ "_meta": {
277
+ "title": "VAE Encode Body"
278
+ },
279
+ "class_type": "VAEEncode",
280
+ "inputs": {
281
+ "pixels": [
282
+ "6",
283
+ 0
284
+ ],
285
+ "vae": [
286
+ "4",
287
+ 0
288
+ ]
289
+ }
290
+ },
291
+ "8": {
292
+ "_meta": {
293
+ "title": "Face Reference (image 2 \u2014 crop close to the head)"
294
+ },
295
+ "class_type": "LoadImage",
296
+ "inputs": {
297
+ "image": "face.jpg"
298
+ }
299
+ },
300
+ "9": {
301
+ "_meta": {
302
+ "title": "Resize face ref (AR kept, /16)"
303
+ },
304
+ "class_type": "ImageResizeKJv2",
305
+ "inputs": {
306
+ "crop_position": "center",
307
+ "device": "cpu",
308
+ "divisible_by": 16,
309
+ "height": 1520,
310
+ "image": [
311
+ "8",
312
+ 0
313
+ ],
314
+ "keep_proportion": "resize",
315
+ "pad_color": "0, 0, 0",
316
+ "upscale_method": "lanczos",
317
+ "width": 1520
318
+ }
319
+ }
320
+ }
workflows/api/new-krea2-faceswap-v14-turbo.json ADDED
@@ -0,0 +1,320 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "1": {
3
+ "_meta": {
4
+ "title": "Load Krea 2 Diffusion Model"
5
+ },
6
+ "class_type": "UNETLoader",
7
+ "inputs": {
8
+ "unet_name": "krea2_turbo_mxfp8.safetensors",
9
+ "weight_dtype": "default"
10
+ }
11
+ },
12
+ "10": {
13
+ "_meta": {
14
+ "title": "VAE Encode Face"
15
+ },
16
+ "class_type": "VAEEncode",
17
+ "inputs": {
18
+ "pixels": [
19
+ "9",
20
+ 0
21
+ ],
22
+ "vae": [
23
+ "4",
24
+ 0
25
+ ]
26
+ }
27
+ },
28
+ "11": {
29
+ "_meta": {
30
+ "title": "Krea2 Edit (source patch)"
31
+ },
32
+ "class_type": "Krea2EditModelPatch",
33
+ "inputs": {
34
+ "fit_mode": "fit",
35
+ "model": [
36
+ "2",
37
+ 0
38
+ ],
39
+ "ref_boost": 4.0,
40
+ "ref_boost_a": 1.0,
41
+ "ref_boost_mask": [
42
+ "12",
43
+ 1
44
+ ],
45
+ "source_image": [
46
+ "6",
47
+ 0
48
+ ],
49
+ "source_image_b": [
50
+ "9",
51
+ 0
52
+ ],
53
+ "source_latent": [
54
+ "7",
55
+ 0
56
+ ],
57
+ "source_latent_b": [
58
+ "10",
59
+ 0
60
+ ],
61
+ "vae": [
62
+ "4",
63
+ 0
64
+ ]
65
+ }
66
+ },
67
+ "12": {
68
+ "_meta": {
69
+ "title": "Face mask on reference (\u2192 ref_boost focuses here)"
70
+ },
71
+ "class_type": "FaceSegment",
72
+ "inputs": {
73
+ "Earring": false,
74
+ "Eyeglasses": false,
75
+ "Hair": false,
76
+ "Left-ear": false,
77
+ "Left-eye": true,
78
+ "Left-eyebrow": true,
79
+ "Lower-lip": true,
80
+ "Mouth": true,
81
+ "Neck": false,
82
+ "Nose": true,
83
+ "Right-ear": false,
84
+ "Right-eye": true,
85
+ "Right-eyebrow": true,
86
+ "Skin": true,
87
+ "Upper-lip": true,
88
+ "background": "Alpha",
89
+ "images": [
90
+ "9",
91
+ 0
92
+ ],
93
+ "invert_output": false,
94
+ "mask_blur": 8,
95
+ "mask_offset": 0,
96
+ "process_res": 512
97
+ }
98
+ },
99
+ "13": {
100
+ "_meta": {
101
+ "title": "Edit Instruction (grounded)"
102
+ },
103
+ "class_type": "Krea2EditGroundedEncode",
104
+ "inputs": {
105
+ "clip": [
106
+ "3",
107
+ 0
108
+ ],
109
+ "grounding_px": 1024,
110
+ "image": [
111
+ "6",
112
+ 0
113
+ ],
114
+ "image_b": [
115
+ "9",
116
+ 0
117
+ ],
118
+ "prompt": "Replace the face of the woman in image 1 with the face of the woman in image 2. Keep the pose, outfit, body, lighting and background exactly the same.",
119
+ "system_prompt": ""
120
+ }
121
+ },
122
+ "14": {
123
+ "_meta": {
124
+ "title": "Negative (grounded \u2014 used at CFG > 1)"
125
+ },
126
+ "class_type": "Krea2EditGroundedEncode",
127
+ "inputs": {
128
+ "clip": [
129
+ "3",
130
+ 0
131
+ ],
132
+ "grounding_px": 1024,
133
+ "image": [
134
+ "6",
135
+ 0
136
+ ],
137
+ "image_b": [
138
+ "9",
139
+ 0
140
+ ],
141
+ "prompt": "",
142
+ "system_prompt": ""
143
+ }
144
+ },
145
+ "15": {
146
+ "_meta": {
147
+ "title": "Target Latent (auto-follows body AR)"
148
+ },
149
+ "class_type": "EmptySD3LatentImage",
150
+ "inputs": {
151
+ "batch_size": 1,
152
+ "height": [
153
+ "6",
154
+ 2
155
+ ],
156
+ "width": [
157
+ "6",
158
+ 1
159
+ ]
160
+ }
161
+ },
162
+ "16": {
163
+ "class_type": "KSampler",
164
+ "inputs": {
165
+ "cfg": 1.0,
166
+ "denoise": 1.0,
167
+ "latent_image": [
168
+ "15",
169
+ 0
170
+ ],
171
+ "model": [
172
+ "11",
173
+ 0
174
+ ],
175
+ "negative": [
176
+ "14",
177
+ 0
178
+ ],
179
+ "positive": [
180
+ "13",
181
+ 0
182
+ ],
183
+ "sampler_name": "er_sde",
184
+ "scheduler": "simple",
185
+ "seed": 42,
186
+ "steps": 12
187
+ }
188
+ },
189
+ "17": {
190
+ "class_type": "VAEDecode",
191
+ "inputs": {
192
+ "samples": [
193
+ "16",
194
+ 0
195
+ ],
196
+ "vae": [
197
+ "4",
198
+ 0
199
+ ]
200
+ }
201
+ },
202
+ "18": {
203
+ "class_type": "SaveImage",
204
+ "inputs": {
205
+ "filename_prefix": "new-krea2-faceswap-v14-turbo",
206
+ "images": [
207
+ "17",
208
+ 0
209
+ ]
210
+ }
211
+ },
212
+ "2": {
213
+ "_meta": {
214
+ "title": "Identity Edit LoRA v1.2 (required)"
215
+ },
216
+ "class_type": "LoraLoaderModelOnly",
217
+ "inputs": {
218
+ "lora_name": "krea2_identity_edit_v1_2.safetensors",
219
+ "model": [
220
+ "1",
221
+ 0
222
+ ],
223
+ "strength_model": 1.0
224
+ }
225
+ },
226
+ "3": {
227
+ "_meta": {
228
+ "title": "Load Text Encoder"
229
+ },
230
+ "class_type": "CLIPLoader",
231
+ "inputs": {
232
+ "clip_name": "qwen3vl_4b_fp8_scaled.safetensors",
233
+ "device": "default",
234
+ "type": "krea2"
235
+ }
236
+ },
237
+ "4": {
238
+ "_meta": {
239
+ "title": "Load VAE"
240
+ },
241
+ "class_type": "VAELoader",
242
+ "inputs": {
243
+ "vae_name": "qwen_image_vae.safetensors"
244
+ }
245
+ },
246
+ "5": {
247
+ "_meta": {
248
+ "title": "Body / Scene Image (image 1)"
249
+ },
250
+ "class_type": "LoadImage",
251
+ "inputs": {
252
+ "image": "body.jpg"
253
+ }
254
+ },
255
+ "6": {
256
+ "_meta": {
257
+ "title": "Resize body (AR kept, /16, max 1520)"
258
+ },
259
+ "class_type": "ImageResizeKJv2",
260
+ "inputs": {
261
+ "crop_position": "center",
262
+ "device": "cpu",
263
+ "divisible_by": 16,
264
+ "height": 1520,
265
+ "image": [
266
+ "5",
267
+ 0
268
+ ],
269
+ "keep_proportion": "resize",
270
+ "pad_color": "0, 0, 0",
271
+ "upscale_method": "lanczos",
272
+ "width": 1520
273
+ }
274
+ },
275
+ "7": {
276
+ "_meta": {
277
+ "title": "VAE Encode Body"
278
+ },
279
+ "class_type": "VAEEncode",
280
+ "inputs": {
281
+ "pixels": [
282
+ "6",
283
+ 0
284
+ ],
285
+ "vae": [
286
+ "4",
287
+ 0
288
+ ]
289
+ }
290
+ },
291
+ "8": {
292
+ "_meta": {
293
+ "title": "Face Reference (image 2 \u2014 crop close to the head)"
294
+ },
295
+ "class_type": "LoadImage",
296
+ "inputs": {
297
+ "image": "face.jpg"
298
+ }
299
+ },
300
+ "9": {
301
+ "_meta": {
302
+ "title": "Resize face ref (AR kept, /16)"
303
+ },
304
+ "class_type": "ImageResizeKJv2",
305
+ "inputs": {
306
+ "crop_position": "center",
307
+ "device": "cpu",
308
+ "divisible_by": 16,
309
+ "height": 1520,
310
+ "image": [
311
+ "8",
312
+ 0
313
+ ],
314
+ "keep_proportion": "resize",
315
+ "pad_color": "0, 0, 0",
316
+ "upscale_method": "lanczos",
317
+ "width": 1520
318
+ }
319
+ }
320
+ }
workflows/new-krea2-faceswap-v14-raw.json ADDED
@@ -0,0 +1,1147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "last_node_id": 19,
3
+ "last_link_id": 30,
4
+ "nodes": [
5
+ {
6
+ "id": 1,
7
+ "type": "UNETLoader",
8
+ "pos": [
9
+ 40,
10
+ 60
11
+ ],
12
+ "size": [
13
+ 340,
14
+ 82
15
+ ],
16
+ "flags": {},
17
+ "order": 0,
18
+ "mode": 0,
19
+ "inputs": [],
20
+ "outputs": [
21
+ {
22
+ "name": "MODEL",
23
+ "type": "MODEL",
24
+ "links": [
25
+ 1
26
+ ],
27
+ "slot_index": 0
28
+ }
29
+ ],
30
+ "properties": {
31
+ "Node name for S&R": "UNETLoader"
32
+ },
33
+ "widgets_values": [
34
+ "krea2_raw_bf16.safetensors",
35
+ "default"
36
+ ],
37
+ "title": "Load Krea 2 Diffusion Model"
38
+ },
39
+ {
40
+ "id": 2,
41
+ "type": "LoraLoaderModelOnly",
42
+ "pos": [
43
+ 40,
44
+ 200
45
+ ],
46
+ "size": [
47
+ 340,
48
+ 82
49
+ ],
50
+ "flags": {},
51
+ "order": 1,
52
+ "mode": 0,
53
+ "inputs": [
54
+ {
55
+ "name": "model",
56
+ "type": "MODEL",
57
+ "link": 1
58
+ }
59
+ ],
60
+ "outputs": [
61
+ {
62
+ "name": "MODEL",
63
+ "type": "MODEL",
64
+ "links": [
65
+ 8
66
+ ],
67
+ "slot_index": 0
68
+ }
69
+ ],
70
+ "properties": {
71
+ "Node name for S&R": "LoraLoaderModelOnly"
72
+ },
73
+ "widgets_values": [
74
+ "krea2_identity_edit_v1_2.safetensors",
75
+ 1.0
76
+ ],
77
+ "title": "Identity Edit LoRA v1.2 (required)"
78
+ },
79
+ {
80
+ "id": 3,
81
+ "type": "CLIPLoader",
82
+ "pos": [
83
+ 40,
84
+ 340
85
+ ],
86
+ "size": [
87
+ 340,
88
+ 106
89
+ ],
90
+ "flags": {},
91
+ "order": 2,
92
+ "mode": 0,
93
+ "inputs": [],
94
+ "outputs": [
95
+ {
96
+ "name": "CLIP",
97
+ "type": "CLIP",
98
+ "links": [
99
+ 16,
100
+ 19
101
+ ],
102
+ "slot_index": 0
103
+ }
104
+ ],
105
+ "properties": {
106
+ "Node name for S&R": "CLIPLoader"
107
+ },
108
+ "widgets_values": [
109
+ "qwen3vl_4b_bf16.safetensors",
110
+ "krea2",
111
+ "default"
112
+ ],
113
+ "title": "Load Text Encoder"
114
+ },
115
+ {
116
+ "id": 4,
117
+ "type": "VAELoader",
118
+ "pos": [
119
+ 40,
120
+ 500
121
+ ],
122
+ "size": [
123
+ 340,
124
+ 58
125
+ ],
126
+ "flags": {},
127
+ "order": 3,
128
+ "mode": 0,
129
+ "inputs": [],
130
+ "outputs": [
131
+ {
132
+ "name": "VAE",
133
+ "type": "VAE",
134
+ "links": [
135
+ 4,
136
+ 7,
137
+ 11,
138
+ 29
139
+ ],
140
+ "slot_index": 0
141
+ }
142
+ ],
143
+ "properties": {
144
+ "Node name for S&R": "VAELoader"
145
+ },
146
+ "widgets_values": [
147
+ "qwen_image_vae.safetensors"
148
+ ],
149
+ "title": "Load VAE"
150
+ },
151
+ {
152
+ "id": 5,
153
+ "type": "LoadImage",
154
+ "pos": [
155
+ 40,
156
+ 620
157
+ ],
158
+ "size": [
159
+ 340,
160
+ 314
161
+ ],
162
+ "flags": {},
163
+ "order": 4,
164
+ "mode": 0,
165
+ "inputs": [],
166
+ "outputs": [
167
+ {
168
+ "name": "IMAGE",
169
+ "type": "IMAGE",
170
+ "links": [
171
+ 2
172
+ ],
173
+ "slot_index": 0
174
+ },
175
+ {
176
+ "name": "MASK",
177
+ "type": "MASK",
178
+ "links": [],
179
+ "slot_index": 1
180
+ }
181
+ ],
182
+ "properties": {
183
+ "Node name for S&R": "LoadImage"
184
+ },
185
+ "widgets_values": [
186
+ "body.jpg",
187
+ "image"
188
+ ],
189
+ "title": "Body / Scene Image (image 1)"
190
+ },
191
+ {
192
+ "id": 6,
193
+ "type": "ImageResizeKJv2",
194
+ "pos": [
195
+ 440,
196
+ 620
197
+ ],
198
+ "size": [
199
+ 320,
200
+ 240
201
+ ],
202
+ "flags": {},
203
+ "order": 5,
204
+ "mode": 0,
205
+ "inputs": [
206
+ {
207
+ "name": "image",
208
+ "type": "IMAGE",
209
+ "link": 2
210
+ }
211
+ ],
212
+ "outputs": [
213
+ {
214
+ "name": "IMAGE",
215
+ "type": "IMAGE",
216
+ "links": [
217
+ 3,
218
+ 12,
219
+ 17,
220
+ 20
221
+ ],
222
+ "slot_index": 0
223
+ },
224
+ {
225
+ "name": "width",
226
+ "type": "INT",
227
+ "links": [
228
+ 22
229
+ ],
230
+ "slot_index": 1
231
+ },
232
+ {
233
+ "name": "height",
234
+ "type": "INT",
235
+ "links": [
236
+ 23
237
+ ],
238
+ "slot_index": 2
239
+ }
240
+ ],
241
+ "properties": {
242
+ "Node name for S&R": "ImageResizeKJv2",
243
+ "cnr_id": "comfyui-kjnodes",
244
+ "ver": "93a4fba44c1635a716dc262f157a7ded7d716f3a"
245
+ },
246
+ "widgets_values": [
247
+ 1520,
248
+ 1520,
249
+ "lanczos",
250
+ "resize",
251
+ "0, 0, 0",
252
+ "center",
253
+ 16,
254
+ "cpu"
255
+ ],
256
+ "title": "Resize body (AR kept, /16, max 1520)"
257
+ },
258
+ {
259
+ "id": 7,
260
+ "type": "VAEEncode",
261
+ "pos": [
262
+ 440,
263
+ 920
264
+ ],
265
+ "size": [
266
+ 300,
267
+ 46
268
+ ],
269
+ "flags": {},
270
+ "order": 6,
271
+ "mode": 0,
272
+ "inputs": [
273
+ {
274
+ "name": "pixels",
275
+ "type": "IMAGE",
276
+ "link": 3
277
+ },
278
+ {
279
+ "name": "vae",
280
+ "type": "VAE",
281
+ "link": 4
282
+ }
283
+ ],
284
+ "outputs": [
285
+ {
286
+ "name": "LATENT",
287
+ "type": "LATENT",
288
+ "links": [
289
+ 9
290
+ ],
291
+ "slot_index": 0
292
+ }
293
+ ],
294
+ "properties": {
295
+ "Node name for S&R": "VAEEncode"
296
+ },
297
+ "title": "VAE Encode Body"
298
+ },
299
+ {
300
+ "id": 8,
301
+ "type": "LoadImage",
302
+ "pos": [
303
+ 40,
304
+ 990
305
+ ],
306
+ "size": [
307
+ 340,
308
+ 314
309
+ ],
310
+ "flags": {},
311
+ "order": 7,
312
+ "mode": 0,
313
+ "inputs": [],
314
+ "outputs": [
315
+ {
316
+ "name": "IMAGE",
317
+ "type": "IMAGE",
318
+ "links": [
319
+ 5
320
+ ],
321
+ "slot_index": 0
322
+ },
323
+ {
324
+ "name": "MASK",
325
+ "type": "MASK",
326
+ "links": [],
327
+ "slot_index": 1
328
+ }
329
+ ],
330
+ "properties": {
331
+ "Node name for S&R": "LoadImage"
332
+ },
333
+ "widgets_values": [
334
+ "face.jpg",
335
+ "image"
336
+ ],
337
+ "title": "Face Reference (image 2 \u2014 crop close to the head)"
338
+ },
339
+ {
340
+ "id": 9,
341
+ "type": "ImageResizeKJv2",
342
+ "pos": [
343
+ 440,
344
+ 990
345
+ ],
346
+ "size": [
347
+ 320,
348
+ 240
349
+ ],
350
+ "flags": {},
351
+ "order": 8,
352
+ "mode": 0,
353
+ "inputs": [
354
+ {
355
+ "name": "image",
356
+ "type": "IMAGE",
357
+ "link": 5
358
+ }
359
+ ],
360
+ "outputs": [
361
+ {
362
+ "name": "IMAGE",
363
+ "type": "IMAGE",
364
+ "links": [
365
+ 6,
366
+ 13,
367
+ 14,
368
+ 18,
369
+ 21
370
+ ],
371
+ "slot_index": 0
372
+ },
373
+ {
374
+ "name": "width",
375
+ "type": "INT",
376
+ "links": [],
377
+ "slot_index": 1
378
+ },
379
+ {
380
+ "name": "height",
381
+ "type": "INT",
382
+ "links": [],
383
+ "slot_index": 2
384
+ }
385
+ ],
386
+ "properties": {
387
+ "Node name for S&R": "ImageResizeKJv2",
388
+ "cnr_id": "comfyui-kjnodes",
389
+ "ver": "93a4fba44c1635a716dc262f157a7ded7d716f3a"
390
+ },
391
+ "widgets_values": [
392
+ 1520,
393
+ 1520,
394
+ "lanczos",
395
+ "resize",
396
+ "0, 0, 0",
397
+ "center",
398
+ 16,
399
+ "cpu"
400
+ ],
401
+ "title": "Resize face ref (AR kept, /16)"
402
+ },
403
+ {
404
+ "id": 10,
405
+ "type": "VAEEncode",
406
+ "pos": [
407
+ 440,
408
+ 1290
409
+ ],
410
+ "size": [
411
+ 300,
412
+ 46
413
+ ],
414
+ "flags": {},
415
+ "order": 9,
416
+ "mode": 0,
417
+ "inputs": [
418
+ {
419
+ "name": "pixels",
420
+ "type": "IMAGE",
421
+ "link": 6
422
+ },
423
+ {
424
+ "name": "vae",
425
+ "type": "VAE",
426
+ "link": 7
427
+ }
428
+ ],
429
+ "outputs": [
430
+ {
431
+ "name": "LATENT",
432
+ "type": "LATENT",
433
+ "links": [
434
+ 10
435
+ ],
436
+ "slot_index": 0
437
+ }
438
+ ],
439
+ "properties": {
440
+ "Node name for S&R": "VAEEncode"
441
+ },
442
+ "title": "VAE Encode Face"
443
+ },
444
+ {
445
+ "id": 11,
446
+ "type": "Krea2EditModelPatch",
447
+ "pos": [
448
+ 800,
449
+ 440
450
+ ],
451
+ "size": [
452
+ 300,
453
+ 190
454
+ ],
455
+ "flags": {},
456
+ "order": 10,
457
+ "mode": 0,
458
+ "inputs": [
459
+ {
460
+ "name": "model",
461
+ "type": "MODEL",
462
+ "link": 8
463
+ },
464
+ {
465
+ "name": "source_latent",
466
+ "type": "LATENT",
467
+ "link": 9
468
+ },
469
+ {
470
+ "name": "source_latent_b",
471
+ "type": "LATENT",
472
+ "link": 10
473
+ },
474
+ {
475
+ "name": "ref_boost_mask",
476
+ "type": "MASK",
477
+ "link": 15
478
+ },
479
+ {
480
+ "name": "vae",
481
+ "type": "VAE",
482
+ "link": 11
483
+ },
484
+ {
485
+ "name": "source_image",
486
+ "type": "IMAGE",
487
+ "link": 12
488
+ },
489
+ {
490
+ "name": "source_image_b",
491
+ "type": "IMAGE",
492
+ "link": 13
493
+ }
494
+ ],
495
+ "outputs": [
496
+ {
497
+ "name": "MODEL",
498
+ "type": "MODEL",
499
+ "links": [
500
+ 24
501
+ ],
502
+ "slot_index": 0
503
+ }
504
+ ],
505
+ "properties": {
506
+ "Node name for S&R": "Krea2EditModelPatch",
507
+ "aux_id": "lbouaraba/comfyui-krea2edit",
508
+ "ver": "207c52d52b25f5ed23cd9bc5c2d88c6cf3026686"
509
+ },
510
+ "widgets_values": [
511
+ 4.0,
512
+ 1.0,
513
+ "fit"
514
+ ],
515
+ "title": "Krea2 Edit (source patch)"
516
+ },
517
+ {
518
+ "id": 12,
519
+ "type": "FaceSegment",
520
+ "pos": [
521
+ 800,
522
+ 60
523
+ ],
524
+ "size": [
525
+ 320,
526
+ 360
527
+ ],
528
+ "flags": {},
529
+ "order": 11,
530
+ "mode": 0,
531
+ "inputs": [
532
+ {
533
+ "name": "images",
534
+ "type": "IMAGE",
535
+ "link": 14
536
+ }
537
+ ],
538
+ "outputs": [
539
+ {
540
+ "name": "IMAGE",
541
+ "type": "IMAGE",
542
+ "links": [],
543
+ "slot_index": 0
544
+ },
545
+ {
546
+ "name": "MASK",
547
+ "type": "MASK",
548
+ "links": [
549
+ 15
550
+ ],
551
+ "slot_index": 1
552
+ },
553
+ {
554
+ "name": "MASK_IMAGE",
555
+ "type": "IMAGE",
556
+ "links": [],
557
+ "slot_index": 2
558
+ }
559
+ ],
560
+ "properties": {
561
+ "Node name for S&R": "FaceSegment",
562
+ "cnr_id": "comfyui-rmbg",
563
+ "ver": "7f0668e2f5127c0fbf11e346b33ce45d6dc34bf7"
564
+ },
565
+ "widgets_values": [
566
+ true,
567
+ true,
568
+ false,
569
+ true,
570
+ true,
571
+ true,
572
+ true,
573
+ false,
574
+ false,
575
+ true,
576
+ true,
577
+ true,
578
+ false,
579
+ false,
580
+ false,
581
+ 512,
582
+ 8,
583
+ 0,
584
+ false,
585
+ "Alpha",
586
+ "#222222"
587
+ ],
588
+ "title": "Face mask on reference (\u2192 ref_boost focuses here)"
589
+ },
590
+ {
591
+ "id": 13,
592
+ "type": "Krea2EditGroundedEncode",
593
+ "pos": [
594
+ 440,
595
+ 60
596
+ ],
597
+ "size": [
598
+ 420,
599
+ 190
600
+ ],
601
+ "flags": {},
602
+ "order": 12,
603
+ "mode": 0,
604
+ "inputs": [
605
+ {
606
+ "name": "clip",
607
+ "type": "CLIP",
608
+ "link": 16
609
+ },
610
+ {
611
+ "name": "image",
612
+ "type": "IMAGE",
613
+ "link": 17
614
+ },
615
+ {
616
+ "name": "image_b",
617
+ "type": "IMAGE",
618
+ "link": 18
619
+ }
620
+ ],
621
+ "outputs": [
622
+ {
623
+ "name": "CONDITIONING",
624
+ "type": "CONDITIONING",
625
+ "links": [
626
+ 25
627
+ ],
628
+ "slot_index": 0
629
+ }
630
+ ],
631
+ "properties": {
632
+ "Node name for S&R": "Krea2EditGroundedEncode",
633
+ "aux_id": "lbouaraba/comfyui-krea2edit",
634
+ "ver": "207c52d52b25f5ed23cd9bc5c2d88c6cf3026686"
635
+ },
636
+ "widgets_values": [
637
+ "Replace the face of the woman in image 1 with the face of the woman in image 2. Keep the pose, outfit, body, lighting and background exactly the same.",
638
+ 1024,
639
+ ""
640
+ ],
641
+ "title": "Edit Instruction (grounded)"
642
+ },
643
+ {
644
+ "id": 14,
645
+ "type": "Krea2EditGroundedEncode",
646
+ "pos": [
647
+ 440,
648
+ 300
649
+ ],
650
+ "size": [
651
+ 420,
652
+ 130
653
+ ],
654
+ "flags": {},
655
+ "order": 13,
656
+ "mode": 0,
657
+ "inputs": [
658
+ {
659
+ "name": "clip",
660
+ "type": "CLIP",
661
+ "link": 19
662
+ },
663
+ {
664
+ "name": "image",
665
+ "type": "IMAGE",
666
+ "link": 20
667
+ },
668
+ {
669
+ "name": "image_b",
670
+ "type": "IMAGE",
671
+ "link": 21
672
+ }
673
+ ],
674
+ "outputs": [
675
+ {
676
+ "name": "CONDITIONING",
677
+ "type": "CONDITIONING",
678
+ "links": [
679
+ 26
680
+ ],
681
+ "slot_index": 0
682
+ }
683
+ ],
684
+ "properties": {
685
+ "Node name for S&R": "Krea2EditGroundedEncode",
686
+ "aux_id": "lbouaraba/comfyui-krea2edit",
687
+ "ver": "207c52d52b25f5ed23cd9bc5c2d88c6cf3026686"
688
+ },
689
+ "widgets_values": [
690
+ "blurry, low quality, jpeg artifacts, oversaturated, plastic skin, deformed face, extra fingers",
691
+ 1024,
692
+ ""
693
+ ],
694
+ "title": "Negative (grounded \u2014 used at CFG > 1)"
695
+ },
696
+ {
697
+ "id": 15,
698
+ "type": "EmptySD3LatentImage",
699
+ "pos": [
700
+ 800,
701
+ 680
702
+ ],
703
+ "size": [
704
+ 300,
705
+ 106
706
+ ],
707
+ "flags": {},
708
+ "order": 14,
709
+ "mode": 0,
710
+ "inputs": [
711
+ {
712
+ "name": "width",
713
+ "type": "INT",
714
+ "link": 22,
715
+ "widget": {
716
+ "name": "width"
717
+ }
718
+ },
719
+ {
720
+ "name": "height",
721
+ "type": "INT",
722
+ "link": 23,
723
+ "widget": {
724
+ "name": "height"
725
+ }
726
+ }
727
+ ],
728
+ "outputs": [
729
+ {
730
+ "name": "LATENT",
731
+ "type": "LATENT",
732
+ "links": [
733
+ 27
734
+ ],
735
+ "slot_index": 0
736
+ }
737
+ ],
738
+ "properties": {
739
+ "Node name for S&R": "EmptySD3LatentImage"
740
+ },
741
+ "widgets_values": [
742
+ 1216,
743
+ 1520,
744
+ 1
745
+ ],
746
+ "title": "Target Latent (auto-follows body AR)"
747
+ },
748
+ {
749
+ "id": 16,
750
+ "type": "KSampler",
751
+ "pos": [
752
+ 1160,
753
+ 60
754
+ ],
755
+ "size": [
756
+ 315,
757
+ 262
758
+ ],
759
+ "flags": {},
760
+ "order": 15,
761
+ "mode": 0,
762
+ "inputs": [
763
+ {
764
+ "name": "model",
765
+ "type": "MODEL",
766
+ "link": 24
767
+ },
768
+ {
769
+ "name": "positive",
770
+ "type": "CONDITIONING",
771
+ "link": 25
772
+ },
773
+ {
774
+ "name": "negative",
775
+ "type": "CONDITIONING",
776
+ "link": 26
777
+ },
778
+ {
779
+ "name": "latent_image",
780
+ "type": "LATENT",
781
+ "link": 27
782
+ }
783
+ ],
784
+ "outputs": [
785
+ {
786
+ "name": "LATENT",
787
+ "type": "LATENT",
788
+ "links": [
789
+ 28
790
+ ],
791
+ "slot_index": 0
792
+ }
793
+ ],
794
+ "properties": {
795
+ "Node name for S&R": "KSampler"
796
+ },
797
+ "widgets_values": [
798
+ 42,
799
+ "randomize",
800
+ 50,
801
+ 2.5,
802
+ "er_sde",
803
+ "simple",
804
+ 1.0
805
+ ]
806
+ },
807
+ {
808
+ "id": 17,
809
+ "type": "VAEDecode",
810
+ "pos": [
811
+ 1160,
812
+ 380
813
+ ],
814
+ "size": [
815
+ 210,
816
+ 46
817
+ ],
818
+ "flags": {},
819
+ "order": 16,
820
+ "mode": 0,
821
+ "inputs": [
822
+ {
823
+ "name": "samples",
824
+ "type": "LATENT",
825
+ "link": 28
826
+ },
827
+ {
828
+ "name": "vae",
829
+ "type": "VAE",
830
+ "link": 29
831
+ }
832
+ ],
833
+ "outputs": [
834
+ {
835
+ "name": "IMAGE",
836
+ "type": "IMAGE",
837
+ "links": [
838
+ 30
839
+ ],
840
+ "slot_index": 0
841
+ }
842
+ ],
843
+ "properties": {
844
+ "Node name for S&R": "VAEDecode"
845
+ }
846
+ },
847
+ {
848
+ "id": 18,
849
+ "type": "SaveImage",
850
+ "pos": [
851
+ 1160,
852
+ 480
853
+ ],
854
+ "size": [
855
+ 360,
856
+ 270
857
+ ],
858
+ "flags": {},
859
+ "order": 17,
860
+ "mode": 0,
861
+ "inputs": [
862
+ {
863
+ "name": "images",
864
+ "type": "IMAGE",
865
+ "link": 30
866
+ }
867
+ ],
868
+ "outputs": [],
869
+ "properties": {
870
+ "Node name for S&R": "SaveImage"
871
+ },
872
+ "widgets_values": [
873
+ "new-krea2-faceswap-v14-raw"
874
+ ]
875
+ },
876
+ {
877
+ "id": 19,
878
+ "type": "MarkdownNote",
879
+ "pos": [
880
+ 1540,
881
+ 60
882
+ ],
883
+ "size": [
884
+ 520,
885
+ 460
886
+ ],
887
+ "flags": {},
888
+ "order": 18,
889
+ "mode": 0,
890
+ "inputs": [],
891
+ "outputs": [],
892
+ "properties": {
893
+ "Node name for S&R": "MarkdownNote"
894
+ },
895
+ "widgets_values": [
896
+ "## Krea 2 FACE SWAP v14 \u2014 RAW bf16 + face-masked ref_boost (max quality)\n\n**v14 = v13 + focused face boost (`ref_boost_mask`):**\n\nA **FaceSegment** node (ComfyUI-RMBG, `1038lab/segformer_face` \u2014 auto-downloads to `models/RMBG/segformer_face/` on first run) segments the facial features of the reference (skin, eyes, brows, nose, lips; hair/neck/ears excluded so hairstyle follows the body image) and feeds the mask into the patch node's `ref_boost_mask`. The `ref_boost: 4` attention pull then concentrates on the face region instead of the whole reference.\n\nAll v13 improvements retained: output follows the body image's aspect ratio (long edge 1520, dims /16, \u22641.85MP), `grounding_px 1024`, v1_2 LoRA @1.0, `fit_mode: fit`, `er_sde`. Body/scene = image 1, face ref = image 2 (fixed order). Tune the mask via the FaceSegment toggles (e.g. add Hair to also transfer hairstyle) or `mask_blur`.\n\nNeeds [comfyui-krea2edit](https://github.com/lbouaraba/comfyui-krea2edit) + ComfyUI-KJNodes + ComfyUI-RMBG. Models: [conradlocke/krea2-identity-edit](https://huggingface.co/conradlocke/krea2-identity-edit) + Comfy-Org/Krea-2 (mirrored in our HF repo).\n\nRaw bf16 with bf16 text encoder, 50 steps / CFG 2.5 / `er_sde` (H100-class VRAM). Note: raw at CFG > 1 has seed-to-seed variance \u2014 reroll if an edit drifts."
897
+ ],
898
+ "title": "About this workflow"
899
+ }
900
+ ],
901
+ "links": [
902
+ [
903
+ 1,
904
+ 1,
905
+ 0,
906
+ 2,
907
+ 0,
908
+ "MODEL"
909
+ ],
910
+ [
911
+ 2,
912
+ 5,
913
+ 0,
914
+ 6,
915
+ 0,
916
+ "IMAGE"
917
+ ],
918
+ [
919
+ 3,
920
+ 6,
921
+ 0,
922
+ 7,
923
+ 0,
924
+ "IMAGE"
925
+ ],
926
+ [
927
+ 4,
928
+ 4,
929
+ 0,
930
+ 7,
931
+ 1,
932
+ "VAE"
933
+ ],
934
+ [
935
+ 5,
936
+ 8,
937
+ 0,
938
+ 9,
939
+ 0,
940
+ "IMAGE"
941
+ ],
942
+ [
943
+ 6,
944
+ 9,
945
+ 0,
946
+ 10,
947
+ 0,
948
+ "IMAGE"
949
+ ],
950
+ [
951
+ 7,
952
+ 4,
953
+ 0,
954
+ 10,
955
+ 1,
956
+ "VAE"
957
+ ],
958
+ [
959
+ 8,
960
+ 2,
961
+ 0,
962
+ 11,
963
+ 0,
964
+ "MODEL"
965
+ ],
966
+ [
967
+ 9,
968
+ 7,
969
+ 0,
970
+ 11,
971
+ 1,
972
+ "LATENT"
973
+ ],
974
+ [
975
+ 10,
976
+ 10,
977
+ 0,
978
+ 11,
979
+ 2,
980
+ "LATENT"
981
+ ],
982
+ [
983
+ 11,
984
+ 4,
985
+ 0,
986
+ 11,
987
+ 4,
988
+ "VAE"
989
+ ],
990
+ [
991
+ 12,
992
+ 6,
993
+ 0,
994
+ 11,
995
+ 5,
996
+ "IMAGE"
997
+ ],
998
+ [
999
+ 13,
1000
+ 9,
1001
+ 0,
1002
+ 11,
1003
+ 6,
1004
+ "IMAGE"
1005
+ ],
1006
+ [
1007
+ 14,
1008
+ 9,
1009
+ 0,
1010
+ 12,
1011
+ 0,
1012
+ "IMAGE"
1013
+ ],
1014
+ [
1015
+ 15,
1016
+ 12,
1017
+ 1,
1018
+ 11,
1019
+ 3,
1020
+ "MASK"
1021
+ ],
1022
+ [
1023
+ 16,
1024
+ 3,
1025
+ 0,
1026
+ 13,
1027
+ 0,
1028
+ "CLIP"
1029
+ ],
1030
+ [
1031
+ 17,
1032
+ 6,
1033
+ 0,
1034
+ 13,
1035
+ 1,
1036
+ "IMAGE"
1037
+ ],
1038
+ [
1039
+ 18,
1040
+ 9,
1041
+ 0,
1042
+ 13,
1043
+ 2,
1044
+ "IMAGE"
1045
+ ],
1046
+ [
1047
+ 19,
1048
+ 3,
1049
+ 0,
1050
+ 14,
1051
+ 0,
1052
+ "CLIP"
1053
+ ],
1054
+ [
1055
+ 20,
1056
+ 6,
1057
+ 0,
1058
+ 14,
1059
+ 1,
1060
+ "IMAGE"
1061
+ ],
1062
+ [
1063
+ 21,
1064
+ 9,
1065
+ 0,
1066
+ 14,
1067
+ 2,
1068
+ "IMAGE"
1069
+ ],
1070
+ [
1071
+ 22,
1072
+ 6,
1073
+ 1,
1074
+ 15,
1075
+ 0,
1076
+ "INT"
1077
+ ],
1078
+ [
1079
+ 23,
1080
+ 6,
1081
+ 2,
1082
+ 15,
1083
+ 1,
1084
+ "INT"
1085
+ ],
1086
+ [
1087
+ 24,
1088
+ 11,
1089
+ 0,
1090
+ 16,
1091
+ 0,
1092
+ "MODEL"
1093
+ ],
1094
+ [
1095
+ 25,
1096
+ 13,
1097
+ 0,
1098
+ 16,
1099
+ 1,
1100
+ "CONDITIONING"
1101
+ ],
1102
+ [
1103
+ 26,
1104
+ 14,
1105
+ 0,
1106
+ 16,
1107
+ 2,
1108
+ "CONDITIONING"
1109
+ ],
1110
+ [
1111
+ 27,
1112
+ 15,
1113
+ 0,
1114
+ 16,
1115
+ 3,
1116
+ "LATENT"
1117
+ ],
1118
+ [
1119
+ 28,
1120
+ 16,
1121
+ 0,
1122
+ 17,
1123
+ 0,
1124
+ "LATENT"
1125
+ ],
1126
+ [
1127
+ 29,
1128
+ 4,
1129
+ 0,
1130
+ 17,
1131
+ 1,
1132
+ "VAE"
1133
+ ],
1134
+ [
1135
+ 30,
1136
+ 17,
1137
+ 0,
1138
+ 18,
1139
+ 0,
1140
+ "IMAGE"
1141
+ ]
1142
+ ],
1143
+ "groups": [],
1144
+ "config": {},
1145
+ "extra": {},
1146
+ "version": 0.4
1147
+ }
workflows/new-krea2-faceswap-v14-turbo.json ADDED
@@ -0,0 +1,1147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "last_node_id": 19,
3
+ "last_link_id": 30,
4
+ "nodes": [
5
+ {
6
+ "id": 1,
7
+ "type": "UNETLoader",
8
+ "pos": [
9
+ 40,
10
+ 60
11
+ ],
12
+ "size": [
13
+ 340,
14
+ 82
15
+ ],
16
+ "flags": {},
17
+ "order": 0,
18
+ "mode": 0,
19
+ "inputs": [],
20
+ "outputs": [
21
+ {
22
+ "name": "MODEL",
23
+ "type": "MODEL",
24
+ "links": [
25
+ 1
26
+ ],
27
+ "slot_index": 0
28
+ }
29
+ ],
30
+ "properties": {
31
+ "Node name for S&R": "UNETLoader"
32
+ },
33
+ "widgets_values": [
34
+ "krea2_turbo_mxfp8.safetensors",
35
+ "default"
36
+ ],
37
+ "title": "Load Krea 2 Diffusion Model"
38
+ },
39
+ {
40
+ "id": 2,
41
+ "type": "LoraLoaderModelOnly",
42
+ "pos": [
43
+ 40,
44
+ 200
45
+ ],
46
+ "size": [
47
+ 340,
48
+ 82
49
+ ],
50
+ "flags": {},
51
+ "order": 1,
52
+ "mode": 0,
53
+ "inputs": [
54
+ {
55
+ "name": "model",
56
+ "type": "MODEL",
57
+ "link": 1
58
+ }
59
+ ],
60
+ "outputs": [
61
+ {
62
+ "name": "MODEL",
63
+ "type": "MODEL",
64
+ "links": [
65
+ 8
66
+ ],
67
+ "slot_index": 0
68
+ }
69
+ ],
70
+ "properties": {
71
+ "Node name for S&R": "LoraLoaderModelOnly"
72
+ },
73
+ "widgets_values": [
74
+ "krea2_identity_edit_v1_2.safetensors",
75
+ 1.0
76
+ ],
77
+ "title": "Identity Edit LoRA v1.2 (required)"
78
+ },
79
+ {
80
+ "id": 3,
81
+ "type": "CLIPLoader",
82
+ "pos": [
83
+ 40,
84
+ 340
85
+ ],
86
+ "size": [
87
+ 340,
88
+ 106
89
+ ],
90
+ "flags": {},
91
+ "order": 2,
92
+ "mode": 0,
93
+ "inputs": [],
94
+ "outputs": [
95
+ {
96
+ "name": "CLIP",
97
+ "type": "CLIP",
98
+ "links": [
99
+ 16,
100
+ 19
101
+ ],
102
+ "slot_index": 0
103
+ }
104
+ ],
105
+ "properties": {
106
+ "Node name for S&R": "CLIPLoader"
107
+ },
108
+ "widgets_values": [
109
+ "qwen3vl_4b_fp8_scaled.safetensors",
110
+ "krea2",
111
+ "default"
112
+ ],
113
+ "title": "Load Text Encoder"
114
+ },
115
+ {
116
+ "id": 4,
117
+ "type": "VAELoader",
118
+ "pos": [
119
+ 40,
120
+ 500
121
+ ],
122
+ "size": [
123
+ 340,
124
+ 58
125
+ ],
126
+ "flags": {},
127
+ "order": 3,
128
+ "mode": 0,
129
+ "inputs": [],
130
+ "outputs": [
131
+ {
132
+ "name": "VAE",
133
+ "type": "VAE",
134
+ "links": [
135
+ 4,
136
+ 7,
137
+ 11,
138
+ 29
139
+ ],
140
+ "slot_index": 0
141
+ }
142
+ ],
143
+ "properties": {
144
+ "Node name for S&R": "VAELoader"
145
+ },
146
+ "widgets_values": [
147
+ "qwen_image_vae.safetensors"
148
+ ],
149
+ "title": "Load VAE"
150
+ },
151
+ {
152
+ "id": 5,
153
+ "type": "LoadImage",
154
+ "pos": [
155
+ 40,
156
+ 620
157
+ ],
158
+ "size": [
159
+ 340,
160
+ 314
161
+ ],
162
+ "flags": {},
163
+ "order": 4,
164
+ "mode": 0,
165
+ "inputs": [],
166
+ "outputs": [
167
+ {
168
+ "name": "IMAGE",
169
+ "type": "IMAGE",
170
+ "links": [
171
+ 2
172
+ ],
173
+ "slot_index": 0
174
+ },
175
+ {
176
+ "name": "MASK",
177
+ "type": "MASK",
178
+ "links": [],
179
+ "slot_index": 1
180
+ }
181
+ ],
182
+ "properties": {
183
+ "Node name for S&R": "LoadImage"
184
+ },
185
+ "widgets_values": [
186
+ "body.jpg",
187
+ "image"
188
+ ],
189
+ "title": "Body / Scene Image (image 1)"
190
+ },
191
+ {
192
+ "id": 6,
193
+ "type": "ImageResizeKJv2",
194
+ "pos": [
195
+ 440,
196
+ 620
197
+ ],
198
+ "size": [
199
+ 320,
200
+ 240
201
+ ],
202
+ "flags": {},
203
+ "order": 5,
204
+ "mode": 0,
205
+ "inputs": [
206
+ {
207
+ "name": "image",
208
+ "type": "IMAGE",
209
+ "link": 2
210
+ }
211
+ ],
212
+ "outputs": [
213
+ {
214
+ "name": "IMAGE",
215
+ "type": "IMAGE",
216
+ "links": [
217
+ 3,
218
+ 12,
219
+ 17,
220
+ 20
221
+ ],
222
+ "slot_index": 0
223
+ },
224
+ {
225
+ "name": "width",
226
+ "type": "INT",
227
+ "links": [
228
+ 22
229
+ ],
230
+ "slot_index": 1
231
+ },
232
+ {
233
+ "name": "height",
234
+ "type": "INT",
235
+ "links": [
236
+ 23
237
+ ],
238
+ "slot_index": 2
239
+ }
240
+ ],
241
+ "properties": {
242
+ "Node name for S&R": "ImageResizeKJv2",
243
+ "cnr_id": "comfyui-kjnodes",
244
+ "ver": "93a4fba44c1635a716dc262f157a7ded7d716f3a"
245
+ },
246
+ "widgets_values": [
247
+ 1520,
248
+ 1520,
249
+ "lanczos",
250
+ "resize",
251
+ "0, 0, 0",
252
+ "center",
253
+ 16,
254
+ "cpu"
255
+ ],
256
+ "title": "Resize body (AR kept, /16, max 1520)"
257
+ },
258
+ {
259
+ "id": 7,
260
+ "type": "VAEEncode",
261
+ "pos": [
262
+ 440,
263
+ 920
264
+ ],
265
+ "size": [
266
+ 300,
267
+ 46
268
+ ],
269
+ "flags": {},
270
+ "order": 6,
271
+ "mode": 0,
272
+ "inputs": [
273
+ {
274
+ "name": "pixels",
275
+ "type": "IMAGE",
276
+ "link": 3
277
+ },
278
+ {
279
+ "name": "vae",
280
+ "type": "VAE",
281
+ "link": 4
282
+ }
283
+ ],
284
+ "outputs": [
285
+ {
286
+ "name": "LATENT",
287
+ "type": "LATENT",
288
+ "links": [
289
+ 9
290
+ ],
291
+ "slot_index": 0
292
+ }
293
+ ],
294
+ "properties": {
295
+ "Node name for S&R": "VAEEncode"
296
+ },
297
+ "title": "VAE Encode Body"
298
+ },
299
+ {
300
+ "id": 8,
301
+ "type": "LoadImage",
302
+ "pos": [
303
+ 40,
304
+ 990
305
+ ],
306
+ "size": [
307
+ 340,
308
+ 314
309
+ ],
310
+ "flags": {},
311
+ "order": 7,
312
+ "mode": 0,
313
+ "inputs": [],
314
+ "outputs": [
315
+ {
316
+ "name": "IMAGE",
317
+ "type": "IMAGE",
318
+ "links": [
319
+ 5
320
+ ],
321
+ "slot_index": 0
322
+ },
323
+ {
324
+ "name": "MASK",
325
+ "type": "MASK",
326
+ "links": [],
327
+ "slot_index": 1
328
+ }
329
+ ],
330
+ "properties": {
331
+ "Node name for S&R": "LoadImage"
332
+ },
333
+ "widgets_values": [
334
+ "face.jpg",
335
+ "image"
336
+ ],
337
+ "title": "Face Reference (image 2 \u2014 crop close to the head)"
338
+ },
339
+ {
340
+ "id": 9,
341
+ "type": "ImageResizeKJv2",
342
+ "pos": [
343
+ 440,
344
+ 990
345
+ ],
346
+ "size": [
347
+ 320,
348
+ 240
349
+ ],
350
+ "flags": {},
351
+ "order": 8,
352
+ "mode": 0,
353
+ "inputs": [
354
+ {
355
+ "name": "image",
356
+ "type": "IMAGE",
357
+ "link": 5
358
+ }
359
+ ],
360
+ "outputs": [
361
+ {
362
+ "name": "IMAGE",
363
+ "type": "IMAGE",
364
+ "links": [
365
+ 6,
366
+ 13,
367
+ 14,
368
+ 18,
369
+ 21
370
+ ],
371
+ "slot_index": 0
372
+ },
373
+ {
374
+ "name": "width",
375
+ "type": "INT",
376
+ "links": [],
377
+ "slot_index": 1
378
+ },
379
+ {
380
+ "name": "height",
381
+ "type": "INT",
382
+ "links": [],
383
+ "slot_index": 2
384
+ }
385
+ ],
386
+ "properties": {
387
+ "Node name for S&R": "ImageResizeKJv2",
388
+ "cnr_id": "comfyui-kjnodes",
389
+ "ver": "93a4fba44c1635a716dc262f157a7ded7d716f3a"
390
+ },
391
+ "widgets_values": [
392
+ 1520,
393
+ 1520,
394
+ "lanczos",
395
+ "resize",
396
+ "0, 0, 0",
397
+ "center",
398
+ 16,
399
+ "cpu"
400
+ ],
401
+ "title": "Resize face ref (AR kept, /16)"
402
+ },
403
+ {
404
+ "id": 10,
405
+ "type": "VAEEncode",
406
+ "pos": [
407
+ 440,
408
+ 1290
409
+ ],
410
+ "size": [
411
+ 300,
412
+ 46
413
+ ],
414
+ "flags": {},
415
+ "order": 9,
416
+ "mode": 0,
417
+ "inputs": [
418
+ {
419
+ "name": "pixels",
420
+ "type": "IMAGE",
421
+ "link": 6
422
+ },
423
+ {
424
+ "name": "vae",
425
+ "type": "VAE",
426
+ "link": 7
427
+ }
428
+ ],
429
+ "outputs": [
430
+ {
431
+ "name": "LATENT",
432
+ "type": "LATENT",
433
+ "links": [
434
+ 10
435
+ ],
436
+ "slot_index": 0
437
+ }
438
+ ],
439
+ "properties": {
440
+ "Node name for S&R": "VAEEncode"
441
+ },
442
+ "title": "VAE Encode Face"
443
+ },
444
+ {
445
+ "id": 11,
446
+ "type": "Krea2EditModelPatch",
447
+ "pos": [
448
+ 800,
449
+ 440
450
+ ],
451
+ "size": [
452
+ 300,
453
+ 190
454
+ ],
455
+ "flags": {},
456
+ "order": 10,
457
+ "mode": 0,
458
+ "inputs": [
459
+ {
460
+ "name": "model",
461
+ "type": "MODEL",
462
+ "link": 8
463
+ },
464
+ {
465
+ "name": "source_latent",
466
+ "type": "LATENT",
467
+ "link": 9
468
+ },
469
+ {
470
+ "name": "source_latent_b",
471
+ "type": "LATENT",
472
+ "link": 10
473
+ },
474
+ {
475
+ "name": "ref_boost_mask",
476
+ "type": "MASK",
477
+ "link": 15
478
+ },
479
+ {
480
+ "name": "vae",
481
+ "type": "VAE",
482
+ "link": 11
483
+ },
484
+ {
485
+ "name": "source_image",
486
+ "type": "IMAGE",
487
+ "link": 12
488
+ },
489
+ {
490
+ "name": "source_image_b",
491
+ "type": "IMAGE",
492
+ "link": 13
493
+ }
494
+ ],
495
+ "outputs": [
496
+ {
497
+ "name": "MODEL",
498
+ "type": "MODEL",
499
+ "links": [
500
+ 24
501
+ ],
502
+ "slot_index": 0
503
+ }
504
+ ],
505
+ "properties": {
506
+ "Node name for S&R": "Krea2EditModelPatch",
507
+ "aux_id": "lbouaraba/comfyui-krea2edit",
508
+ "ver": "207c52d52b25f5ed23cd9bc5c2d88c6cf3026686"
509
+ },
510
+ "widgets_values": [
511
+ 4.0,
512
+ 1.0,
513
+ "fit"
514
+ ],
515
+ "title": "Krea2 Edit (source patch)"
516
+ },
517
+ {
518
+ "id": 12,
519
+ "type": "FaceSegment",
520
+ "pos": [
521
+ 800,
522
+ 60
523
+ ],
524
+ "size": [
525
+ 320,
526
+ 360
527
+ ],
528
+ "flags": {},
529
+ "order": 11,
530
+ "mode": 0,
531
+ "inputs": [
532
+ {
533
+ "name": "images",
534
+ "type": "IMAGE",
535
+ "link": 14
536
+ }
537
+ ],
538
+ "outputs": [
539
+ {
540
+ "name": "IMAGE",
541
+ "type": "IMAGE",
542
+ "links": [],
543
+ "slot_index": 0
544
+ },
545
+ {
546
+ "name": "MASK",
547
+ "type": "MASK",
548
+ "links": [
549
+ 15
550
+ ],
551
+ "slot_index": 1
552
+ },
553
+ {
554
+ "name": "MASK_IMAGE",
555
+ "type": "IMAGE",
556
+ "links": [],
557
+ "slot_index": 2
558
+ }
559
+ ],
560
+ "properties": {
561
+ "Node name for S&R": "FaceSegment",
562
+ "cnr_id": "comfyui-rmbg",
563
+ "ver": "7f0668e2f5127c0fbf11e346b33ce45d6dc34bf7"
564
+ },
565
+ "widgets_values": [
566
+ true,
567
+ true,
568
+ false,
569
+ true,
570
+ true,
571
+ true,
572
+ true,
573
+ false,
574
+ false,
575
+ true,
576
+ true,
577
+ true,
578
+ false,
579
+ false,
580
+ false,
581
+ 512,
582
+ 8,
583
+ 0,
584
+ false,
585
+ "Alpha",
586
+ "#222222"
587
+ ],
588
+ "title": "Face mask on reference (\u2192 ref_boost focuses here)"
589
+ },
590
+ {
591
+ "id": 13,
592
+ "type": "Krea2EditGroundedEncode",
593
+ "pos": [
594
+ 440,
595
+ 60
596
+ ],
597
+ "size": [
598
+ 420,
599
+ 190
600
+ ],
601
+ "flags": {},
602
+ "order": 12,
603
+ "mode": 0,
604
+ "inputs": [
605
+ {
606
+ "name": "clip",
607
+ "type": "CLIP",
608
+ "link": 16
609
+ },
610
+ {
611
+ "name": "image",
612
+ "type": "IMAGE",
613
+ "link": 17
614
+ },
615
+ {
616
+ "name": "image_b",
617
+ "type": "IMAGE",
618
+ "link": 18
619
+ }
620
+ ],
621
+ "outputs": [
622
+ {
623
+ "name": "CONDITIONING",
624
+ "type": "CONDITIONING",
625
+ "links": [
626
+ 25
627
+ ],
628
+ "slot_index": 0
629
+ }
630
+ ],
631
+ "properties": {
632
+ "Node name for S&R": "Krea2EditGroundedEncode",
633
+ "aux_id": "lbouaraba/comfyui-krea2edit",
634
+ "ver": "207c52d52b25f5ed23cd9bc5c2d88c6cf3026686"
635
+ },
636
+ "widgets_values": [
637
+ "Replace the face of the woman in image 1 with the face of the woman in image 2. Keep the pose, outfit, body, lighting and background exactly the same.",
638
+ 1024,
639
+ ""
640
+ ],
641
+ "title": "Edit Instruction (grounded)"
642
+ },
643
+ {
644
+ "id": 14,
645
+ "type": "Krea2EditGroundedEncode",
646
+ "pos": [
647
+ 440,
648
+ 300
649
+ ],
650
+ "size": [
651
+ 420,
652
+ 130
653
+ ],
654
+ "flags": {},
655
+ "order": 13,
656
+ "mode": 0,
657
+ "inputs": [
658
+ {
659
+ "name": "clip",
660
+ "type": "CLIP",
661
+ "link": 19
662
+ },
663
+ {
664
+ "name": "image",
665
+ "type": "IMAGE",
666
+ "link": 20
667
+ },
668
+ {
669
+ "name": "image_b",
670
+ "type": "IMAGE",
671
+ "link": 21
672
+ }
673
+ ],
674
+ "outputs": [
675
+ {
676
+ "name": "CONDITIONING",
677
+ "type": "CONDITIONING",
678
+ "links": [
679
+ 26
680
+ ],
681
+ "slot_index": 0
682
+ }
683
+ ],
684
+ "properties": {
685
+ "Node name for S&R": "Krea2EditGroundedEncode",
686
+ "aux_id": "lbouaraba/comfyui-krea2edit",
687
+ "ver": "207c52d52b25f5ed23cd9bc5c2d88c6cf3026686"
688
+ },
689
+ "widgets_values": [
690
+ "",
691
+ 1024,
692
+ ""
693
+ ],
694
+ "title": "Negative (grounded \u2014 used at CFG > 1)"
695
+ },
696
+ {
697
+ "id": 15,
698
+ "type": "EmptySD3LatentImage",
699
+ "pos": [
700
+ 800,
701
+ 680
702
+ ],
703
+ "size": [
704
+ 300,
705
+ 106
706
+ ],
707
+ "flags": {},
708
+ "order": 14,
709
+ "mode": 0,
710
+ "inputs": [
711
+ {
712
+ "name": "width",
713
+ "type": "INT",
714
+ "link": 22,
715
+ "widget": {
716
+ "name": "width"
717
+ }
718
+ },
719
+ {
720
+ "name": "height",
721
+ "type": "INT",
722
+ "link": 23,
723
+ "widget": {
724
+ "name": "height"
725
+ }
726
+ }
727
+ ],
728
+ "outputs": [
729
+ {
730
+ "name": "LATENT",
731
+ "type": "LATENT",
732
+ "links": [
733
+ 27
734
+ ],
735
+ "slot_index": 0
736
+ }
737
+ ],
738
+ "properties": {
739
+ "Node name for S&R": "EmptySD3LatentImage"
740
+ },
741
+ "widgets_values": [
742
+ 1216,
743
+ 1520,
744
+ 1
745
+ ],
746
+ "title": "Target Latent (auto-follows body AR)"
747
+ },
748
+ {
749
+ "id": 16,
750
+ "type": "KSampler",
751
+ "pos": [
752
+ 1160,
753
+ 60
754
+ ],
755
+ "size": [
756
+ 315,
757
+ 262
758
+ ],
759
+ "flags": {},
760
+ "order": 15,
761
+ "mode": 0,
762
+ "inputs": [
763
+ {
764
+ "name": "model",
765
+ "type": "MODEL",
766
+ "link": 24
767
+ },
768
+ {
769
+ "name": "positive",
770
+ "type": "CONDITIONING",
771
+ "link": 25
772
+ },
773
+ {
774
+ "name": "negative",
775
+ "type": "CONDITIONING",
776
+ "link": 26
777
+ },
778
+ {
779
+ "name": "latent_image",
780
+ "type": "LATENT",
781
+ "link": 27
782
+ }
783
+ ],
784
+ "outputs": [
785
+ {
786
+ "name": "LATENT",
787
+ "type": "LATENT",
788
+ "links": [
789
+ 28
790
+ ],
791
+ "slot_index": 0
792
+ }
793
+ ],
794
+ "properties": {
795
+ "Node name for S&R": "KSampler"
796
+ },
797
+ "widgets_values": [
798
+ 42,
799
+ "randomize",
800
+ 12,
801
+ 1.0,
802
+ "er_sde",
803
+ "simple",
804
+ 1.0
805
+ ]
806
+ },
807
+ {
808
+ "id": 17,
809
+ "type": "VAEDecode",
810
+ "pos": [
811
+ 1160,
812
+ 380
813
+ ],
814
+ "size": [
815
+ 210,
816
+ 46
817
+ ],
818
+ "flags": {},
819
+ "order": 16,
820
+ "mode": 0,
821
+ "inputs": [
822
+ {
823
+ "name": "samples",
824
+ "type": "LATENT",
825
+ "link": 28
826
+ },
827
+ {
828
+ "name": "vae",
829
+ "type": "VAE",
830
+ "link": 29
831
+ }
832
+ ],
833
+ "outputs": [
834
+ {
835
+ "name": "IMAGE",
836
+ "type": "IMAGE",
837
+ "links": [
838
+ 30
839
+ ],
840
+ "slot_index": 0
841
+ }
842
+ ],
843
+ "properties": {
844
+ "Node name for S&R": "VAEDecode"
845
+ }
846
+ },
847
+ {
848
+ "id": 18,
849
+ "type": "SaveImage",
850
+ "pos": [
851
+ 1160,
852
+ 480
853
+ ],
854
+ "size": [
855
+ 360,
856
+ 270
857
+ ],
858
+ "flags": {},
859
+ "order": 17,
860
+ "mode": 0,
861
+ "inputs": [
862
+ {
863
+ "name": "images",
864
+ "type": "IMAGE",
865
+ "link": 30
866
+ }
867
+ ],
868
+ "outputs": [],
869
+ "properties": {
870
+ "Node name for S&R": "SaveImage"
871
+ },
872
+ "widgets_values": [
873
+ "new-krea2-faceswap-v14-turbo"
874
+ ]
875
+ },
876
+ {
877
+ "id": 19,
878
+ "type": "MarkdownNote",
879
+ "pos": [
880
+ 1540,
881
+ 60
882
+ ],
883
+ "size": [
884
+ 520,
885
+ 460
886
+ ],
887
+ "flags": {},
888
+ "order": 18,
889
+ "mode": 0,
890
+ "inputs": [],
891
+ "outputs": [],
892
+ "properties": {
893
+ "Node name for S&R": "MarkdownNote"
894
+ },
895
+ "widgets_values": [
896
+ "## Krea 2 FACE SWAP v14 \u2014 Turbo MXFP8 + face-masked ref_boost (fast)\n\n**v14 = v13 + focused face boost (`ref_boost_mask`):**\n\nA **FaceSegment** node (ComfyUI-RMBG, `1038lab/segformer_face` \u2014 auto-downloads to `models/RMBG/segformer_face/` on first run) segments the facial features of the reference (skin, eyes, brows, nose, lips; hair/neck/ears excluded so hairstyle follows the body image) and feeds the mask into the patch node's `ref_boost_mask`. The `ref_boost: 4` attention pull then concentrates on the face region instead of the whole reference.\n\nAll v13 improvements retained: output follows the body image's aspect ratio (long edge 1520, dims /16, \u22641.85MP), `grounding_px 1024`, v1_2 LoRA @1.0, `fit_mode: fit`, `er_sde`. Body/scene = image 1, face ref = image 2 (fixed order). Tune the mask via the FaceSegment toggles (e.g. add Hair to also transfer hairstyle) or `mask_blur`.\n\nNeeds [comfyui-krea2edit](https://github.com/lbouaraba/comfyui-krea2edit) + ComfyUI-KJNodes + ComfyUI-RMBG. Models: [conradlocke/krea2-identity-edit](https://huggingface.co/conradlocke/krea2-identity-edit) + Comfy-Org/Krea-2 (mirrored in our HF repo).\n\nTurbo MXFP8, 12 steps / CFG 1.0 / `er_sde`."
897
+ ],
898
+ "title": "About this workflow"
899
+ }
900
+ ],
901
+ "links": [
902
+ [
903
+ 1,
904
+ 1,
905
+ 0,
906
+ 2,
907
+ 0,
908
+ "MODEL"
909
+ ],
910
+ [
911
+ 2,
912
+ 5,
913
+ 0,
914
+ 6,
915
+ 0,
916
+ "IMAGE"
917
+ ],
918
+ [
919
+ 3,
920
+ 6,
921
+ 0,
922
+ 7,
923
+ 0,
924
+ "IMAGE"
925
+ ],
926
+ [
927
+ 4,
928
+ 4,
929
+ 0,
930
+ 7,
931
+ 1,
932
+ "VAE"
933
+ ],
934
+ [
935
+ 5,
936
+ 8,
937
+ 0,
938
+ 9,
939
+ 0,
940
+ "IMAGE"
941
+ ],
942
+ [
943
+ 6,
944
+ 9,
945
+ 0,
946
+ 10,
947
+ 0,
948
+ "IMAGE"
949
+ ],
950
+ [
951
+ 7,
952
+ 4,
953
+ 0,
954
+ 10,
955
+ 1,
956
+ "VAE"
957
+ ],
958
+ [
959
+ 8,
960
+ 2,
961
+ 0,
962
+ 11,
963
+ 0,
964
+ "MODEL"
965
+ ],
966
+ [
967
+ 9,
968
+ 7,
969
+ 0,
970
+ 11,
971
+ 1,
972
+ "LATENT"
973
+ ],
974
+ [
975
+ 10,
976
+ 10,
977
+ 0,
978
+ 11,
979
+ 2,
980
+ "LATENT"
981
+ ],
982
+ [
983
+ 11,
984
+ 4,
985
+ 0,
986
+ 11,
987
+ 4,
988
+ "VAE"
989
+ ],
990
+ [
991
+ 12,
992
+ 6,
993
+ 0,
994
+ 11,
995
+ 5,
996
+ "IMAGE"
997
+ ],
998
+ [
999
+ 13,
1000
+ 9,
1001
+ 0,
1002
+ 11,
1003
+ 6,
1004
+ "IMAGE"
1005
+ ],
1006
+ [
1007
+ 14,
1008
+ 9,
1009
+ 0,
1010
+ 12,
1011
+ 0,
1012
+ "IMAGE"
1013
+ ],
1014
+ [
1015
+ 15,
1016
+ 12,
1017
+ 1,
1018
+ 11,
1019
+ 3,
1020
+ "MASK"
1021
+ ],
1022
+ [
1023
+ 16,
1024
+ 3,
1025
+ 0,
1026
+ 13,
1027
+ 0,
1028
+ "CLIP"
1029
+ ],
1030
+ [
1031
+ 17,
1032
+ 6,
1033
+ 0,
1034
+ 13,
1035
+ 1,
1036
+ "IMAGE"
1037
+ ],
1038
+ [
1039
+ 18,
1040
+ 9,
1041
+ 0,
1042
+ 13,
1043
+ 2,
1044
+ "IMAGE"
1045
+ ],
1046
+ [
1047
+ 19,
1048
+ 3,
1049
+ 0,
1050
+ 14,
1051
+ 0,
1052
+ "CLIP"
1053
+ ],
1054
+ [
1055
+ 20,
1056
+ 6,
1057
+ 0,
1058
+ 14,
1059
+ 1,
1060
+ "IMAGE"
1061
+ ],
1062
+ [
1063
+ 21,
1064
+ 9,
1065
+ 0,
1066
+ 14,
1067
+ 2,
1068
+ "IMAGE"
1069
+ ],
1070
+ [
1071
+ 22,
1072
+ 6,
1073
+ 1,
1074
+ 15,
1075
+ 0,
1076
+ "INT"
1077
+ ],
1078
+ [
1079
+ 23,
1080
+ 6,
1081
+ 2,
1082
+ 15,
1083
+ 1,
1084
+ "INT"
1085
+ ],
1086
+ [
1087
+ 24,
1088
+ 11,
1089
+ 0,
1090
+ 16,
1091
+ 0,
1092
+ "MODEL"
1093
+ ],
1094
+ [
1095
+ 25,
1096
+ 13,
1097
+ 0,
1098
+ 16,
1099
+ 1,
1100
+ "CONDITIONING"
1101
+ ],
1102
+ [
1103
+ 26,
1104
+ 14,
1105
+ 0,
1106
+ 16,
1107
+ 2,
1108
+ "CONDITIONING"
1109
+ ],
1110
+ [
1111
+ 27,
1112
+ 15,
1113
+ 0,
1114
+ 16,
1115
+ 3,
1116
+ "LATENT"
1117
+ ],
1118
+ [
1119
+ 28,
1120
+ 16,
1121
+ 0,
1122
+ 17,
1123
+ 0,
1124
+ "LATENT"
1125
+ ],
1126
+ [
1127
+ 29,
1128
+ 4,
1129
+ 0,
1130
+ 17,
1131
+ 1,
1132
+ "VAE"
1133
+ ],
1134
+ [
1135
+ 30,
1136
+ 17,
1137
+ 0,
1138
+ 18,
1139
+ 0,
1140
+ "IMAGE"
1141
+ ]
1142
+ ],
1143
+ "groups": [],
1144
+ "config": {},
1145
+ "extra": {},
1146
+ "version": 0.4
1147
+ }