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

Add new-krea2-faceswap-v13 workflows: AR-matched output (<=1.85MP, /16 dims), grounding_px 1024, turbo 12 steps

Browse files
workflows/api/new-krea2-faceswap-v13-raw.json ADDED
@@ -0,0 +1,284 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "source_image": [
42
+ "6",
43
+ 0
44
+ ],
45
+ "source_image_b": [
46
+ "9",
47
+ 0
48
+ ],
49
+ "source_latent": [
50
+ "7",
51
+ 0
52
+ ],
53
+ "source_latent_b": [
54
+ "10",
55
+ 0
56
+ ],
57
+ "vae": [
58
+ "4",
59
+ 0
60
+ ]
61
+ }
62
+ },
63
+ "12": {
64
+ "_meta": {
65
+ "title": "Edit Instruction (grounded)"
66
+ },
67
+ "class_type": "Krea2EditGroundedEncode",
68
+ "inputs": {
69
+ "clip": [
70
+ "3",
71
+ 0
72
+ ],
73
+ "grounding_px": 1024,
74
+ "image": [
75
+ "6",
76
+ 0
77
+ ],
78
+ "image_b": [
79
+ "9",
80
+ 0
81
+ ],
82
+ "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.",
83
+ "system_prompt": ""
84
+ }
85
+ },
86
+ "13": {
87
+ "_meta": {
88
+ "title": "Negative (grounded \u2014 used at CFG > 1)"
89
+ },
90
+ "class_type": "Krea2EditGroundedEncode",
91
+ "inputs": {
92
+ "clip": [
93
+ "3",
94
+ 0
95
+ ],
96
+ "grounding_px": 1024,
97
+ "image": [
98
+ "6",
99
+ 0
100
+ ],
101
+ "image_b": [
102
+ "9",
103
+ 0
104
+ ],
105
+ "prompt": "blurry, low quality, jpeg artifacts, oversaturated, plastic skin, deformed face, extra fingers",
106
+ "system_prompt": ""
107
+ }
108
+ },
109
+ "14": {
110
+ "_meta": {
111
+ "title": "Target Latent (auto-follows body AR)"
112
+ },
113
+ "class_type": "EmptySD3LatentImage",
114
+ "inputs": {
115
+ "batch_size": 1,
116
+ "height": [
117
+ "6",
118
+ 2
119
+ ],
120
+ "width": [
121
+ "6",
122
+ 1
123
+ ]
124
+ }
125
+ },
126
+ "15": {
127
+ "class_type": "KSampler",
128
+ "inputs": {
129
+ "cfg": 2.5,
130
+ "denoise": 1.0,
131
+ "latent_image": [
132
+ "14",
133
+ 0
134
+ ],
135
+ "model": [
136
+ "11",
137
+ 0
138
+ ],
139
+ "negative": [
140
+ "13",
141
+ 0
142
+ ],
143
+ "positive": [
144
+ "12",
145
+ 0
146
+ ],
147
+ "sampler_name": "er_sde",
148
+ "scheduler": "simple",
149
+ "seed": 42,
150
+ "steps": 50
151
+ }
152
+ },
153
+ "16": {
154
+ "class_type": "VAEDecode",
155
+ "inputs": {
156
+ "samples": [
157
+ "15",
158
+ 0
159
+ ],
160
+ "vae": [
161
+ "4",
162
+ 0
163
+ ]
164
+ }
165
+ },
166
+ "17": {
167
+ "class_type": "SaveImage",
168
+ "inputs": {
169
+ "filename_prefix": "new-krea2-faceswap-v13-raw",
170
+ "images": [
171
+ "16",
172
+ 0
173
+ ]
174
+ }
175
+ },
176
+ "2": {
177
+ "_meta": {
178
+ "title": "Identity Edit LoRA v1.2 (required)"
179
+ },
180
+ "class_type": "LoraLoaderModelOnly",
181
+ "inputs": {
182
+ "lora_name": "krea2_identity_edit_v1_2.safetensors",
183
+ "model": [
184
+ "1",
185
+ 0
186
+ ],
187
+ "strength_model": 1.0
188
+ }
189
+ },
190
+ "3": {
191
+ "_meta": {
192
+ "title": "Load Text Encoder"
193
+ },
194
+ "class_type": "CLIPLoader",
195
+ "inputs": {
196
+ "clip_name": "qwen3vl_4b_bf16.safetensors",
197
+ "device": "default",
198
+ "type": "krea2"
199
+ }
200
+ },
201
+ "4": {
202
+ "_meta": {
203
+ "title": "Load VAE"
204
+ },
205
+ "class_type": "VAELoader",
206
+ "inputs": {
207
+ "vae_name": "qwen_image_vae.safetensors"
208
+ }
209
+ },
210
+ "5": {
211
+ "_meta": {
212
+ "title": "Body / Scene Image (image 1)"
213
+ },
214
+ "class_type": "LoadImage",
215
+ "inputs": {
216
+ "image": "body.jpg"
217
+ }
218
+ },
219
+ "6": {
220
+ "_meta": {
221
+ "title": "Resize body (AR kept, /16, max 1520)"
222
+ },
223
+ "class_type": "ImageResizeKJv2",
224
+ "inputs": {
225
+ "crop_position": "center",
226
+ "device": "cpu",
227
+ "divisible_by": 16,
228
+ "height": 1520,
229
+ "image": [
230
+ "5",
231
+ 0
232
+ ],
233
+ "keep_proportion": "resize",
234
+ "pad_color": "0, 0, 0",
235
+ "upscale_method": "lanczos",
236
+ "width": 1520
237
+ }
238
+ },
239
+ "7": {
240
+ "_meta": {
241
+ "title": "VAE Encode Body"
242
+ },
243
+ "class_type": "VAEEncode",
244
+ "inputs": {
245
+ "pixels": [
246
+ "6",
247
+ 0
248
+ ],
249
+ "vae": [
250
+ "4",
251
+ 0
252
+ ]
253
+ }
254
+ },
255
+ "8": {
256
+ "_meta": {
257
+ "title": "Face Reference (image 2 \u2014 crop close to the head)"
258
+ },
259
+ "class_type": "LoadImage",
260
+ "inputs": {
261
+ "image": "face.jpg"
262
+ }
263
+ },
264
+ "9": {
265
+ "_meta": {
266
+ "title": "Resize face ref (AR kept, /16)"
267
+ },
268
+ "class_type": "ImageResizeKJv2",
269
+ "inputs": {
270
+ "crop_position": "center",
271
+ "device": "cpu",
272
+ "divisible_by": 16,
273
+ "height": 1520,
274
+ "image": [
275
+ "8",
276
+ 0
277
+ ],
278
+ "keep_proportion": "resize",
279
+ "pad_color": "0, 0, 0",
280
+ "upscale_method": "lanczos",
281
+ "width": 1520
282
+ }
283
+ }
284
+ }
workflows/api/new-krea2-faceswap-v13-turbo.json ADDED
@@ -0,0 +1,284 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "source_image": [
42
+ "6",
43
+ 0
44
+ ],
45
+ "source_image_b": [
46
+ "9",
47
+ 0
48
+ ],
49
+ "source_latent": [
50
+ "7",
51
+ 0
52
+ ],
53
+ "source_latent_b": [
54
+ "10",
55
+ 0
56
+ ],
57
+ "vae": [
58
+ "4",
59
+ 0
60
+ ]
61
+ }
62
+ },
63
+ "12": {
64
+ "_meta": {
65
+ "title": "Edit Instruction (grounded)"
66
+ },
67
+ "class_type": "Krea2EditGroundedEncode",
68
+ "inputs": {
69
+ "clip": [
70
+ "3",
71
+ 0
72
+ ],
73
+ "grounding_px": 1024,
74
+ "image": [
75
+ "6",
76
+ 0
77
+ ],
78
+ "image_b": [
79
+ "9",
80
+ 0
81
+ ],
82
+ "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.",
83
+ "system_prompt": ""
84
+ }
85
+ },
86
+ "13": {
87
+ "_meta": {
88
+ "title": "Negative (grounded \u2014 used at CFG > 1)"
89
+ },
90
+ "class_type": "Krea2EditGroundedEncode",
91
+ "inputs": {
92
+ "clip": [
93
+ "3",
94
+ 0
95
+ ],
96
+ "grounding_px": 1024,
97
+ "image": [
98
+ "6",
99
+ 0
100
+ ],
101
+ "image_b": [
102
+ "9",
103
+ 0
104
+ ],
105
+ "prompt": "",
106
+ "system_prompt": ""
107
+ }
108
+ },
109
+ "14": {
110
+ "_meta": {
111
+ "title": "Target Latent (auto-follows body AR)"
112
+ },
113
+ "class_type": "EmptySD3LatentImage",
114
+ "inputs": {
115
+ "batch_size": 1,
116
+ "height": [
117
+ "6",
118
+ 2
119
+ ],
120
+ "width": [
121
+ "6",
122
+ 1
123
+ ]
124
+ }
125
+ },
126
+ "15": {
127
+ "class_type": "KSampler",
128
+ "inputs": {
129
+ "cfg": 1.0,
130
+ "denoise": 1.0,
131
+ "latent_image": [
132
+ "14",
133
+ 0
134
+ ],
135
+ "model": [
136
+ "11",
137
+ 0
138
+ ],
139
+ "negative": [
140
+ "13",
141
+ 0
142
+ ],
143
+ "positive": [
144
+ "12",
145
+ 0
146
+ ],
147
+ "sampler_name": "er_sde",
148
+ "scheduler": "simple",
149
+ "seed": 42,
150
+ "steps": 12
151
+ }
152
+ },
153
+ "16": {
154
+ "class_type": "VAEDecode",
155
+ "inputs": {
156
+ "samples": [
157
+ "15",
158
+ 0
159
+ ],
160
+ "vae": [
161
+ "4",
162
+ 0
163
+ ]
164
+ }
165
+ },
166
+ "17": {
167
+ "class_type": "SaveImage",
168
+ "inputs": {
169
+ "filename_prefix": "new-krea2-faceswap-v13-turbo",
170
+ "images": [
171
+ "16",
172
+ 0
173
+ ]
174
+ }
175
+ },
176
+ "2": {
177
+ "_meta": {
178
+ "title": "Identity Edit LoRA v1.2 (required)"
179
+ },
180
+ "class_type": "LoraLoaderModelOnly",
181
+ "inputs": {
182
+ "lora_name": "krea2_identity_edit_v1_2.safetensors",
183
+ "model": [
184
+ "1",
185
+ 0
186
+ ],
187
+ "strength_model": 1.0
188
+ }
189
+ },
190
+ "3": {
191
+ "_meta": {
192
+ "title": "Load Text Encoder"
193
+ },
194
+ "class_type": "CLIPLoader",
195
+ "inputs": {
196
+ "clip_name": "qwen3vl_4b_fp8_scaled.safetensors",
197
+ "device": "default",
198
+ "type": "krea2"
199
+ }
200
+ },
201
+ "4": {
202
+ "_meta": {
203
+ "title": "Load VAE"
204
+ },
205
+ "class_type": "VAELoader",
206
+ "inputs": {
207
+ "vae_name": "qwen_image_vae.safetensors"
208
+ }
209
+ },
210
+ "5": {
211
+ "_meta": {
212
+ "title": "Body / Scene Image (image 1)"
213
+ },
214
+ "class_type": "LoadImage",
215
+ "inputs": {
216
+ "image": "body.jpg"
217
+ }
218
+ },
219
+ "6": {
220
+ "_meta": {
221
+ "title": "Resize body (AR kept, /16, max 1520)"
222
+ },
223
+ "class_type": "ImageResizeKJv2",
224
+ "inputs": {
225
+ "crop_position": "center",
226
+ "device": "cpu",
227
+ "divisible_by": 16,
228
+ "height": 1520,
229
+ "image": [
230
+ "5",
231
+ 0
232
+ ],
233
+ "keep_proportion": "resize",
234
+ "pad_color": "0, 0, 0",
235
+ "upscale_method": "lanczos",
236
+ "width": 1520
237
+ }
238
+ },
239
+ "7": {
240
+ "_meta": {
241
+ "title": "VAE Encode Body"
242
+ },
243
+ "class_type": "VAEEncode",
244
+ "inputs": {
245
+ "pixels": [
246
+ "6",
247
+ 0
248
+ ],
249
+ "vae": [
250
+ "4",
251
+ 0
252
+ ]
253
+ }
254
+ },
255
+ "8": {
256
+ "_meta": {
257
+ "title": "Face Reference (image 2 \u2014 crop close to the head)"
258
+ },
259
+ "class_type": "LoadImage",
260
+ "inputs": {
261
+ "image": "face.jpg"
262
+ }
263
+ },
264
+ "9": {
265
+ "_meta": {
266
+ "title": "Resize face ref (AR kept, /16)"
267
+ },
268
+ "class_type": "ImageResizeKJv2",
269
+ "inputs": {
270
+ "crop_position": "center",
271
+ "device": "cpu",
272
+ "divisible_by": 16,
273
+ "height": 1520,
274
+ "image": [
275
+ "8",
276
+ 0
277
+ ],
278
+ "keep_proportion": "resize",
279
+ "pad_color": "0, 0, 0",
280
+ "upscale_method": "lanczos",
281
+ "width": 1520
282
+ }
283
+ }
284
+ }
workflows/new-krea2-faceswap-v13-raw.json ADDED
@@ -0,0 +1,1057 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "last_node_id": 18,
3
+ "last_link_id": 28,
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
+ 14,
100
+ 17
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
+ 27
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
+ 15,
220
+ 18
221
+ ],
222
+ "slot_index": 0
223
+ },
224
+ {
225
+ "name": "width",
226
+ "type": "INT",
227
+ "links": [
228
+ 20
229
+ ],
230
+ "slot_index": 1
231
+ },
232
+ {
233
+ "name": "height",
234
+ "type": "INT",
235
+ "links": [
236
+ 21
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
+ 16,
368
+ 19
369
+ ],
370
+ "slot_index": 0
371
+ },
372
+ {
373
+ "name": "width",
374
+ "type": "INT",
375
+ "links": [],
376
+ "slot_index": 1
377
+ },
378
+ {
379
+ "name": "height",
380
+ "type": "INT",
381
+ "links": [],
382
+ "slot_index": 2
383
+ }
384
+ ],
385
+ "properties": {
386
+ "Node name for S&R": "ImageResizeKJv2",
387
+ "cnr_id": "comfyui-kjnodes",
388
+ "ver": "93a4fba44c1635a716dc262f157a7ded7d716f3a"
389
+ },
390
+ "widgets_values": [
391
+ 1520,
392
+ 1520,
393
+ "lanczos",
394
+ "resize",
395
+ "0, 0, 0",
396
+ "center",
397
+ 16,
398
+ "cpu"
399
+ ],
400
+ "title": "Resize face ref (AR kept, /16)"
401
+ },
402
+ {
403
+ "id": 10,
404
+ "type": "VAEEncode",
405
+ "pos": [
406
+ 440,
407
+ 1290
408
+ ],
409
+ "size": [
410
+ 300,
411
+ 46
412
+ ],
413
+ "flags": {},
414
+ "order": 9,
415
+ "mode": 0,
416
+ "inputs": [
417
+ {
418
+ "name": "pixels",
419
+ "type": "IMAGE",
420
+ "link": 6
421
+ },
422
+ {
423
+ "name": "vae",
424
+ "type": "VAE",
425
+ "link": 7
426
+ }
427
+ ],
428
+ "outputs": [
429
+ {
430
+ "name": "LATENT",
431
+ "type": "LATENT",
432
+ "links": [
433
+ 10
434
+ ],
435
+ "slot_index": 0
436
+ }
437
+ ],
438
+ "properties": {
439
+ "Node name for S&R": "VAEEncode"
440
+ },
441
+ "title": "VAE Encode Face"
442
+ },
443
+ {
444
+ "id": 11,
445
+ "type": "Krea2EditModelPatch",
446
+ "pos": [
447
+ 800,
448
+ 440
449
+ ],
450
+ "size": [
451
+ 300,
452
+ 190
453
+ ],
454
+ "flags": {},
455
+ "order": 10,
456
+ "mode": 0,
457
+ "inputs": [
458
+ {
459
+ "name": "model",
460
+ "type": "MODEL",
461
+ "link": 8
462
+ },
463
+ {
464
+ "name": "source_latent",
465
+ "type": "LATENT",
466
+ "link": 9
467
+ },
468
+ {
469
+ "name": "source_latent_b",
470
+ "type": "LATENT",
471
+ "link": 10
472
+ },
473
+ {
474
+ "name": "ref_boost_mask",
475
+ "type": "MASK",
476
+ "link": null
477
+ },
478
+ {
479
+ "name": "vae",
480
+ "type": "VAE",
481
+ "link": 11
482
+ },
483
+ {
484
+ "name": "source_image",
485
+ "type": "IMAGE",
486
+ "link": 12
487
+ },
488
+ {
489
+ "name": "source_image_b",
490
+ "type": "IMAGE",
491
+ "link": 13
492
+ }
493
+ ],
494
+ "outputs": [
495
+ {
496
+ "name": "MODEL",
497
+ "type": "MODEL",
498
+ "links": [
499
+ 22
500
+ ],
501
+ "slot_index": 0
502
+ }
503
+ ],
504
+ "properties": {
505
+ "Node name for S&R": "Krea2EditModelPatch",
506
+ "aux_id": "lbouaraba/comfyui-krea2edit",
507
+ "ver": "207c52d52b25f5ed23cd9bc5c2d88c6cf3026686"
508
+ },
509
+ "widgets_values": [
510
+ 4.0,
511
+ 1.0,
512
+ "fit"
513
+ ],
514
+ "title": "Krea2 Edit (source patch)"
515
+ },
516
+ {
517
+ "id": 12,
518
+ "type": "Krea2EditGroundedEncode",
519
+ "pos": [
520
+ 440,
521
+ 60
522
+ ],
523
+ "size": [
524
+ 420,
525
+ 190
526
+ ],
527
+ "flags": {},
528
+ "order": 11,
529
+ "mode": 0,
530
+ "inputs": [
531
+ {
532
+ "name": "clip",
533
+ "type": "CLIP",
534
+ "link": 14
535
+ },
536
+ {
537
+ "name": "image",
538
+ "type": "IMAGE",
539
+ "link": 15
540
+ },
541
+ {
542
+ "name": "image_b",
543
+ "type": "IMAGE",
544
+ "link": 16
545
+ }
546
+ ],
547
+ "outputs": [
548
+ {
549
+ "name": "CONDITIONING",
550
+ "type": "CONDITIONING",
551
+ "links": [
552
+ 23
553
+ ],
554
+ "slot_index": 0
555
+ }
556
+ ],
557
+ "properties": {
558
+ "Node name for S&R": "Krea2EditGroundedEncode",
559
+ "aux_id": "lbouaraba/comfyui-krea2edit",
560
+ "ver": "207c52d52b25f5ed23cd9bc5c2d88c6cf3026686"
561
+ },
562
+ "widgets_values": [
563
+ "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.",
564
+ 1024,
565
+ ""
566
+ ],
567
+ "title": "Edit Instruction (grounded)"
568
+ },
569
+ {
570
+ "id": 13,
571
+ "type": "Krea2EditGroundedEncode",
572
+ "pos": [
573
+ 440,
574
+ 300
575
+ ],
576
+ "size": [
577
+ 420,
578
+ 130
579
+ ],
580
+ "flags": {},
581
+ "order": 12,
582
+ "mode": 0,
583
+ "inputs": [
584
+ {
585
+ "name": "clip",
586
+ "type": "CLIP",
587
+ "link": 17
588
+ },
589
+ {
590
+ "name": "image",
591
+ "type": "IMAGE",
592
+ "link": 18
593
+ },
594
+ {
595
+ "name": "image_b",
596
+ "type": "IMAGE",
597
+ "link": 19
598
+ }
599
+ ],
600
+ "outputs": [
601
+ {
602
+ "name": "CONDITIONING",
603
+ "type": "CONDITIONING",
604
+ "links": [
605
+ 24
606
+ ],
607
+ "slot_index": 0
608
+ }
609
+ ],
610
+ "properties": {
611
+ "Node name for S&R": "Krea2EditGroundedEncode",
612
+ "aux_id": "lbouaraba/comfyui-krea2edit",
613
+ "ver": "207c52d52b25f5ed23cd9bc5c2d88c6cf3026686"
614
+ },
615
+ "widgets_values": [
616
+ "blurry, low quality, jpeg artifacts, oversaturated, plastic skin, deformed face, extra fingers",
617
+ 1024,
618
+ ""
619
+ ],
620
+ "title": "Negative (grounded \u2014 used at CFG > 1)"
621
+ },
622
+ {
623
+ "id": 14,
624
+ "type": "EmptySD3LatentImage",
625
+ "pos": [
626
+ 800,
627
+ 680
628
+ ],
629
+ "size": [
630
+ 300,
631
+ 106
632
+ ],
633
+ "flags": {},
634
+ "order": 13,
635
+ "mode": 0,
636
+ "inputs": [
637
+ {
638
+ "name": "width",
639
+ "type": "INT",
640
+ "link": 20,
641
+ "widget": {
642
+ "name": "width"
643
+ }
644
+ },
645
+ {
646
+ "name": "height",
647
+ "type": "INT",
648
+ "link": 21,
649
+ "widget": {
650
+ "name": "height"
651
+ }
652
+ }
653
+ ],
654
+ "outputs": [
655
+ {
656
+ "name": "LATENT",
657
+ "type": "LATENT",
658
+ "links": [
659
+ 25
660
+ ],
661
+ "slot_index": 0
662
+ }
663
+ ],
664
+ "properties": {
665
+ "Node name for S&R": "EmptySD3LatentImage"
666
+ },
667
+ "widgets_values": [
668
+ 1216,
669
+ 1520,
670
+ 1
671
+ ],
672
+ "title": "Target Latent (auto-follows body AR)"
673
+ },
674
+ {
675
+ "id": 15,
676
+ "type": "KSampler",
677
+ "pos": [
678
+ 1160,
679
+ 60
680
+ ],
681
+ "size": [
682
+ 315,
683
+ 262
684
+ ],
685
+ "flags": {},
686
+ "order": 14,
687
+ "mode": 0,
688
+ "inputs": [
689
+ {
690
+ "name": "model",
691
+ "type": "MODEL",
692
+ "link": 22
693
+ },
694
+ {
695
+ "name": "positive",
696
+ "type": "CONDITIONING",
697
+ "link": 23
698
+ },
699
+ {
700
+ "name": "negative",
701
+ "type": "CONDITIONING",
702
+ "link": 24
703
+ },
704
+ {
705
+ "name": "latent_image",
706
+ "type": "LATENT",
707
+ "link": 25
708
+ }
709
+ ],
710
+ "outputs": [
711
+ {
712
+ "name": "LATENT",
713
+ "type": "LATENT",
714
+ "links": [
715
+ 26
716
+ ],
717
+ "slot_index": 0
718
+ }
719
+ ],
720
+ "properties": {
721
+ "Node name for S&R": "KSampler"
722
+ },
723
+ "widgets_values": [
724
+ 42,
725
+ "randomize",
726
+ 50,
727
+ 2.5,
728
+ "er_sde",
729
+ "simple",
730
+ 1.0
731
+ ]
732
+ },
733
+ {
734
+ "id": 16,
735
+ "type": "VAEDecode",
736
+ "pos": [
737
+ 1160,
738
+ 380
739
+ ],
740
+ "size": [
741
+ 210,
742
+ 46
743
+ ],
744
+ "flags": {},
745
+ "order": 15,
746
+ "mode": 0,
747
+ "inputs": [
748
+ {
749
+ "name": "samples",
750
+ "type": "LATENT",
751
+ "link": 26
752
+ },
753
+ {
754
+ "name": "vae",
755
+ "type": "VAE",
756
+ "link": 27
757
+ }
758
+ ],
759
+ "outputs": [
760
+ {
761
+ "name": "IMAGE",
762
+ "type": "IMAGE",
763
+ "links": [
764
+ 28
765
+ ],
766
+ "slot_index": 0
767
+ }
768
+ ],
769
+ "properties": {
770
+ "Node name for S&R": "VAEDecode"
771
+ }
772
+ },
773
+ {
774
+ "id": 17,
775
+ "type": "SaveImage",
776
+ "pos": [
777
+ 1160,
778
+ 480
779
+ ],
780
+ "size": [
781
+ 360,
782
+ 270
783
+ ],
784
+ "flags": {},
785
+ "order": 16,
786
+ "mode": 0,
787
+ "inputs": [
788
+ {
789
+ "name": "images",
790
+ "type": "IMAGE",
791
+ "link": 28
792
+ }
793
+ ],
794
+ "outputs": [],
795
+ "properties": {
796
+ "Node name for S&R": "SaveImage"
797
+ },
798
+ "widgets_values": [
799
+ "new-krea2-faceswap-v13-raw"
800
+ ]
801
+ },
802
+ {
803
+ "id": 18,
804
+ "type": "MarkdownNote",
805
+ "pos": [
806
+ 1540,
807
+ 60
808
+ ],
809
+ "size": [
810
+ 520,
811
+ 460
812
+ ],
813
+ "flags": {},
814
+ "order": 17,
815
+ "mode": 0,
816
+ "inputs": [],
817
+ "outputs": [],
818
+ "properties": {
819
+ "Node name for S&R": "MarkdownNote"
820
+ },
821
+ "widgets_values": [
822
+ "## Krea 2 FACE SWAP v13 \u2014 RAW bf16 + bf16 TE, AR-matched (max quality)\n\n**v13 = the v12 benchmark-winning face swap + the optimization research pass:**\n\n- **Output follows the body image's aspect ratio** (no more square crop) \u2014 latent width/height come from the resized image 1.\n- **Long edge capped at 1520, \u22641.85MP** \u2014 inside the model's 2MP ceiling.\n- **All dims divisible by 16** (KJNodes resize) \u2014 avoids the documented portrait-blur bug.\n- **grounding_px 1024** \u2014 stronger identity for people edits (v1.1 trained 384\u2013768; 1024 is the author's 'often still works nicely' upper band).\n- **Turbo at 12 steps** \u2014 more face detail; composition is pinned by the source anyway.\n\nBaked-in winning settings from v12: `krea2_identity_edit_v1_2` LoRA @1.0, `fit_mode: fit`, `ref_boost: 4`, `er_sde`. Body/scene = image 1, face ref = image 2 (fixed order). Tip: crop the face reference close to the head \u2014 face pixel density is the identity budget. Optional next lever: feed a face mask into the patch node's `ref_boost_mask` to focus the boost on the face region.\n\nNeeds the [comfyui-krea2edit](https://github.com/lbouaraba/comfyui-krea2edit) node pack + ComfyUI-KJNodes. Models: see [conradlocke/krea2-identity-edit](https://huggingface.co/conradlocke/krea2-identity-edit) and Comfy-Org/Krea-2 (all mirrored in our HF repo).\n\nRaw bf16 with bf16 text encoder, 50 steps / CFG 2.5 / `er_sde` (H100-class VRAM)."
823
+ ],
824
+ "title": "About this workflow"
825
+ }
826
+ ],
827
+ "links": [
828
+ [
829
+ 1,
830
+ 1,
831
+ 0,
832
+ 2,
833
+ 0,
834
+ "MODEL"
835
+ ],
836
+ [
837
+ 2,
838
+ 5,
839
+ 0,
840
+ 6,
841
+ 0,
842
+ "IMAGE"
843
+ ],
844
+ [
845
+ 3,
846
+ 6,
847
+ 0,
848
+ 7,
849
+ 0,
850
+ "IMAGE"
851
+ ],
852
+ [
853
+ 4,
854
+ 4,
855
+ 0,
856
+ 7,
857
+ 1,
858
+ "VAE"
859
+ ],
860
+ [
861
+ 5,
862
+ 8,
863
+ 0,
864
+ 9,
865
+ 0,
866
+ "IMAGE"
867
+ ],
868
+ [
869
+ 6,
870
+ 9,
871
+ 0,
872
+ 10,
873
+ 0,
874
+ "IMAGE"
875
+ ],
876
+ [
877
+ 7,
878
+ 4,
879
+ 0,
880
+ 10,
881
+ 1,
882
+ "VAE"
883
+ ],
884
+ [
885
+ 8,
886
+ 2,
887
+ 0,
888
+ 11,
889
+ 0,
890
+ "MODEL"
891
+ ],
892
+ [
893
+ 9,
894
+ 7,
895
+ 0,
896
+ 11,
897
+ 1,
898
+ "LATENT"
899
+ ],
900
+ [
901
+ 10,
902
+ 10,
903
+ 0,
904
+ 11,
905
+ 2,
906
+ "LATENT"
907
+ ],
908
+ [
909
+ 11,
910
+ 4,
911
+ 0,
912
+ 11,
913
+ 4,
914
+ "VAE"
915
+ ],
916
+ [
917
+ 12,
918
+ 6,
919
+ 0,
920
+ 11,
921
+ 5,
922
+ "IMAGE"
923
+ ],
924
+ [
925
+ 13,
926
+ 9,
927
+ 0,
928
+ 11,
929
+ 6,
930
+ "IMAGE"
931
+ ],
932
+ [
933
+ 14,
934
+ 3,
935
+ 0,
936
+ 12,
937
+ 0,
938
+ "CLIP"
939
+ ],
940
+ [
941
+ 15,
942
+ 6,
943
+ 0,
944
+ 12,
945
+ 1,
946
+ "IMAGE"
947
+ ],
948
+ [
949
+ 16,
950
+ 9,
951
+ 0,
952
+ 12,
953
+ 2,
954
+ "IMAGE"
955
+ ],
956
+ [
957
+ 17,
958
+ 3,
959
+ 0,
960
+ 13,
961
+ 0,
962
+ "CLIP"
963
+ ],
964
+ [
965
+ 18,
966
+ 6,
967
+ 0,
968
+ 13,
969
+ 1,
970
+ "IMAGE"
971
+ ],
972
+ [
973
+ 19,
974
+ 9,
975
+ 0,
976
+ 13,
977
+ 2,
978
+ "IMAGE"
979
+ ],
980
+ [
981
+ 20,
982
+ 6,
983
+ 1,
984
+ 14,
985
+ 0,
986
+ "INT"
987
+ ],
988
+ [
989
+ 21,
990
+ 6,
991
+ 2,
992
+ 14,
993
+ 1,
994
+ "INT"
995
+ ],
996
+ [
997
+ 22,
998
+ 11,
999
+ 0,
1000
+ 15,
1001
+ 0,
1002
+ "MODEL"
1003
+ ],
1004
+ [
1005
+ 23,
1006
+ 12,
1007
+ 0,
1008
+ 15,
1009
+ 1,
1010
+ "CONDITIONING"
1011
+ ],
1012
+ [
1013
+ 24,
1014
+ 13,
1015
+ 0,
1016
+ 15,
1017
+ 2,
1018
+ "CONDITIONING"
1019
+ ],
1020
+ [
1021
+ 25,
1022
+ 14,
1023
+ 0,
1024
+ 15,
1025
+ 3,
1026
+ "LATENT"
1027
+ ],
1028
+ [
1029
+ 26,
1030
+ 15,
1031
+ 0,
1032
+ 16,
1033
+ 0,
1034
+ "LATENT"
1035
+ ],
1036
+ [
1037
+ 27,
1038
+ 4,
1039
+ 0,
1040
+ 16,
1041
+ 1,
1042
+ "VAE"
1043
+ ],
1044
+ [
1045
+ 28,
1046
+ 16,
1047
+ 0,
1048
+ 17,
1049
+ 0,
1050
+ "IMAGE"
1051
+ ]
1052
+ ],
1053
+ "groups": [],
1054
+ "config": {},
1055
+ "extra": {},
1056
+ "version": 0.4
1057
+ }
workflows/new-krea2-faceswap-v13-turbo.json ADDED
@@ -0,0 +1,1057 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "last_node_id": 18,
3
+ "last_link_id": 28,
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
+ 14,
100
+ 17
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
+ 27
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
+ 15,
220
+ 18
221
+ ],
222
+ "slot_index": 0
223
+ },
224
+ {
225
+ "name": "width",
226
+ "type": "INT",
227
+ "links": [
228
+ 20
229
+ ],
230
+ "slot_index": 1
231
+ },
232
+ {
233
+ "name": "height",
234
+ "type": "INT",
235
+ "links": [
236
+ 21
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
+ 16,
368
+ 19
369
+ ],
370
+ "slot_index": 0
371
+ },
372
+ {
373
+ "name": "width",
374
+ "type": "INT",
375
+ "links": [],
376
+ "slot_index": 1
377
+ },
378
+ {
379
+ "name": "height",
380
+ "type": "INT",
381
+ "links": [],
382
+ "slot_index": 2
383
+ }
384
+ ],
385
+ "properties": {
386
+ "Node name for S&R": "ImageResizeKJv2",
387
+ "cnr_id": "comfyui-kjnodes",
388
+ "ver": "93a4fba44c1635a716dc262f157a7ded7d716f3a"
389
+ },
390
+ "widgets_values": [
391
+ 1520,
392
+ 1520,
393
+ "lanczos",
394
+ "resize",
395
+ "0, 0, 0",
396
+ "center",
397
+ 16,
398
+ "cpu"
399
+ ],
400
+ "title": "Resize face ref (AR kept, /16)"
401
+ },
402
+ {
403
+ "id": 10,
404
+ "type": "VAEEncode",
405
+ "pos": [
406
+ 440,
407
+ 1290
408
+ ],
409
+ "size": [
410
+ 300,
411
+ 46
412
+ ],
413
+ "flags": {},
414
+ "order": 9,
415
+ "mode": 0,
416
+ "inputs": [
417
+ {
418
+ "name": "pixels",
419
+ "type": "IMAGE",
420
+ "link": 6
421
+ },
422
+ {
423
+ "name": "vae",
424
+ "type": "VAE",
425
+ "link": 7
426
+ }
427
+ ],
428
+ "outputs": [
429
+ {
430
+ "name": "LATENT",
431
+ "type": "LATENT",
432
+ "links": [
433
+ 10
434
+ ],
435
+ "slot_index": 0
436
+ }
437
+ ],
438
+ "properties": {
439
+ "Node name for S&R": "VAEEncode"
440
+ },
441
+ "title": "VAE Encode Face"
442
+ },
443
+ {
444
+ "id": 11,
445
+ "type": "Krea2EditModelPatch",
446
+ "pos": [
447
+ 800,
448
+ 440
449
+ ],
450
+ "size": [
451
+ 300,
452
+ 190
453
+ ],
454
+ "flags": {},
455
+ "order": 10,
456
+ "mode": 0,
457
+ "inputs": [
458
+ {
459
+ "name": "model",
460
+ "type": "MODEL",
461
+ "link": 8
462
+ },
463
+ {
464
+ "name": "source_latent",
465
+ "type": "LATENT",
466
+ "link": 9
467
+ },
468
+ {
469
+ "name": "source_latent_b",
470
+ "type": "LATENT",
471
+ "link": 10
472
+ },
473
+ {
474
+ "name": "ref_boost_mask",
475
+ "type": "MASK",
476
+ "link": null
477
+ },
478
+ {
479
+ "name": "vae",
480
+ "type": "VAE",
481
+ "link": 11
482
+ },
483
+ {
484
+ "name": "source_image",
485
+ "type": "IMAGE",
486
+ "link": 12
487
+ },
488
+ {
489
+ "name": "source_image_b",
490
+ "type": "IMAGE",
491
+ "link": 13
492
+ }
493
+ ],
494
+ "outputs": [
495
+ {
496
+ "name": "MODEL",
497
+ "type": "MODEL",
498
+ "links": [
499
+ 22
500
+ ],
501
+ "slot_index": 0
502
+ }
503
+ ],
504
+ "properties": {
505
+ "Node name for S&R": "Krea2EditModelPatch",
506
+ "aux_id": "lbouaraba/comfyui-krea2edit",
507
+ "ver": "207c52d52b25f5ed23cd9bc5c2d88c6cf3026686"
508
+ },
509
+ "widgets_values": [
510
+ 4.0,
511
+ 1.0,
512
+ "fit"
513
+ ],
514
+ "title": "Krea2 Edit (source patch)"
515
+ },
516
+ {
517
+ "id": 12,
518
+ "type": "Krea2EditGroundedEncode",
519
+ "pos": [
520
+ 440,
521
+ 60
522
+ ],
523
+ "size": [
524
+ 420,
525
+ 190
526
+ ],
527
+ "flags": {},
528
+ "order": 11,
529
+ "mode": 0,
530
+ "inputs": [
531
+ {
532
+ "name": "clip",
533
+ "type": "CLIP",
534
+ "link": 14
535
+ },
536
+ {
537
+ "name": "image",
538
+ "type": "IMAGE",
539
+ "link": 15
540
+ },
541
+ {
542
+ "name": "image_b",
543
+ "type": "IMAGE",
544
+ "link": 16
545
+ }
546
+ ],
547
+ "outputs": [
548
+ {
549
+ "name": "CONDITIONING",
550
+ "type": "CONDITIONING",
551
+ "links": [
552
+ 23
553
+ ],
554
+ "slot_index": 0
555
+ }
556
+ ],
557
+ "properties": {
558
+ "Node name for S&R": "Krea2EditGroundedEncode",
559
+ "aux_id": "lbouaraba/comfyui-krea2edit",
560
+ "ver": "207c52d52b25f5ed23cd9bc5c2d88c6cf3026686"
561
+ },
562
+ "widgets_values": [
563
+ "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.",
564
+ 1024,
565
+ ""
566
+ ],
567
+ "title": "Edit Instruction (grounded)"
568
+ },
569
+ {
570
+ "id": 13,
571
+ "type": "Krea2EditGroundedEncode",
572
+ "pos": [
573
+ 440,
574
+ 300
575
+ ],
576
+ "size": [
577
+ 420,
578
+ 130
579
+ ],
580
+ "flags": {},
581
+ "order": 12,
582
+ "mode": 0,
583
+ "inputs": [
584
+ {
585
+ "name": "clip",
586
+ "type": "CLIP",
587
+ "link": 17
588
+ },
589
+ {
590
+ "name": "image",
591
+ "type": "IMAGE",
592
+ "link": 18
593
+ },
594
+ {
595
+ "name": "image_b",
596
+ "type": "IMAGE",
597
+ "link": 19
598
+ }
599
+ ],
600
+ "outputs": [
601
+ {
602
+ "name": "CONDITIONING",
603
+ "type": "CONDITIONING",
604
+ "links": [
605
+ 24
606
+ ],
607
+ "slot_index": 0
608
+ }
609
+ ],
610
+ "properties": {
611
+ "Node name for S&R": "Krea2EditGroundedEncode",
612
+ "aux_id": "lbouaraba/comfyui-krea2edit",
613
+ "ver": "207c52d52b25f5ed23cd9bc5c2d88c6cf3026686"
614
+ },
615
+ "widgets_values": [
616
+ "",
617
+ 1024,
618
+ ""
619
+ ],
620
+ "title": "Negative (grounded \u2014 used at CFG > 1)"
621
+ },
622
+ {
623
+ "id": 14,
624
+ "type": "EmptySD3LatentImage",
625
+ "pos": [
626
+ 800,
627
+ 680
628
+ ],
629
+ "size": [
630
+ 300,
631
+ 106
632
+ ],
633
+ "flags": {},
634
+ "order": 13,
635
+ "mode": 0,
636
+ "inputs": [
637
+ {
638
+ "name": "width",
639
+ "type": "INT",
640
+ "link": 20,
641
+ "widget": {
642
+ "name": "width"
643
+ }
644
+ },
645
+ {
646
+ "name": "height",
647
+ "type": "INT",
648
+ "link": 21,
649
+ "widget": {
650
+ "name": "height"
651
+ }
652
+ }
653
+ ],
654
+ "outputs": [
655
+ {
656
+ "name": "LATENT",
657
+ "type": "LATENT",
658
+ "links": [
659
+ 25
660
+ ],
661
+ "slot_index": 0
662
+ }
663
+ ],
664
+ "properties": {
665
+ "Node name for S&R": "EmptySD3LatentImage"
666
+ },
667
+ "widgets_values": [
668
+ 1216,
669
+ 1520,
670
+ 1
671
+ ],
672
+ "title": "Target Latent (auto-follows body AR)"
673
+ },
674
+ {
675
+ "id": 15,
676
+ "type": "KSampler",
677
+ "pos": [
678
+ 1160,
679
+ 60
680
+ ],
681
+ "size": [
682
+ 315,
683
+ 262
684
+ ],
685
+ "flags": {},
686
+ "order": 14,
687
+ "mode": 0,
688
+ "inputs": [
689
+ {
690
+ "name": "model",
691
+ "type": "MODEL",
692
+ "link": 22
693
+ },
694
+ {
695
+ "name": "positive",
696
+ "type": "CONDITIONING",
697
+ "link": 23
698
+ },
699
+ {
700
+ "name": "negative",
701
+ "type": "CONDITIONING",
702
+ "link": 24
703
+ },
704
+ {
705
+ "name": "latent_image",
706
+ "type": "LATENT",
707
+ "link": 25
708
+ }
709
+ ],
710
+ "outputs": [
711
+ {
712
+ "name": "LATENT",
713
+ "type": "LATENT",
714
+ "links": [
715
+ 26
716
+ ],
717
+ "slot_index": 0
718
+ }
719
+ ],
720
+ "properties": {
721
+ "Node name for S&R": "KSampler"
722
+ },
723
+ "widgets_values": [
724
+ 42,
725
+ "randomize",
726
+ 12,
727
+ 1.0,
728
+ "er_sde",
729
+ "simple",
730
+ 1.0
731
+ ]
732
+ },
733
+ {
734
+ "id": 16,
735
+ "type": "VAEDecode",
736
+ "pos": [
737
+ 1160,
738
+ 380
739
+ ],
740
+ "size": [
741
+ 210,
742
+ 46
743
+ ],
744
+ "flags": {},
745
+ "order": 15,
746
+ "mode": 0,
747
+ "inputs": [
748
+ {
749
+ "name": "samples",
750
+ "type": "LATENT",
751
+ "link": 26
752
+ },
753
+ {
754
+ "name": "vae",
755
+ "type": "VAE",
756
+ "link": 27
757
+ }
758
+ ],
759
+ "outputs": [
760
+ {
761
+ "name": "IMAGE",
762
+ "type": "IMAGE",
763
+ "links": [
764
+ 28
765
+ ],
766
+ "slot_index": 0
767
+ }
768
+ ],
769
+ "properties": {
770
+ "Node name for S&R": "VAEDecode"
771
+ }
772
+ },
773
+ {
774
+ "id": 17,
775
+ "type": "SaveImage",
776
+ "pos": [
777
+ 1160,
778
+ 480
779
+ ],
780
+ "size": [
781
+ 360,
782
+ 270
783
+ ],
784
+ "flags": {},
785
+ "order": 16,
786
+ "mode": 0,
787
+ "inputs": [
788
+ {
789
+ "name": "images",
790
+ "type": "IMAGE",
791
+ "link": 28
792
+ }
793
+ ],
794
+ "outputs": [],
795
+ "properties": {
796
+ "Node name for S&R": "SaveImage"
797
+ },
798
+ "widgets_values": [
799
+ "new-krea2-faceswap-v13-turbo"
800
+ ]
801
+ },
802
+ {
803
+ "id": 18,
804
+ "type": "MarkdownNote",
805
+ "pos": [
806
+ 1540,
807
+ 60
808
+ ],
809
+ "size": [
810
+ 520,
811
+ 460
812
+ ],
813
+ "flags": {},
814
+ "order": 17,
815
+ "mode": 0,
816
+ "inputs": [],
817
+ "outputs": [],
818
+ "properties": {
819
+ "Node name for S&R": "MarkdownNote"
820
+ },
821
+ "widgets_values": [
822
+ "## Krea 2 FACE SWAP v13 \u2014 Turbo MXFP8, AR-matched (fast)\n\n**v13 = the v12 benchmark-winning face swap + the optimization research pass:**\n\n- **Output follows the body image's aspect ratio** (no more square crop) \u2014 latent width/height come from the resized image 1.\n- **Long edge capped at 1520, \u22641.85MP** \u2014 inside the model's 2MP ceiling.\n- **All dims divisible by 16** (KJNodes resize) \u2014 avoids the documented portrait-blur bug.\n- **grounding_px 1024** \u2014 stronger identity for people edits (v1.1 trained 384\u2013768; 1024 is the author's 'often still works nicely' upper band).\n- **Turbo at 12 steps** \u2014 more face detail; composition is pinned by the source anyway.\n\nBaked-in winning settings from v12: `krea2_identity_edit_v1_2` LoRA @1.0, `fit_mode: fit`, `ref_boost: 4`, `er_sde`. Body/scene = image 1, face ref = image 2 (fixed order). Tip: crop the face reference close to the head \u2014 face pixel density is the identity budget. Optional next lever: feed a face mask into the patch node's `ref_boost_mask` to focus the boost on the face region.\n\nNeeds the [comfyui-krea2edit](https://github.com/lbouaraba/comfyui-krea2edit) node pack + ComfyUI-KJNodes. Models: see [conradlocke/krea2-identity-edit](https://huggingface.co/conradlocke/krea2-identity-edit) and Comfy-Org/Krea-2 (all mirrored in our HF repo).\n\nTurbo MXFP8, 12 steps / CFG 1.0 / `er_sde`."
823
+ ],
824
+ "title": "About this workflow"
825
+ }
826
+ ],
827
+ "links": [
828
+ [
829
+ 1,
830
+ 1,
831
+ 0,
832
+ 2,
833
+ 0,
834
+ "MODEL"
835
+ ],
836
+ [
837
+ 2,
838
+ 5,
839
+ 0,
840
+ 6,
841
+ 0,
842
+ "IMAGE"
843
+ ],
844
+ [
845
+ 3,
846
+ 6,
847
+ 0,
848
+ 7,
849
+ 0,
850
+ "IMAGE"
851
+ ],
852
+ [
853
+ 4,
854
+ 4,
855
+ 0,
856
+ 7,
857
+ 1,
858
+ "VAE"
859
+ ],
860
+ [
861
+ 5,
862
+ 8,
863
+ 0,
864
+ 9,
865
+ 0,
866
+ "IMAGE"
867
+ ],
868
+ [
869
+ 6,
870
+ 9,
871
+ 0,
872
+ 10,
873
+ 0,
874
+ "IMAGE"
875
+ ],
876
+ [
877
+ 7,
878
+ 4,
879
+ 0,
880
+ 10,
881
+ 1,
882
+ "VAE"
883
+ ],
884
+ [
885
+ 8,
886
+ 2,
887
+ 0,
888
+ 11,
889
+ 0,
890
+ "MODEL"
891
+ ],
892
+ [
893
+ 9,
894
+ 7,
895
+ 0,
896
+ 11,
897
+ 1,
898
+ "LATENT"
899
+ ],
900
+ [
901
+ 10,
902
+ 10,
903
+ 0,
904
+ 11,
905
+ 2,
906
+ "LATENT"
907
+ ],
908
+ [
909
+ 11,
910
+ 4,
911
+ 0,
912
+ 11,
913
+ 4,
914
+ "VAE"
915
+ ],
916
+ [
917
+ 12,
918
+ 6,
919
+ 0,
920
+ 11,
921
+ 5,
922
+ "IMAGE"
923
+ ],
924
+ [
925
+ 13,
926
+ 9,
927
+ 0,
928
+ 11,
929
+ 6,
930
+ "IMAGE"
931
+ ],
932
+ [
933
+ 14,
934
+ 3,
935
+ 0,
936
+ 12,
937
+ 0,
938
+ "CLIP"
939
+ ],
940
+ [
941
+ 15,
942
+ 6,
943
+ 0,
944
+ 12,
945
+ 1,
946
+ "IMAGE"
947
+ ],
948
+ [
949
+ 16,
950
+ 9,
951
+ 0,
952
+ 12,
953
+ 2,
954
+ "IMAGE"
955
+ ],
956
+ [
957
+ 17,
958
+ 3,
959
+ 0,
960
+ 13,
961
+ 0,
962
+ "CLIP"
963
+ ],
964
+ [
965
+ 18,
966
+ 6,
967
+ 0,
968
+ 13,
969
+ 1,
970
+ "IMAGE"
971
+ ],
972
+ [
973
+ 19,
974
+ 9,
975
+ 0,
976
+ 13,
977
+ 2,
978
+ "IMAGE"
979
+ ],
980
+ [
981
+ 20,
982
+ 6,
983
+ 1,
984
+ 14,
985
+ 0,
986
+ "INT"
987
+ ],
988
+ [
989
+ 21,
990
+ 6,
991
+ 2,
992
+ 14,
993
+ 1,
994
+ "INT"
995
+ ],
996
+ [
997
+ 22,
998
+ 11,
999
+ 0,
1000
+ 15,
1001
+ 0,
1002
+ "MODEL"
1003
+ ],
1004
+ [
1005
+ 23,
1006
+ 12,
1007
+ 0,
1008
+ 15,
1009
+ 1,
1010
+ "CONDITIONING"
1011
+ ],
1012
+ [
1013
+ 24,
1014
+ 13,
1015
+ 0,
1016
+ 15,
1017
+ 2,
1018
+ "CONDITIONING"
1019
+ ],
1020
+ [
1021
+ 25,
1022
+ 14,
1023
+ 0,
1024
+ 15,
1025
+ 3,
1026
+ "LATENT"
1027
+ ],
1028
+ [
1029
+ 26,
1030
+ 15,
1031
+ 0,
1032
+ 16,
1033
+ 0,
1034
+ "LATENT"
1035
+ ],
1036
+ [
1037
+ 27,
1038
+ 4,
1039
+ 0,
1040
+ 16,
1041
+ 1,
1042
+ "VAE"
1043
+ ],
1044
+ [
1045
+ 28,
1046
+ 16,
1047
+ 0,
1048
+ 17,
1049
+ 0,
1050
+ "IMAGE"
1051
+ ]
1052
+ ],
1053
+ "groups": [],
1054
+ "config": {},
1055
+ "extra": {},
1056
+ "version": 0.4
1057
+ }