DMD2_InstantID_Faceswap / workflow_api.json
Inspecta's picture
Upload workflow_api.json
3ba505c verified
{
"957": {
"inputs": {
"instantid_file": "Super-shuheInstantID-FaceID-6M.bin"
},
"class_type": "InstantIDModelLoader",
"_meta": {
"title": "Load InstantID Model"
}
},
"958": {
"inputs": {
"control_net_name": "Super-shuheInstantID-FaceID-6M Controlnet.safetensors"
},
"class_type": "ControlNetLoader",
"_meta": {
"title": "Load ControlNet Model"
}
},
"959": {
"inputs": {
"faceanalysis": [
"979",
0
],
"image": [
"1332",
0
]
},
"class_type": "FaceKeypointsPreprocessor",
"_meta": {
"title": "Face Keypoints Preprocessor"
}
},
"967": {
"inputs": {
"ckpt_name": "SDXL\\gonzalomoXLFluxPony_v40UnityXLDMD.safetensors"
},
"class_type": "CheckpointLoaderSimple",
"_meta": {
"title": "Load Checkpoint"
}
},
"979": {
"inputs": {
"provider": "CPU"
},
"class_type": "InstantIDFaceAnalysis",
"_meta": {
"title": "InstantID Face Analysis"
}
},
"991": {
"inputs": {
"text": [
"1013",
0
],
"speak_and_recognation": {
"__value__": [
false,
true
]
},
"clip": [
"1436",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "Positive  \n"
}
},
"992": {
"inputs": {
"text": "",
"speak_and_recognation": {
"__value__": [
false,
true
]
},
"clip": [
"1436",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "Negative\n"
}
},
"993": {
"inputs": {
"weight": 1.0000000000000002,
"start_at": 0,
"end_at": 1,
"instantid": [
"957",
0
],
"insightface": [
"979",
0
],
"control_net": [
"958",
0
],
"image": [
"1430",
0
],
"model": [
"1436",
0
],
"positive": [
"1413",
0
],
"negative": [
"1413",
1
],
"image_kps": [
"959",
0
]
},
"class_type": "ApplyInstantID",
"_meta": {
"title": "Apply InstantID"
}
},
"1013": {
"inputs": {
"positive": "",
"speak_and_recognation": {
"__value__": [
false,
true
]
}
},
"class_type": "easy positive",
"_meta": {
"title": "Positive"
}
},
"1271": {
"inputs": {
"filename_prefix": "ComfyUI",
"images": [
"1331",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "Save Image"
}
},
"1321": {
"inputs": {
"samples": [
"1462",
1
],
"vae": [
"967",
2
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE Decode"
}
},
"1331": {
"inputs": {
"images_a_x": 0,
"images_a_y": 0,
"images_b_x": [
"1332",
1
],
"images_b_y": [
"1332",
2
],
"container_width": 0,
"container_height": 0,
"background": "images_a",
"method": "pair",
"images_a": [
"1431",
0
],
"images_b": [
"1335",
0
]
},
"class_type": "ImageCompositeAbsolute",
"_meta": {
"title": "ImageCompositeAbsolute"
}
},
"1332": {
"inputs": {
"padding": 0,
"padding_percent": 0.5000000000000001,
"index": -1,
"analysis_models": [
"1333",
0
],
"image": [
"1431",
0
]
},
"class_type": "FaceBoundingBox",
"_meta": {
"title": "Face Bounding Box"
}
},
"1333": {
"inputs": {
"library": "insightface",
"provider": "CPU"
},
"class_type": "FaceAnalysisModels",
"_meta": {
"title": "Face Analysis Models"
}
},
"1334": {
"inputs": {
"width": 1024,
"height": 0,
"interpolation": "bicubic",
"method": "keep proportion",
"condition": "upscale if smaller",
"multiple_of": 0,
"image": [
"1332",
0
]
},
"class_type": "ImageResize+",
"_meta": {
"title": "🔧 Image Resize"
}
},
"1335": {
"inputs": {
"width": [
"1332",
3
],
"height": [
"1332",
4
],
"interpolation": "bicubic",
"method": "keep proportion",
"condition": "always",
"multiple_of": 0,
"image": [
"1321",
0
]
},
"class_type": "ImageResize+",
"_meta": {
"title": "🔧 Image Resize"
}
},
"1413": {
"inputs": {
"strength": 0.07,
"start_percent": 0,
"end_percent": 1,
"positive": [
"1418",
0
],
"negative": [
"1418",
1
],
"control_net": [
"1438",
0
],
"image": [
"1334",
0
],
"vae": [
"967",
2
]
},
"class_type": "ControlNetApplyAdvanced",
"_meta": {
"title": "Apply ControlNet"
}
},
"1414": {
"inputs": {
"control_net_name": "diffusion_pytorch_model_promax.safetensors"
},
"class_type": "ControlNetLoader",
"_meta": {
"title": "Load ControlNet Model"
}
},
"1417": {
"inputs": {
"Auto_CFG": true,
"cond_mode": "replace_by_custom",
"uncond_mode": "replace_by_custom",
"cond_diff_multiplier": 1,
"uncond_diff_multiplier": 0.1,
"uncond_sigma_end": 0.1,
"save_as_preset": false,
"preset_name": "",
"model": [
"967",
0
]
},
"class_type": "Automatic CFG - Custom attentions",
"_meta": {
"title": "Automatic CFG - Custom attentions"
}
},
"1418": {
"inputs": {
"noise_mask": true,
"positive": [
"991",
0
],
"negative": [
"991",
0
],
"vae": [
"967",
2
],
"pixels": [
"1334",
0
],
"mask": [
"1429",
0
]
},
"class_type": "InpaintModelConditioning",
"_meta": {
"title": "InpaintModelConditioning"
}
},
"1429": {
"inputs": {
"erode_dilate": 16,
"fill_holes": 0,
"remove_isolated_pixels": 32,
"smooth": 16,
"blur": 16,
"mask": [
"1446",
0
]
},
"class_type": "MaskFix+",
"_meta": {
"title": "🔧 Mask Fix"
}
},
"1430": {
"inputs": {
"upscale_method": "nearest-exact",
"crop": "disabled",
"image": [
"1471",
0
]
},
"class_type": "Resize Image for SDXL",
"_meta": {
"title": "Resize Image for SDXL (Mikey)"
}
},
"1431": {
"inputs": {
"upscale_method": "nearest-exact",
"crop": "disabled",
"image": [
"1470",
0
]
},
"class_type": "Resize Image for SDXL",
"_meta": {
"title": "Resize Image for SDXL (Mikey)"
}
},
"1433": {
"inputs": {
"steps": 12,
"sigma_max": 0.5000000000000001,
"sigma_min": 1.0000000000000002,
"rho": 0
},
"class_type": "PolyexponentialScheduler",
"_meta": {
"title": "PolyexponentialScheduler"
}
},
"1434": {
"inputs": {
"add_noise": false,
"noise_seed": 0,
"cfg": 1,
"model": [
"993",
0
],
"positive": [
"993",
1
],
"negative": [
"993",
2
],
"sampler": [
"1435",
0
],
"sigmas": [
"1433",
0
],
"latent_image": [
"1418",
2
]
},
"class_type": "SamplerCustom",
"_meta": {
"title": "SamplerCustom"
}
},
"1435": {
"inputs": {
"sampler_name": "lcm"
},
"class_type": "KSamplerSelect",
"_meta": {
"title": "KSamplerSelect"
}
},
"1436": {
"inputs": {
"lora_name": "SDXL\\epiCPhotoXL-Derp2.safetensors",
"strength_model": 1.0000000000000002,
"strength_clip": 1,
"model": [
"1417",
0
],
"clip": [
"967",
1
]
},
"class_type": "LoraLoader",
"_meta": {
"title": "Load LoRA"
}
},
"1438": {
"inputs": {
"type": "repaint",
"control_net": [
"1414",
0
]
},
"class_type": "SetUnionControlNetType",
"_meta": {
"title": "SetUnionControlNetType"
}
},
"1440": {
"inputs": {
"target": "area(=w*h)",
"order": true,
"take_start": 0,
"take_count": 1,
"segs": [
"1443",
0
]
},
"class_type": "ImpactSEGSOrderedFilter",
"_meta": {
"title": "SEGS Filter (ordered)"
}
},
"1441": {
"inputs": {
"model_name": "bbox/face_yolov8m.pt"
},
"class_type": "UltralyticsDetectorProvider",
"_meta": {
"title": "UltralyticsDetectorProvider"
}
},
"1443": {
"inputs": {
"bbox_threshold": 0.5000000000000001,
"bbox_dilation": 21,
"crop_factor": 1.5,
"drop_size": 10,
"sub_threshold": 0.5000000000000001,
"sub_dilation": 0,
"sub_bbox_expansion": 0,
"sam_mask_hint_threshold": 0.7,
"post_dilation": 0,
"bbox_detector": [
"1441",
0
],
"image": [
"1334",
0
],
"sam_model_opt": [
"1445",
0
],
"segm_detector_opt": [
"1441",
1
]
},
"class_type": "ImpactSimpleDetectorSEGS",
"_meta": {
"title": "Simple Detector (SEGS)"
}
},
"1445": {
"inputs": {
"model_name": "sam_vit_b_01ec64.pth",
"device_mode": "Prefer GPU"
},
"class_type": "SAMLoader",
"_meta": {
"title": "SAMLoader (Impact)"
}
},
"1446": {
"inputs": {
"segs": [
"1447",
0
]
},
"class_type": "SegsToCombinedMask",
"_meta": {
"title": "SEGS to MASK (combined)"
}
},
"1447": {
"inputs": {
"kernel_size": 11,
"sigma": 7,
"segs": [
"1440",
0
]
},
"class_type": "ImpactGaussianBlurMaskInSEGS",
"_meta": {
"title": "Gaussian Blur Mask (SEGS)"
}
},
"1460": {
"inputs": {
"sampler_name": "lcm"
},
"class_type": "KSamplerSelect",
"_meta": {
"title": "KSamplerSelect"
}
},
"1461": {
"inputs": {
"steps": 6,
"sigma_max": 0.33000000000000007,
"sigma_min": 0.6600000000000001,
"rho": 0
},
"class_type": "PolyexponentialScheduler",
"_meta": {
"title": "PolyexponentialScheduler"
}
},
"1462": {
"inputs": {
"add_noise": true,
"noise_seed": 1,
"cfg": 1,
"model": [
"993",
0
],
"positive": [
"993",
1
],
"negative": [
"993",
2
],
"sampler": [
"1460",
0
],
"sigmas": [
"1461",
0
],
"latent_image": [
"1434",
0
]
},
"class_type": "SamplerCustom",
"_meta": {
"title": "SamplerCustom"
}
},
"1470": {
"inputs": {
"image": "pexels-olly-733872.jpg"
},
"class_type": "LoadImage",
"_meta": {
"title": "Picture to swap"
}
},
"1471": {
"inputs": {
"image": "hockerty_white_pearls_f7641c1b-1462-4649-b2f7-cf3b379f2f91_0 - Copie.jpg"
},
"class_type": "LoadImage",
"_meta": {
"title": "Input Face"
}
}
}