Nodes/lf-nodes/Face Align
ComfyUI Node

Face Align

A ComfyUI node in ✨ LF Nodes/Regions with 11 inputs and 5 outputs.

By lucafoscili·Created 2 years ago·Updated 5 days ago· 36
Face Align
  • image
  • extra_masks
  • ui_widget
  • image
  • masks
  • metadata
  • image_list
  • mask_list
◄model_pack▾►
◄selectcenter►
◄crop_size512►
◄face_scale0.50►
◄det_size640►
◄score_threshold0.50►
◄extra_idshair►
◄extra_priority35►
Category✨ LF Nodes/Regions

Inputs (11)

NameTypeDefaultDescription
imageIMAGEOne or more images; one face is aligned from each.
model_packCOMBOInsightFace pack folder under models/insightface (detector, 1k3d68 landmarks, ArcFace).
selectCOMBOcenterWhich face when several are found: nearest the centre, largest or most confident.
crop_sizeINT51264–4096Side of the square aligned crop.
face_scaleFLOAT0.500.1–1ArcFace's 112 template as a share of the crop; lower keeps more hair.
det_sizeINT640160–2048Detector canvas; raise it for small faces in large frames.
score_thresholdFLOAT0.500.05–0.99Minimum detector confidence.
extra_masksoptMASKWorkflow masks at source size, region-major (all images for region 0, then 1...), warped with the face.
extra_idsoptSTRINGhairComma-separated IDs, one per extra mask region.
extra_priorityoptFLOAT35-1000–1000Overlap priority of extra regions: skin 0, brows 30, eyes and lips 40.
ui_widgetoptLF_COMPARE[object Object]—

Outputs (5)

NameTypeDescription
imageIMAGEAligned square crops, one per input image.
masksMASKDisjoint region masks on the crops, image-major then region-table order.
metadataJSONlf.text-region-masks.v1 document with a face_alignment block (boxes, points, transforms).
image_listIMAGEAligned crops as an ordered list.
mask_listMASKRegion masks as ordered [1,H,W] items.