| { |
| "1": { |
| "class_type": "UNETLoader", |
| "inputs": { |
| "unet_name": "qwen_image_edit_2511_bf16.safetensors", |
| "weight_dtype": "default" |
| } |
| }, |
| "10": { |
| "class_type": "LoraLoaderModelOnly", |
| "inputs": { |
| "lora_name": "Qwen-Image-Edit-2511-Lightning-8steps-V1.0-bf16.safetensors", |
| "model": [ |
| "9", |
| 0 |
| ], |
| "strength_model": 1.0 |
| } |
| }, |
| "11": { |
| "class_type": "LoraLoaderModelOnly", |
| "inputs": { |
| "lora_name": "Qwen_LoRA_Skin_Fix_v2.safetensors", |
| "model": [ |
| "10", |
| 0 |
| ], |
| "strength_model": 1.0 |
| } |
| }, |
| "2": { |
| "class_type": "CLIPLoader", |
| "inputs": { |
| "clip_name": "qwen_2.5_vl_7b.safetensors", |
| "device": "default", |
| "type": "qwen_image" |
| } |
| }, |
| "20": { |
| "class_type": "ModelSamplingAuraFlow", |
| "inputs": { |
| "model": [ |
| "11", |
| 0 |
| ], |
| "shift": 3.1 |
| } |
| }, |
| "21": { |
| "class_type": "CFGNorm", |
| "inputs": { |
| "model": [ |
| "20", |
| 0 |
| ], |
| "pre_cfg": false, |
| "strength": 1 |
| } |
| }, |
| "22": { |
| "class_type": "TextEncodeQwenImageEditPlus", |
| "inputs": { |
| "clip": [ |
| "2", |
| 0 |
| ], |
| "image1": [ |
| "5", |
| 0 |
| ], |
| "image2": [ |
| "8", |
| 0 |
| ], |
| "prompt": "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.", |
| "vae": [ |
| "3", |
| 0 |
| ] |
| } |
| }, |
| "23": { |
| "class_type": "FluxKontextMultiReferenceLatentMethod", |
| "inputs": { |
| "conditioning": [ |
| "22", |
| 0 |
| ], |
| "reference_latents_method": "index_timestep_zero" |
| } |
| }, |
| "25": { |
| "class_type": "ConditioningZeroOut", |
| "inputs": { |
| "conditioning": [ |
| "22", |
| 0 |
| ] |
| } |
| }, |
| "26": { |
| "class_type": "VAEEncode", |
| "inputs": { |
| "pixels": [ |
| "5", |
| 0 |
| ], |
| "vae": [ |
| "3", |
| 0 |
| ] |
| } |
| }, |
| "27": { |
| "class_type": "KSampler", |
| "inputs": { |
| "cfg": 1.0, |
| "denoise": 1, |
| "latent_image": [ |
| "26", |
| 0 |
| ], |
| "model": [ |
| "21", |
| 0 |
| ], |
| "negative": [ |
| "25", |
| 0 |
| ], |
| "positive": [ |
| "23", |
| 0 |
| ], |
| "sampler_name": "euler", |
| "scheduler": "simple", |
| "seed": 42, |
| "steps": 8 |
| } |
| }, |
| "28": { |
| "class_type": "VAEDecode", |
| "inputs": { |
| "samples": [ |
| "27", |
| 0 |
| ], |
| "vae": [ |
| "3", |
| 0 |
| ] |
| } |
| }, |
| "29": { |
| "class_type": "SaveImage", |
| "inputs": { |
| "filename_prefix": "faceswapnew-qwen2511-lightning8", |
| "images": [ |
| "28", |
| 0 |
| ] |
| } |
| }, |
| "3": { |
| "class_type": "VAELoader", |
| "inputs": { |
| "vae_name": "qwen_image_vae.safetensors" |
| } |
| }, |
| "4": { |
| "class_type": "LoadImage", |
| "inputs": { |
| "image": "body.jpg" |
| } |
| }, |
| "5": { |
| "class_type": "FluxKontextImageScale", |
| "inputs": { |
| "image": [ |
| "4", |
| 0 |
| ] |
| } |
| }, |
| "6": { |
| "class_type": "LoadImage", |
| "inputs": { |
| "image": "face.jpg" |
| } |
| }, |
| "7": { |
| "class_type": "RMBG", |
| "inputs": { |
| "background": "Color", |
| "background_color": "#7F7F7F", |
| "image": [ |
| "6", |
| 0 |
| ], |
| "invert_output": false, |
| "mask_blur": 0, |
| "mask_offset": 0, |
| "model": "RMBG-2.0", |
| "process_res": 1024, |
| "refine_foreground": false, |
| "sensitivity": 1 |
| } |
| }, |
| "8": { |
| "class_type": "FluxKontextImageScale", |
| "inputs": { |
| "image": [ |
| "7", |
| 0 |
| ] |
| } |
| }, |
| "9": { |
| "class_type": "LoraLoaderModelOnly", |
| "inputs": { |
| "lora_name": "bfs_head_v5_2511_merged_version_rank_32_fp32.safetensors", |
| "model": [ |
| "1", |
| 0 |
| ], |
| "strength_model": 1.0 |
| } |
| } |
| } |