File size: 6,225 Bytes
faac968
e6b028b
 
 
 
 
 
 
 
 
faac968
e6b028b
 
 
 
 
 
 
 
 
 
 
 
 
faac968
e6b028b
 
 
 
 
 
 
 
 
 
faac968
e6b028b
 
 
 
 
 
 
 
faac968
e6b028b
 
 
 
 
 
 
 
faac968
e6b028b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
faac968
e6b028b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
faac968
e6b028b
 
 
19bb84c
e6b028b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
faac968
e6b028b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
faac968
e6b028b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
faac968
e6b028b
 
 
 
 
 
 
 
faac968
e6b028b
 
 
 
 
 
 
 
faac968
e6b028b
 
 
 
 
 
 
 
faac968
e6b028b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
faac968
e6b028b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
faac968
e6b028b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
faac968
e6b028b
 
 
 
 
 
 
 
 
 
 
faac968
e6b028b
 
 
 
 
 
 
 
faac968
e6b028b
 
 
1068616
e6b028b
 
 
 
faac968
e6b028b
 
 
3a1cd03
e6b028b
 
 
 
faac968
e6b028b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
faac968
e6b028b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
faac968
e6b028b
 
 
 
 
 
 
 
 
 
 
faac968
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
{
  "1": {
    "inputs": {
      "unet_name": "krea2_turbo_bf16.safetensors",
      "weight_dtype": "default"
    },
    "class_type": "UNETLoader",
    "_meta": {
      "title": "Load Diffusion Model"
    }
  },
  "2": {
    "inputs": {
      "lora_name": "krea2-eric-insert.safetensors",
      "strength_model": 1,
      "model": [
        "1",
        0
      ]
    },
    "class_type": "LoraLoaderModelOnly",
    "_meta": {
      "title": "Load LoRA"
    }
  },
  "3": {
    "inputs": {
      "clip_name": "qwen3vl_4b_bf16.safetensors",
      "type": "krea2",
      "device": "default"
    },
    "class_type": "CLIPLoader",
    "_meta": {
      "title": "Load CLIP"
    }
  },
  "4": {
    "inputs": {
      "vae_name": "qwen_image_vae.safetensors"
    },
    "class_type": "VAELoader",
    "_meta": {
      "title": "Load VAE"
    }
  },
  "5": {
    "inputs": {
      "image": "reagan.png"
    },
    "class_type": "LoadImage",
    "_meta": {
      "title": "photo"
    }
  },
  "6": {
    "inputs": {
      "pixels": [
        "5",
        0
      ],
      "vae": [
        "4",
        0
      ]
    },
    "class_type": "VAEEncode",
    "_meta": {
      "title": "VAE Encode"
    }
  },
  "7": {
    "inputs": {
      "ref_boost": 2,
      "ref_boost_a": 1,
      "fit_mode": "fit",
      "model": [
        "2",
        0
      ],
      "source_latent": [
        "6",
        0
      ],
      "vae": [
        "4",
        0
      ],
      "source_image": [
        "5",
        0
      ]
    },
    "class_type": "Krea2EditModelPatch",
    "_meta": {
      "title": "Krea2 Edit (source patch)"
    }
  },
  "8": {
    "inputs": {
      "prompt": [
        "34",
        0
      ],
      "grounding_px": 512,
      "system_prompt": "",
      "clip": [
        "3",
        0
      ],
      "image": [
        "5",
        0
      ]
    },
    "class_type": "Krea2EditGroundedEncode",
    "_meta": {
      "title": "Krea2 Edit (grounded encode)"
    }
  },
  "9": {
    "inputs": {
      "seed": 956009336698080,
      "steps": 10,
      "cfg": 1,
      "sampler_name": "euler",
      "scheduler": "simple",
      "denoise": 1,
      "model": [
        "7",
        0
      ],
      "positive": [
        "8",
        0
      ],
      "negative": [
        "8",
        0
      ],
      "latent_image": [
        "6",
        0
      ]
    },
    "class_type": "KSampler",
    "_meta": {
      "title": "sampler"
    }
  },
  "10": {
    "inputs": {
      "samples": [
        "9",
        0
      ],
      "vae": [
        "4",
        0
      ]
    },
    "class_type": "VAEDecode",
    "_meta": {
      "title": "VAE Decode"
    }
  },
  "20": {
    "class_type": "PrimitiveStringMultiline",
    "inputs": {
      "value": "<|im_start|>system\nYou turn a photo-edit request into a short placement phrase for adding one man to a photo. Reply with only the phrase: where the man is and what he is doing, in lowercase, starting with an -ing verb or a preposition. Examples: \"standing on the left\", \"sitting on the bench\", \"shaking his hand\", \"standing behind them\", \"photobombing in the background\". Ignore who the request wants to add; it is always the same man. Ignore every other edit (weather, removing, changing or transforming people or things, style); the phrase never describes changing anyone or anything. If the request gives no placement, reply: standing next to the person<|im_end|>\n<|im_start|>user\n"
    },
    "_meta": {
      "title": "rewrite instruction"
    }
  },
  "21": {
    "class_type": "PrimitiveString",
    "inputs": {
      "value": "insert a ridiculously handsome man standing next to him"
    },
    "_meta": {
      "title": "request"
    }
  },
  "22": {
    "class_type": "PrimitiveStringMultiline",
    "inputs": {
      "value": "<|im_end|>\n<|im_start|>assistant\n"
    },
    "_meta": {
      "title": "rewrite chat end"
    }
  },
  "23": {
    "class_type": "StringConcatenate",
    "inputs": {
      "string_a": [
        "20",
        0
      ],
      "string_b": [
        "21",
        0
      ],
      "delimiter": ""
    },
    "_meta": {
      "title": "Concatenate Text"
    }
  },
  "24": {
    "class_type": "StringConcatenate",
    "inputs": {
      "string_a": [
        "23",
        0
      ],
      "string_b": [
        "22",
        0
      ],
      "delimiter": ""
    },
    "_meta": {
      "title": "Concatenate Text"
    }
  },
  "25": {
    "class_type": "TextGenerate",
    "inputs": {
      "clip": [
        "3",
        0
      ],
      "prompt": [
        "24",
        0
      ],
      "max_length": 600,
      "sampling_mode": "off",
      "thinking": true,
      "use_default_template": false
    },
    "_meta": {
      "title": "rewrite"
    }
  },
  "26": {
    "class_type": "PreviewAny",
    "inputs": {
      "source": [
        "25",
        0
      ]
    },
    "_meta": {
      "title": "rewrite output"
    }
  },
  "30": {
    "class_type": "PrimitiveString",
    "inputs": {
      "value": "standing next to the person"
    },
    "_meta": {
      "title": "placement"
    }
  },
  "31": {
    "class_type": "PrimitiveStringMultiline",
    "inputs": {
      "value": "Insert er1cshen, a man in his early 30s, "
    },
    "_meta": {
      "title": "prompt start"
    }
  },
  "32": {
    "class_type": "PrimitiveStringMultiline",
    "inputs": {
      "value": ", at the same scale, same lighting and camera angle. Keep everyone and everything else exactly as they are."
    },
    "_meta": {
      "title": "prompt end"
    }
  },
  "33": {
    "class_type": "StringConcatenate",
    "inputs": {
      "string_a": [
        "31",
        0
      ],
      "string_b": [
        "30",
        0
      ],
      "delimiter": ""
    },
    "_meta": {
      "title": "Concatenate Text"
    }
  },
  "34": {
    "class_type": "StringConcatenate",
    "inputs": {
      "string_a": [
        "33",
        0
      ],
      "string_b": [
        "32",
        0
      ],
      "delimiter": ""
    },
    "_meta": {
      "title": "Concatenate Text"
    }
  },
  "40": {
    "class_type": "PreviewImage",
    "inputs": {
      "images": [
        "10",
        0
      ]
    },
    "_meta": {
      "title": "output"
    }
  }
}