| { |
| "1": { |
| "_meta": { |
| "title": "Load Krea 2 Diffusion Model" |
| }, |
| "class_type": "UNETLoader", |
| "inputs": { |
| "unet_name": "krea2_raw_bf16.safetensors", |
| "weight_dtype": "default" |
| } |
| }, |
| "10": { |
| "_meta": { |
| "title": "Scale person ref" |
| }, |
| "class_type": "ImageScaleToMaxDimension", |
| "inputs": { |
| "image": [ |
| "9", |
| 0 |
| ], |
| "largest_size": [ |
| "6", |
| 0 |
| ], |
| "upscale_method": "lanczos" |
| } |
| }, |
| "11": { |
| "_meta": { |
| "title": "VAE Encode Person" |
| }, |
| "class_type": "VAEEncode", |
| "inputs": { |
| "pixels": [ |
| "10", |
| 0 |
| ], |
| "vae": [ |
| "4", |
| 0 |
| ] |
| } |
| }, |
| "12": { |
| "_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, |
| "source_image": [ |
| "7", |
| 0 |
| ], |
| "source_image_b": [ |
| "10", |
| 0 |
| ], |
| "source_latent": [ |
| "8", |
| 0 |
| ], |
| "source_latent_b": [ |
| "11", |
| 0 |
| ], |
| "vae": [ |
| "4", |
| 0 |
| ] |
| } |
| }, |
| "13": { |
| "_meta": { |
| "title": "Edit Instruction (grounded on source)" |
| }, |
| "class_type": "Krea2EditGroundedEncode", |
| "inputs": { |
| "clip": [ |
| "3", |
| 0 |
| ], |
| "grounding_px": 768, |
| "image": [ |
| "7", |
| 0 |
| ], |
| "image_b": [ |
| "10", |
| 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": 768, |
| "image": [ |
| "7", |
| 0 |
| ], |
| "image_b": [ |
| "10", |
| 0 |
| ], |
| "prompt": "blurry, low quality, jpeg artifacts, oversaturated, plastic skin, deformed face, extra fingers", |
| "system_prompt": "" |
| } |
| }, |
| "15": { |
| "_meta": { |
| "title": "Target Latent" |
| }, |
| "class_type": "EmptySD3LatentImage", |
| "inputs": { |
| "batch_size": 1, |
| "height": 1536, |
| "width": 1536 |
| } |
| }, |
| "16": { |
| "class_type": "KSampler", |
| "inputs": { |
| "cfg": 2.5, |
| "denoise": 1.0, |
| "latent_image": [ |
| "15", |
| 0 |
| ], |
| "model": [ |
| "12", |
| 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-v12-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": "Input max size (longest edge)" |
| }, |
| "class_type": "PrimitiveInt", |
| "inputs": { |
| "value": 1536 |
| } |
| }, |
| "7": { |
| "_meta": { |
| "title": "Scale source (longest edge = max size)" |
| }, |
| "class_type": "ImageScaleToMaxDimension", |
| "inputs": { |
| "image": [ |
| "5", |
| 0 |
| ], |
| "largest_size": [ |
| "6", |
| 0 |
| ], |
| "upscale_method": "lanczos" |
| } |
| }, |
| "8": { |
| "_meta": { |
| "title": "VAE Encode Source" |
| }, |
| "class_type": "VAEEncode", |
| "inputs": { |
| "pixels": [ |
| "7", |
| 0 |
| ], |
| "vae": [ |
| "4", |
| 0 |
| ] |
| } |
| }, |
| "9": { |
| "_meta": { |
| "title": "Face Reference (image 2)" |
| }, |
| "class_type": "LoadImage", |
| "inputs": { |
| "image": "face.jpg" |
| } |
| } |
| } |
|
|