| { |
| "1": { |
| "_meta": { |
| "title": "Load Krea 2 Diffusion Model" |
| }, |
| "class_type": "UNETLoader", |
| "inputs": { |
| "unet_name": "krea2_raw_bf16.safetensors", |
| "weight_dtype": "default" |
| } |
| }, |
| "10": { |
| "_meta": { |
| "title": "VAE Encode Face" |
| }, |
| "class_type": "VAEEncode", |
| "inputs": { |
| "pixels": [ |
| "9", |
| 0 |
| ], |
| "vae": [ |
| "4", |
| 0 |
| ] |
| } |
| }, |
| "11": { |
| "_meta": { |
| "title": "Krea2 Edit (source patch)" |
| }, |
| "class_type": "Krea2EditModelPatch", |
| "inputs": { |
| "fit_mode": "fit", |
| "model": [ |
| "2", |
| 0 |
| ], |
| "ref_boost": 4.0, |
| "ref_boost_a": 1.0, |
| "ref_boost_mask": [ |
| "12", |
| 1 |
| ], |
| "source_image": [ |
| "6", |
| 0 |
| ], |
| "source_image_b": [ |
| "9", |
| 0 |
| ], |
| "source_latent": [ |
| "7", |
| 0 |
| ], |
| "source_latent_b": [ |
| "10", |
| 0 |
| ], |
| "vae": [ |
| "4", |
| 0 |
| ] |
| } |
| }, |
| "12": { |
| "_meta": { |
| "title": "Face mask on reference (\u2192 ref_boost focuses here)" |
| }, |
| "class_type": "FaceSegment", |
| "inputs": { |
| "Earring": false, |
| "Eyeglasses": false, |
| "Hair": false, |
| "Left-ear": false, |
| "Left-eye": true, |
| "Left-eyebrow": true, |
| "Lower-lip": true, |
| "Mouth": true, |
| "Neck": false, |
| "Nose": true, |
| "Right-ear": false, |
| "Right-eye": true, |
| "Right-eyebrow": true, |
| "Skin": true, |
| "Upper-lip": true, |
| "background": "Alpha", |
| "images": [ |
| "9", |
| 0 |
| ], |
| "invert_output": false, |
| "mask_blur": 8, |
| "mask_offset": 0, |
| "process_res": 512 |
| } |
| }, |
| "13": { |
| "_meta": { |
| "title": "Edit Instruction (grounded)" |
| }, |
| "class_type": "Krea2EditGroundedEncode", |
| "inputs": { |
| "clip": [ |
| "3", |
| 0 |
| ], |
| "grounding_px": 1024, |
| "image": [ |
| "6", |
| 0 |
| ], |
| "image_b": [ |
| "9", |
| 0 |
| ], |
| "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.", |
| "system_prompt": "" |
| } |
| }, |
| "14": { |
| "_meta": { |
| "title": "Negative (grounded \u2014 used at CFG > 1)" |
| }, |
| "class_type": "Krea2EditGroundedEncode", |
| "inputs": { |
| "clip": [ |
| "3", |
| 0 |
| ], |
| "grounding_px": 1024, |
| "image": [ |
| "6", |
| 0 |
| ], |
| "image_b": [ |
| "9", |
| 0 |
| ], |
| "prompt": "blurry, low quality, jpeg artifacts, oversaturated, plastic skin, deformed face, extra fingers", |
| "system_prompt": "" |
| } |
| }, |
| "15": { |
| "_meta": { |
| "title": "Target Latent (auto-follows body AR)" |
| }, |
| "class_type": "EmptySD3LatentImage", |
| "inputs": { |
| "batch_size": 1, |
| "height": [ |
| "6", |
| 2 |
| ], |
| "width": [ |
| "6", |
| 1 |
| ] |
| } |
| }, |
| "16": { |
| "class_type": "KSampler", |
| "inputs": { |
| "cfg": 2.5, |
| "denoise": 1.0, |
| "latent_image": [ |
| "15", |
| 0 |
| ], |
| "model": [ |
| "11", |
| 0 |
| ], |
| "negative": [ |
| "14", |
| 0 |
| ], |
| "positive": [ |
| "13", |
| 0 |
| ], |
| "sampler_name": "er_sde", |
| "scheduler": "simple", |
| "seed": 42, |
| "steps": 50 |
| } |
| }, |
| "17": { |
| "class_type": "VAEDecode", |
| "inputs": { |
| "samples": [ |
| "16", |
| 0 |
| ], |
| "vae": [ |
| "4", |
| 0 |
| ] |
| } |
| }, |
| "18": { |
| "class_type": "SaveImage", |
| "inputs": { |
| "filename_prefix": "new-krea2-faceswap-v14-raw", |
| "images": [ |
| "17", |
| 0 |
| ] |
| } |
| }, |
| "2": { |
| "_meta": { |
| "title": "Identity Edit LoRA v1.2 (required)" |
| }, |
| "class_type": "LoraLoaderModelOnly", |
| "inputs": { |
| "lora_name": "krea2_identity_edit_v1_2.safetensors", |
| "model": [ |
| "1", |
| 0 |
| ], |
| "strength_model": 1.0 |
| } |
| }, |
| "3": { |
| "_meta": { |
| "title": "Load Text Encoder" |
| }, |
| "class_type": "CLIPLoader", |
| "inputs": { |
| "clip_name": "qwen3vl_4b_bf16.safetensors", |
| "device": "default", |
| "type": "krea2" |
| } |
| }, |
| "4": { |
| "_meta": { |
| "title": "Load VAE" |
| }, |
| "class_type": "VAELoader", |
| "inputs": { |
| "vae_name": "qwen_image_vae.safetensors" |
| } |
| }, |
| "5": { |
| "_meta": { |
| "title": "Body / Scene Image (image 1)" |
| }, |
| "class_type": "LoadImage", |
| "inputs": { |
| "image": "body.jpg" |
| } |
| }, |
| "6": { |
| "_meta": { |
| "title": "Resize body (AR kept, /16, max 1520)" |
| }, |
| "class_type": "ImageResizeKJv2", |
| "inputs": { |
| "crop_position": "center", |
| "device": "cpu", |
| "divisible_by": 16, |
| "height": 1520, |
| "image": [ |
| "5", |
| 0 |
| ], |
| "keep_proportion": "resize", |
| "pad_color": "0, 0, 0", |
| "upscale_method": "lanczos", |
| "width": 1520 |
| } |
| }, |
| "7": { |
| "_meta": { |
| "title": "VAE Encode Body" |
| }, |
| "class_type": "VAEEncode", |
| "inputs": { |
| "pixels": [ |
| "6", |
| 0 |
| ], |
| "vae": [ |
| "4", |
| 0 |
| ] |
| } |
| }, |
| "8": { |
| "_meta": { |
| "title": "Face Reference (image 2 \u2014 crop close to the head)" |
| }, |
| "class_type": "LoadImage", |
| "inputs": { |
| "image": "face.jpg" |
| } |
| }, |
| "9": { |
| "_meta": { |
| "title": "Resize face ref (AR kept, /16)" |
| }, |
| "class_type": "ImageResizeKJv2", |
| "inputs": { |
| "crop_position": "center", |
| "device": "cpu", |
| "divisible_by": 16, |
| "height": 1520, |
| "image": [ |
| "8", |
| 0 |
| ], |
| "keep_proportion": "resize", |
| "pad_color": "0, 0, 0", |
| "upscale_method": "lanczos", |
| "width": 1520 |
| } |
| } |
| } |
|
|