{
 "81": {
  "inputs": {
   "image": "bfb284425c24271b1a1df90ff3b57b835bf27fa28812ff334ce590428a77bd94.png"
  },
  "class_type": "LoadImage",
  "_meta": {
   "title": "Load Source Image"
  }
 },
 "76": {
  "inputs": {
   "image": "35a3091955e4e479d0719d04b33415742af4b8edaaadaa679a709cb38f971a4e.png"
  },
  "class_type": "LoadImage",
  "_meta": {
   "title": "Load Target Image"
  }
 },
 "190": {
  "inputs": {
   "compare_view": {
    "__value__": [
     "",
     ""
    ]
   },
   "image_a": [
    "204",
    0
   ],
   "image_b": [
    "199:120",
    0
   ]
  },
  "class_type": "ImageCompare",
  "_meta": {
   "title": "Compare Images"
  }
 },
 "199:110": {
  "inputs": {
   "noise_seed": 788122026421577
  },
  "class_type": "RandomNoise",
  "_meta": {
   "title": "RandomNoise"
  }
 },
 "199:111": {
  "inputs": {
   "vae_name": "flux2-vae.safetensors"
  },
  "class_type": "VAELoader",
  "_meta": {
   "title": "Load VAE"
  }
 },
 "199:112": {
  "inputs": {
   "image": [
    "199:120",
    0
   ]
  },
  "class_type": "GetImageSize",
  "_meta": {
   "title": "Get Image Size"
  }
 },
 "199:114:179": {
  "inputs": {
   "conditioning": [
    "199:116:180",
    0
   ],
   "latent": [
    "199:114:78",
    0
   ]
  },
  "class_type": "ReferenceLatent",
  "_meta": {
   "title": "Set Reference Latent"
  }
 },
 "199:114:78": {
  "inputs": {
   "pixels": [
    "199:121",
    0
   ],
   "vae": [
    "199:111",
    0
   ]
  },
  "class_type": "VAEEncode",
  "_meta": {
   "title": "VAE Encode"
  }
 },
 "199:114:77": {
  "inputs": {
   "conditioning": [
    "199:116:182",
    0
   ],
   "latent": [
    "199:114:78",
    0
   ]
  },
  "class_type": "ReferenceLatent",
  "_meta": {
   "title": "Set Reference Latent"
  }
 },
 "199:116:180": {
  "inputs": {
   "conditioning": [
    "199:119",
    0
   ],
   "latent": [
    "199:116:181",
    0
   ]
  },
  "class_type": "ReferenceLatent",
  "_meta": {
   "title": "Set Reference Latent"
  }
 },
 "199:116:181": {
  "inputs": {
   "pixels": [
    "199:120",
    0
   ],
   "vae": [
    "199:111",
    0
   ]
  },
  "class_type": "VAEEncode",
  "_meta": {
   "title": "VAE Encode"
  }
 },
 "199:116:182": {
  "inputs": {
   "conditioning": [
    "199:117",
    0
   ],
   "latent": [
    "199:116:181",
    0
   ]
  },
  "class_type": "ReferenceLatent",
  "_meta": {
   "title": "Set Reference Latent"
  }
 },
 "199:113": {
  "inputs": {
   "batch_size": 1,
   "width": [
    "199:112",
    0
   ],
   "height": [
    "199:112",
    1
   ]
  },
  "class_type": "EmptyFlux2LatentImage",
  "_meta": {
   "title": "Empty Flux 2 Latent"
  }
 },
 "199:109": {
  "inputs": {
   "noise": [
    "199:110",
    0
   ],
   "guider": [
    "199:123",
    0
   ],
   "sampler": [
    "199:125",
    0
   ],
   "sigmas": [
    "199:122",
    0
   ],
   "latent_image": [
    "199:113",
    0
   ]
  },
  "class_type": "SamplerCustomAdvanced",
  "_meta": {
   "title": "SamplerCustomAdvanced"
  }
 },
 "199:171": {
  "inputs": {
   "delimiter": "",
   "string_a": [
    "199:197",
    0
   ],
   "string_b": [
    "199:184",
    0
   ]
  },
  "class_type": "StringConcatenate",
  "_meta": {
   "title": "Concatenate Prompt"
  }
 },
 "199:115": {
  "inputs": {
   "clip_name": "qwen_3_8b_fp8mixed.safetensors",
   "type": "flux2",
   "device": "default"
  },
  "class_type": "CLIPLoader",
  "_meta": {
   "title": "Load CLIP"
  }
 },
 "199:119": {
  "inputs": {
   "text": "bad quality, noise, blurry, worst quality, low resolution, blur, distortion, unnatural blending, cartoon, illustration, painting",
   "clip": [
    "199:115",
    0
   ]
  },
  "class_type": "CLIPTextEncode",
  "_meta": {
   "title": "CLIP Text Encode ( Negative Prompt)"
  }
 },
 "199:123": {
  "inputs": {
   "cfg": 1,
   "model": [
    "199:133",
    0
   ],
   "positive": [
    "199:114:77",
    0
   ],
   "negative": [
    "199:114:179",
    0
   ]
  },
  "class_type": "CFGGuider",
  "_meta": {
   "title": "CFG Guider"
  }
 },
 "199:176": {
  "inputs": {
   "direction": "down",
   "match_image_size": true,
   "image1": [
    "199:120",
    0
   ],
   "image2": [
    "199:121",
    0
   ]
  },
  "class_type": "ImageConcanate",
  "_meta": {
   "title": "ImageConcanate"
  }
 },
 "199:131": {
  "inputs": {
   "samples": [
    "199:109",
    0
   ],
   "vae": [
    "199:111",
    0
   ]
  },
  "class_type": "VAEDecode",
  "_meta": {
   "title": "VAE Decode"
  }
 },
 "199:177": {
  "inputs": {
   "direction": "right",
   "match_image_size": true,
   "image1": [
    "199:176",
    0
   ],
   "image2": [
    "199:131",
    0
   ]
  },
  "class_type": "ImageConcanate",
  "_meta": {
   "title": "ImageConcanate"
  }
 },
 "199:120": {
  "inputs": {
   "resize_type": "scale total pixels",
   "scale_method": "lanczos",
   "input": [
    "76",
    0
   ],
   "resize_type.megapixels": 1
  },
  "class_type": "ResizeImageMaskNode",
  "_meta": {
   "title": "Resize Image/Mask"
  }
 },
 "199:121": {
  "inputs": {
   "resize_type": "scale total pixels",
   "scale_method": "lanczos",
   "input": [
    "81",
    0
   ],
   "resize_type.megapixels": 1
  },
  "class_type": "ResizeImageMaskNode",
  "_meta": {
   "title": "Resize Image/Mask"
  }
 },
 "199:118": {
  "inputs": {
   "unet_name": "flux-2-klein-9b.safetensors",
   "weight_dtype": "default"
  },
  "class_type": "UNETLoader",
  "_meta": {
   "title": "Load Diffusion Model"
  }
 },
 "199:122": {
  "inputs": {
   "steps": 4,
   "width": [
    "199:112",
    0
   ],
   "height": [
    "199:112",
    1
   ]
  },
  "class_type": "Flux2Scheduler",
  "_meta": {
   "title": "Flux2Scheduler"
  }
 },
 "199:125": {
  "inputs": {
   "sampler_name": "lcm"
  },
  "class_type": "KSamplerSelect",
  "_meta": {
   "title": "KSamplerSelect"
  }
 },
 "199:117": {
  "inputs": {
   "text": [
    "199:198",
    0
   ],
   "clip": [
    "199:115",
    0
   ]
  },
  "class_type": "CLIPTextEncode",
  "_meta": {
   "title": "CLIP Text Encode (Positive Prompt)"
  }
 },
 "199:133": {
  "inputs": {
   "lora_name": "Alissonerdx__BFS-Best-Face-Swap__bfs_head_v1_flux-klein_9b_step3750_rank64.safetensors",
   "strength_model": 1,
   "model": [
    "199:118",
    0
   ]
  },
  "class_type": "LoraLoaderModelOnly",
  "_meta": {
   "title": "Load LoRA"
  }
 },
 "199:184": {
  "inputs": {
   "prompt": "Describe the facial expression. Do not mention facial details such as freckles or unique marks. Do not output <think> tags.\n\nAn example output is as follows:\n<example>\nKey features include:\n- A wide, open-mouthed grin with their tongue sticking out playfully.\n- One eye is winking (the right eye), adding to the mischievous or fun vibe.\n- Their lips are parted in an exaggerated smile that complements the tongue-out gesture.\n- The overall look conveys confidence, joy, and a sense of youthful rebellion \u2014 perfectly matching the vibrant, colorful aesthetic they\u2019re presenting.\n</<example>",
   "max_length": 256,
   "sampling_mode": "on",
   "thinking": false,
   "use_default_template": true,
   "mtp": "auto",
   "clip": [
    "199:185",
    0
   ],
   "image": [
    "199:120",
    0
   ],
   "sampling_mode.temperature": 0.7,
   "sampling_mode.top_k": 64,
   "sampling_mode.top_p": 0.95,
   "sampling_mode.min_p": 0.05,
   "sampling_mode.repetition_penalty": 1.05,
   "sampling_mode.seed": 1,
   "sampling_mode.presence_penalty": 0
  },
  "class_type": "TextGenerate",
  "_meta": {
   "title": "Generate Text"
  }
 },
 "199:185": {
  "inputs": {
   "clip_name": "qwen3.5_9b_bf16.safetensors",
   "type": "qwen_image",
   "device": "default"
  },
  "class_type": "CLIPLoader",
  "_meta": {
   "title": "Load CLIP"
  }
 },
 "199:195": {
  "inputs": {
   "switch": true,
   "on_false": [
    "199:197",
    0
   ],
   "on_true": [
    "199:171",
    0
   ]
  },
  "class_type": "ComfySwitchNode",
  "_meta": {
   "title": "If/Else Switch"
  }
 },
 "199:197": {
  "inputs": {
   "value": "head_swap: start with Picture 1 as the base image, keeping its lighting, environment, and background. remove the head from Picture 1 completely and replace it with the head from Picture 2, strictly preserving the hair, eye color, nose structure of Picture 2. copy the direction of the eye, head rotation, micro expressions from Picture 1, high quality, sharp details, 4k\n"
  },
  "class_type": "PrimitiveStringMultiline",
  "_meta": {
   "title": "Prompt Base"
  }
 },
 "199:198": {
  "inputs": {
   "source": [
    "199:195",
    0
   ]
  },
  "class_type": "PreviewAny",
  "_meta": {
   "title": "Preview as Text"
  }
 },
 "204": {
  "inputs": {
   "filename_prefix": "face_swap",
   "format": "png",
   "images": [
    "199:131",
    0
   ],
   "format.bit_depth": "8-bit",
   "format.input_color_space": "sRGB"
  },
  "class_type": "SaveImageAdvanced",
  "_meta": {
   "title": "Save Image (Advanced)"
  }
 },
 "205": {
  "inputs": {
   "filename_prefix": "face_swap_stitched",
   "format": "png",
   "images": [
    "199:177",
    0
   ],
   "format.bit_depth": "8-bit",
   "format.input_color_space": "sRGB"
  },
  "class_type": "SaveImageAdvanced",
  "_meta": {
   "title": "Save Image (Advanced)"
  }
 }
}