Nodes/ComfyUI-PortraitDatasetTools/Face Align Crop (derotate to eye level, square crop)
ComfyUI Node

Face Align Crop (derotate to eye level, square crop)

A ComfyUI node in image/face with 6 inputs and 3 outputs.

By BillyBGit·Created 2 days ago·Updated 2 days ago· 0
Face Align Crop (derotate to eye level, square crop)
  • image
  • crops
  • labels
  • scores
◄target_sizenative►
◄padding_pct0.15►
◄save_path►
◄filename_prefixface_aligned►
◄clamp_before_upscale512►
Categoryimage/face

Inputs (6)

NameTypeDefaultDescription
imageIMAGE—
target_sizeCOMBOnativenative = return crop at original pixel dimensions (recommended before upscaling). 512/768/1024 = resize to square.
padding_pctFLOAT0.150–0.5Expand the aligned face box by this fraction of width/height on each side.
save_pathoptSTRINGDirectory to save cropped JPEGs directly. Empty = no save here.
filename_prefixoptSTRINGface_aligned—
clamp_before_upscaleoptINT5120–2048Only applies in native mode. If the crop's longest side exceeds this, scale it down before returning. 0 = disabled.

Outputs (3)

NameTypeDescription
cropsIMAGE—
labelsSTRING—
scoresSTRING—