{
  "76": {
    "inputs": {
      "image": "segment-008 (1).png"
    },
    "class_type": "LoadImage",
    "_meta": {
      "title": "Load Image"
    }
  },
  "81": {
    "inputs": {
      "image": "avatar_fullbody.png"
    },
    "class_type": "LoadImage",
    "_meta": {
      "title": "Load Image"
    }
  },
  "94": {
    "inputs": {
      "filename_prefix": "Flux2-Klein-4b-base",
      "images": [
        "92:104",
        0
      ]
    },
    "class_type": "SaveImage",
    "_meta": {
      "title": "Save Image"
    }
  },
  "92:102": {
    "inputs": {
      "sampler_name": "euler"
    },
    "class_type": "KSamplerSelect",
    "_meta": {
      "title": "KSamplerSelect"
    }
  },
  "92:103": {
    "inputs": {
      "noise": [
        "92:105",
        0
      ],
      "guider": [
        "92:114",
        0
      ],
      "sampler": [
        "92:102",
        0
      ],
      "sigmas": [
        "92:115",
        0
      ],
      "latent_image": [
        "92:109",
        0
      ]
    },
    "class_type": "SamplerCustomAdvanced",
    "_meta": {
      "title": "SamplerCustomAdvanced"
    }
  },
  "92:104": {
    "inputs": {
      "samples": [
        "92:103",
        0
      ],
      "vae": [
        "92:107",
        0
      ]
    },
    "class_type": "VAEDecode",
    "_meta": {
      "title": "VAE Decode"
    }
  },
  "92:105": {
    "inputs": {
      "noise_seed": 92982115702308
    },
    "class_type": "RandomNoise",
    "_meta": {
      "title": "RandomNoise"
    }
  },
  "92:106": {
    "inputs": {
      "unet_name": "flux-2-klein-base-9b-fp8.safetensors",
      "weight_dtype": "default"
    },
    "class_type": "UNETLoader",
    "_meta": {
      "title": "Load Diffusion Model"
    }
  },
  "92:107": {
    "inputs": {
      "vae_name": "full_encoder_small_decoder.safetensors"
    },
    "class_type": "VAELoader",
    "_meta": {
      "title": "Load VAE"
    }
  },
  "92:108": {
    "inputs": {
      "image": [
        "92:110",
        0
      ]
    },
    "class_type": "GetImageSize",
    "_meta": {
      "title": "Get Image Size"
    }
  },
  "92:109": {
    "inputs": {
      "width": [
        "92:108",
        0
      ],
      "height": [
        "92:108",
        1
      ],
      "batch_size": 1
    },
    "class_type": "EmptyFlux2LatentImage",
    "_meta": {
      "title": "Empty Flux 2 Latent"
    }
  },
  "92:110": {
    "inputs": {
      "upscale_method": "lanczos",
      "megapixels": 1,
      "resolution_steps": 1,
      "image": [
        "76",
        0
      ]
    },
    "class_type": "ImageScaleToTotalPixels",
    "_meta": {
      "title": "Scale Image to Total Pixels"
    }
  },
  "92:85": {
    "inputs": {
      "upscale_method": "lanczos",
      "megapixels": 1,
      "resolution_steps": 1,
      "image": [
        "81",
        0
      ]
    },
    "class_type": "ImageScaleToTotalPixels",
    "_meta": {
      "title": "Scale Image to Total Pixels"
    }
  },
  "92:111": {
    "inputs": {
      "clip_name": "qwen_3_8b_fp8mixed.safetensors",
      "type": "flux2",
      "device": "default"
    },
    "class_type": "CLIPLoader",
    "_meta": {
      "title": "Load CLIP"
    }
  },
  "92:113": {
    "inputs": {
      "text": "Edit Image 1 by replacing only the primary focus person with the identity from Image 2.\n\nTarget selection:\nReplace the main focus person in Image 1: the person closest to camera, most centered, largest in frame, most brightly lit, or visually treated as the subject. If multiple people are visible, replace only that focus person. Do not change background people, crowds, silhouettes, companions, enemies, or secondary characters.\n\nIdentity transfer:\nUse Image 2 as the identity reference for the focus person. Transfer the face, facial structure, skin tone, age impression, hair, hairline, hair color, hairstyle, hair length, beard, moustache, facial hair, glasses, and overall body shape from Image 2.\n\nHair and face priority:\nReplace all visible character hair with the hair from Image 2. Do not keep the original character's hair, hairline, hair color, hairstyle, beard, facial hair, or hair silhouette from Image 1.\n\nPreserve scene:\nKeep the background, mood, lighting, camera angle, composition, clothing, pose, posture, expression, gaze direction, and cinematic atmosphere from Image 1. Keep the outfit from Image 1 unless it conflicts with preserving the focus person's head and identity.\n\nBoundaries:\nDo not alter non-focus people. Do not add new people. Do not remove people. Do not change the scene, props, weapons, furniture, environment, framing, or style. Keep the result photorealistic and natural.",
      "clip": [
        "92:111",
        0
      ]
    },
    "class_type": "CLIPTextEncode",
    "_meta": {
      "title": "CLIP Text Encode (Positive Prompt)"
    }
  },
  "92:87": {
    "inputs": {
      "text": "",
      "clip": [
        "92:111",
        0
      ]
    },
    "class_type": "CLIPTextEncode",
    "_meta": {
      "title": "CLIP Text Encode ( Negative Prompt)"
    }
  },
  "92:114": {
    "inputs": {
      "cfg": 5,
      "model": [
        "92:106",
        0
      ],
      "positive": [
        "92:130",
        0
      ],
      "negative": [
        "92:128",
        0
      ]
    },
    "class_type": "CFGGuider",
    "_meta": {
      "title": "CFG Guider"
    }
  },
  "92:115": {
    "inputs": {
      "steps": 20,
      "width": [
        "92:108",
        0
      ],
      "height": [
        "92:108",
        1
      ]
    },
    "class_type": "Flux2Scheduler",
    "_meta": {
      "title": "Flux2Scheduler"
    }
  },
  "92:125": {
    "inputs": {
      "conditioning": [
        "92:87",
        0
      ],
      "latent": [
        "92:126",
        0
      ]
    },
    "class_type": "ReferenceLatent",
    "_meta": {
      "title": "ReferenceLatent"
    }
  },
  "92:126": {
    "inputs": {
      "pixels": [
        "92:110",
        0
      ],
      "vae": [
        "92:107",
        0
      ]
    },
    "class_type": "VAEEncode",
    "_meta": {
      "title": "VAE Encode"
    }
  },
  "92:127": {
    "inputs": {
      "conditioning": [
        "92:113",
        0
      ],
      "latent": [
        "92:126",
        0
      ]
    },
    "class_type": "ReferenceLatent",
    "_meta": {
      "title": "ReferenceLatent"
    }
  },
  "92:128": {
    "inputs": {
      "conditioning": [
        "92:125",
        0
      ],
      "latent": [
        "92:129",
        0
      ]
    },
    "class_type": "ReferenceLatent",
    "_meta": {
      "title": "ReferenceLatent"
    }
  },
  "92:129": {
    "inputs": {
      "pixels": [
        "92:85",
        0
      ],
      "vae": [
        "92:107",
        0
      ]
    },
    "class_type": "VAEEncode",
    "_meta": {
      "title": "VAE Encode"
    }
  },
  "92:130": {
    "inputs": {
      "conditioning": [
        "92:127",
        0
      ],
      "latent": [
        "92:129",
        0
      ]
    },
    "class_type": "ReferenceLatent",
    "_meta": {
      "title": "ReferenceLatent"
    }
  }
}
