Nodes/ComfyUI-XJNodes/SEGS Blur Hook
ComfyUI Node

SEGS Blur Hook

Soften the detail pass when sharp is the wrong call

By alexjx·Created 10 months ago·Updated 4 months ago· 0
SEGS Blur Hook
    • hook
    radius1
    strength1.00
    feather0

    Every detail pass sharpens. That's the point of it. But sometimes the region you're detailing doesn't want to be sharp - a background object you're cleaning up, a bokeh area, a texture that reads better soft. Or the detail pass overshoots and lands as harsh digital sharpening, and the cure is a gentle blur before the crop goes back. XJSegsBlurHookProvider is the blur you didn't know you needed: a DETAILER_HOOK for Impact Pack's detailers that softens the decoded crop before it's stitched into the image.

    It's the paired-with-its-opposite node - the Sharpen Hook in this pack uses the exact same machinery, just flipped into blur mode. Mechanically it applies a Gaussian blur with radius controlling the kernel size and strength controlling how much of the blurred version is blended over the original (strength 1.0 is full blur, lower is a partial blend). The genuinely useful detail: when a segment mask is available, the blur is constrained to the masked area, and feather softens the edge of that constraint - so a background region gets blurred without a hard boundary leaking into the in-focus subject.

    The interface:

    • radius - 1–25, default 1. The blur kernel size.
    • strength - 0–8, default 1.0. Blend amount; clamp behavior differs from the sharpen version.
    • feather - 0–100, default 0. Edge softness of the masked effect.
    • Output: hook, into detailer_hook on FaceDetailer / Detailer (SEGS).

    Where you'd reach for it: selective softness inside a detail workflow. Detail the subject with one pass, then use the same segmentation to gently blur the background region so the whole image reads with proper depth - that's a two-pass setup where this hook is the second pass's secret weapon. It's also the antidote when a detailer leaves a region looking crunchy: a low-strength blur over the affected area hides the artifacts without re-running the whole pipeline.

    Install is the pack-wide routine:

    cd ComfyUI/custom_nodes
    git clone https://github.com/alexjx/ComfyUI-XJNodes
    

    Restart ComfyUI, find it under XJNodes/segs/hooks, or use ComfyUI Manager and search "ComfyUI-XJNodes". No models, no pip extras (requirements.txt is empty); Impact Pack needs to be present for the hook input to exist.

    Honest framing: this is a personal-use pack with zero tutorial presence, and blur-on-a-detail-pass is a niche move - most people never touch it. But if you've ever wished you could blur exactly one region inside the workflow instead of exporting and editing, this is the hook that does it.

    CategoryXJNodes/segs/hooks

    Inputs (3)

    NameTypeDefaultDescription
    radiusINT11–25
    strengthFLOAT1.000–8
    featherINT00–100

    Outputs (1)

    NameTypeDescription
    hookDETAILER_HOOK