Nodes/ComfyUI_LC_MaskMaker_nodes/LC Face Crop πŸ“
ComfyUI Node

LC Face Crop πŸ“

Crops to a format (LC Aspect Ratio Simplifier's presets) with the faces placed well, not a blind centre crop. widest keeps as much picture as the format allows; upper body, head & shoulders and face frame tighter from the face size (character datasets). SAM 3 finds the faces, or wire a mask to frame anything.

By lonecatone23Β·Created 23 days agoΒ·Updated about 8 hours agoΒ· 4
LC Face Crop πŸ“
  • image
  • mask
  • image
  • width
  • height
β—„aspect_ratioInstagram Portrait (4:5) - 1080x1350β–Ί
β—„custom_width1080β–Ί
β—„custom_height1350β–Ί
β—„framingwidestβ–Ί
β—„facesallβ–Ί
β—„output_sizepreset sizeβ–Ί
β—„sam3_modelβ–Ύβ–Ί
β—„threshold0.50β–Ί
CategoryLC MaskMaker/image

Inputs (10)

NameTypeDefaultDescription
imageIMAGEβ€”
aspect_ratioCOMBOInstagram Portrait (4:5) - 1080x1350The format to crop to (the same list as LC Aspect Ratio Simplifier).
custom_widthINT108064–16384Used when aspect_ratio is custom.
custom_heightINT135064–16384Used when aspect_ratio is custom.
framingCOMBOwidestwidest: as much of the picture as the format allows, faces placed well. upper body / head & shoulders / face: tighter, sized from the face (datasets).
facesCOMBOallall: every face found stays in the crop. largest: frame the main face only.
output_sizeCOMBOpreset sizepreset size: resized to the format's size (e.g. 1080x1350). keep pixels: the crop at the picture's own resolution.
sam3_modelCOMBOSAM 3 model that finds the faces.
thresholdFLOAT0.500.05–0.95How sure SAM 3 has to be that it is a face.
maskoptMASKOptional. Frame this mask instead of searching for faces (any subject: a car, a product, a pet).

Outputs (3)

NameTypeDescription
imageIMAGEβ€”
widthINTβ€”
heightINTβ€”