BBoxDetect(FaceParsing)
FaceBBoxDetect's more tunable sibling
- bbox_detector
- image
- BBOX_LIST
- count
This is the same job as FaceBBoxDetect - run the YOLO face detector, get back a list of boxes - but with two extra dials for how the padding around each box is computed, plus a bonus output telling you how many faces it found. If FaceBBoxDetect is the quick, get-a-box-per-face node, BBoxDetect is the one you reach for when you want the padding to scale with the face's own size instead of being a flat pixel amount.
The inputs that matter
- bbox_detector (BBOX_DETECTOR) - from BBoxDetectorLoader.
- image (IMAGE) - the image to detect faces in.
- threshold (FLOAT, default 0.3, range 0–1) - same confidence cutoff as FaceBBoxDetect. Lower it if faces are getting missed, raise it if you're getting false hits.
- dilation (INT, default 8, range -512 to 512) - flat pixel padding, same as FaceBBoxDetect.
- dilation_ratio (FLOAT, default 0.2, range 0–1) - padding as a fraction of the box's own size, instead of a fixed pixel count. Only kicks in when
by_ratiois on. - by_ratio (BOOLEAN, default false) - switches which padding mode is actually used. Off (default), you get the flat-pixel
dilationbehavior, same as FaceBBoxDetect. On, padding scales withdilation_ratiorelative to each box's size - which matters a lot on images with a mix of large and small faces, where a flat 8px pad is generous on a small face and barely noticeable on a big one.
The outputs are BBOX_LIST (the detected, padded boxes) and count (an INT - how many faces it found). That count is genuinely useful on its own: wire it into a switch or a conditional to branch your workflow depending on whether zero, one, or several faces turned up, rather than just discovering it downstream when a crop node chokes on an empty list.
When to reach for this over FaceBBoxDetect
If every image you process has one clearly sized face, they're functionally interchangeable and FaceBBoxDetect is simpler to look at. Reach for BBoxDetect when you're batch-processing images with varied face sizes and want consistent proportional padding, or when you specifically want that count output to drive logic elsewhere in the graph.
Installing it
Bundled with the pack:
- ComfyUI Manager - search "comfyui_face_parsing", install, restart.
- Manual -
cd ComfyUI/custom_nodes && git clone https://github.com/Ryuukeisyou/comfyui_face_parsing.git, restart ComfyUI.
Needs the face_yolov8m.pt detector weights already downloaded (handled automatically by BBoxDetectorLoader on first run).
Common issues
Same detection blind spots as FaceBBoxDetect: small, angled, or stylized faces can slip under the default threshold of 0.3, and an empty BBOX_LIST is the usual symptom. The one mistake specific to this node is flipping by_ratio on and then being confused why padding behaves differently than you expect - that toggle changes which of the two padding values actually drives the result. If your crops suddenly look way tighter or looser than before, check which mode you're in and adjust the matching value (dilation for flat pixels, dilation_ratio for proportional).
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| bbox_detector | BBOX_DETECTOR | — | |
| image | IMAGE | — | |
| threshold | FLOAT | 0.300–1 | — |
| dilation | INT | 8-512–512 | — |
| dilation_ratio | FLOAT | 0.200–1 | — |
| by_ratio | BOOLEAN | false | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| BBOX_LIST | BBOX_LIST | — |
| count | INT | — |