Nodes/h4_Live/h4 - Identity Engine
ComfyUI Node

h4 - Identity Engine

A ComfyUI node in h4/IdentityEngine with 38 inputs and 4 outputs.

By m3rr·Created 8 months ago·Updated 16 days ago· 1
h4 - Identity Engine
  • face_image
  • model_opt
  • clip_opt
  • vae_opt
  • image_optional
  • character_image
  • model
  • clip
  • vae
presetNone
ckpt_name
vae_name
clip_name
seed0
steps20
cfg8.00
sampler_name
scheduler
denoise1.00
positive_dna
positive
negative
width512
height512
batch_size1
face_model
swap_enabledtrue
face_similarity0.50
restore_enabledtrue
restore_visibility1.00
restore_modelcodeformer-v0.1.0.pth
codeformer_weight0.50
swap_modelinswapper_128.onnx
boost_enabledfalse
occlusion_enabledtrue
sam_modelnone
preserve_glassestrue
upscale_enabledfalse
upscale_modelnone
upscale_face_onlyfalse
positive_text
negative_text
Categoryh4/IdentityEngine

Inputs (38)

NameTypeDefaultDescription
presetSTRINGNoneSelect a saved character preset.
ckpt_nameCOMBOThe primary Checkpoint. Determines the art style.
vae_nameCOMBOColor correction. 'Baked' means use what's inside the Checkpoint.
clip_nameCOMBOText Interpreter. 'Use Checkpoint' is usually best.
seedINT00–18446744073709550000The magic number definition. Same Seed + Same Settings = Same Image.
stepsINT201–10000How many times to polish the image. 20-30 is standard.
cfgFLOAT8.000–100Creativity Scale. Low (5-7) = Creative. High (8-12) = Strict.
sampler_nameCOMBOThe drawing method. 'euler' is fast, 'dpmpp_2m' is detailed.
schedulerCOMBOHow noise is removed. 'normal' or 'karras' work well.
denoiseFLOAT1.000–1Img2Img Only: How much to change the original? 1.0 = New Image, 0.4 = Minor Edits.
positive_dnaSTRINGDNA Prompt: Fixed character persistence (e.g. 'blonde, scars'). Concats with Positive.
positiveSTRINGScene Prompt: What they are doing (e.g. 'riding a moto').
negativeSTRINGWhat do you NOT want? (e.g. 'blurry, ugly, bad hands')
widthINT51216–4096Image Width.
heightINT51216–4096Image Height.
batch_sizeINT11–64How many images to create at once.
face_imageIMAGEDrag a photo here to clone this face onto the character.
face_modelCOMBOOr pick a pre-saved .safetensors face model. 'None' to disable.
swap_enabledBOOLEANtrueTurn ON to enable face swapping.
face_similarityFLOAT0.500–1How strictly to copy the face features. Higher = More likeness, but maybe weird.
restore_enabledBOOLEANtrueFix blurry faces automatically.
restore_visibilityFLOAT1.000–1Restore strength. 1.0 = Full Fix.
restore_modelCOMBOcodeformer-v0.1.0.pthThe repair tool to use.
codeformer_weightFLOAT0.500–1Fidelity vs. Quality. 0.0 = High Fidelity, 1.0 = Smooth Skin.
swap_modelCOMBOinswapper_128.onnxThe logic engine for the swap.
boost_enabledBOOLEANfalseHigh-Res swap? Slower but sharper.
occlusion_enabledBOOLEANtruePrevent face from overlapping hair/hands.
sam_modelCOMBOnoneSAM model for perfect occlusion masks.
preserve_glassesBOOLEANtrueAttempt to keep the target's eyewear.
upscale_enabledBOOLEANfalseUpscale the FINAL result.
upscale_modelCOMBOnoneThe upscaler engine.
upscale_face_onlyBOOLEANfalseOnly upscale the face region? (Saves VRAM)
model_optoptMODEL
clip_optoptCLIP
vae_optoptVAE
image_optionaloptIMAGE
positive_textoptSTRING[Override] Connect external Scene Prompt here (e.g. from a Primitive).
negative_textoptSTRING[Override] Connect external Negative Prompt here.

Outputs (4)

NameTypeDescription
character_imageIMAGE
modelMODEL
clipCLIP
vaeVAE