Nodes/ComfyUI Fooocus Nodes/Fooocus ultralyticsDetectorPipe
ComfyUI Node

Fooocus ultralyticsDetectorPipe

The YOLO eye that tells the detailer where to look

By Seedsa·Created 3 years ago·Updated 2 years ago· 102
Fooocus ultralyticsDetectorPipe
    • bbox_segm_pipe
    model_name
    bbox_threshold0.50
    bbox_dilation10
    bbox_crop_factor3.0

    The whole face-detailing pipeline depends on one dumb question: where is the face? This node answers it. Fooocus ultralyticsDetectorPipe loads a YOLO detection model - the same family of weights ADetailer and Impact Pack run - and produces a bbox_segm_pipe that the Fooocus preDetailerFix node uses to know which regions deserve the fix pass. No detector, no detailer. It's the quiet foundation of the pack's "fix" section.

    What it does

    It loads a YOLO model from your models folder and configures how detections get turned into usable regions: the box around each detected face gets a threshold for confidence, a dilation for padding, and a crop factor for how much context the fix pass gets. The output bbox_segm_pipe carries both the detector and these settings downstream.

    The settings:

    • model_name - which YOLO weights. Populated from your models folder; a face model like face_yolov8n.pt (nano, fast) or face_yolov8s.pt (small, more accurate) is the usual choice, with person/body variants for full-body work.
    • bbox_threshold (0.5) - minimum confidence for a detection to count. Low it if faces get missed; raise it if you're getting false detections on random background texture.
    • bbox_dilation (10) - grow each detected box by this many pixels. This is your safety margin so the fix pass gets a bit of context around the face instead of a razor-tight crop.
    • bbox_crop_factor (3) - how much context the fix region includes relative to the box. Higher = more surrounding area sampled, better blending, slower.

    Installing

    Pack install: ComfyUI Manager, search "Fooocus Nodes", or clone the repo into custom_nodes. The actual YOLO weights are a separate download - small (a few MB for the nano model) and shared with ADetailer, so if you've used A1111's detailer you probably already have them. Put them in your ComfyUI models folder and they should show up in the dropdown.

    The honest take

    This is where the pack's lineage shows: the detect-crop-refine loop, the YOLO providers, even the parameter names are Impact Pack's playbook, and the weights are the same Bingsu/adetailer YOLO files everyone uses. That's not a complaint - it means the ecosystem knows these weights work. The one thing to remember, and it's worth taking seriously: Ultralytics is the package that shipped a cryptominer via a compromised release in December 2024, and custom-node packs were the delivery route. Keep this pack's dependencies updated, don't install random detector packages from unfamiliar repos, and you're fine. And if the dropdown is empty, that's not the node broken - it's the weights missing from your models folder.

    CategoryFooocus/Fix

    Inputs (4)

    NameTypeDefaultDescription
    model_nameCOMBO0 options:
    bbox_thresholdFLOAT0.500–1
    bbox_dilationINT10-512–512
    bbox_crop_factorFLOAT3.01–10

    Outputs (1)

    NameTypeDescription
    bbox_segm_pipePIPE_LINE