ComfyUI Node
Face Detection and Crop v2
Face Detection v2 — Auto-Padding, Temporal Smoothing, Aspect Ratios, Batch Processing
Face Detection and Crop v2
- image
- cropped_faces
- face_metadata
◄detection_threshold0.80►
◄min_face_size64►
◄auto_padding_ratio35►
◄aspect_ratioauto►
◄output_modelargest_face►
◄classifier_typedefault►
◄temporal_smoothing0►
◄output_height512►
◄instance_id0►
◄face_output_formatstrip►
◄padding0►
Categoryimage/processing
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| detection_threshold | FLOAT | 0.800.1–1 | — |
| min_face_size | INT | 6432–512 | — |
| auto_padding_ratio | INT | 350–100 | Padding as % of detected face size |
| aspect_ratio | COMBO | auto | 5 options: auto, 1:1, 9:16, 16:9, 4:3 |
| output_mode | COMBO | largest_face | 2 options: largest_face, all_faces |
| classifier_type | COMBO | default | 2 options: default, alternative |
| temporal_smoothingopt | INT | 00–100 | 0=disabled (image mode) | 1-100: EMA smoothing strength |
| output_heightopt | INT | 512256–2048 | — |
| instance_idopt | STRING | 0 | Unique ID for temporal smoothing (share across frames in same video sequence). Use '0' for image mode. |
| face_output_formatopt | COMBO | strip | Format for multiple faces (only applies with all_faces). Accepts 'strip' or 'individual'. |
| paddingopt | INT | 00–256 | Legacy padding in pixels. If >0, overrides auto_padding_ratio. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| cropped_faces | IMAGE | — |
| face_metadata | FLOAT | — |