Nodes/SharpnessPro pour ComfyUI/SharpnessPro · Passe-haut
ComfyUI Node

SharpnessPro · Passe-haut

The Photoshop high-pass trick, minus the layers panel

By orion4d·Created about a year ago·Updated about a year ago· 10
SharpnessPro · Passe-haut
  • image
  • IMAGE
radius3.0
amount1.00
blend_mode
opacity1.00
work_on_luma

Every photographer who ever touched Photoshop has done the ritual: duplicate the layer, apply High Pass, set the blend mode to Overlay, dial the radius until the details pop. It's the standard "structure" sharpen - the one that makes textures feel crisp without that harsh digital-edge look. HighPassSharpen is that entire ritual collapsed into a single node, so you don't have to build a layers stack that ComfyUI can't really express anyway.

How it works

The mechanism mirrors the Photoshop recipe exactly. Take the image, blur it with a gaussian, subtract the blur from the original - that isolates the fine detail as a "high-pass layer" centered on mid-gray (0.5 + amount × detail). Then instead of just adding it back, it blends it with the original using a real blend mode:

  • Overlay - the classic, more contrasty, punchier. This is the default and it's the one that gives you that crisp-but-natural structure look.
  • SoftLight - a gentler cousin that applies roughly half the effect with less risk of overshooting. Good when Overlay is too aggressive.

The opacity slider then mixes the blended result back with the original, which is a much nicer way to dial back an overdone effect than re-tuning amount - you get to keep the character of the sharpening and just fade it.

work_on_luma builds the high-pass layer from the luminance channel only, which is the more "Photoshop purist" path and avoids shifting colors on edges. Leave it on unless you specifically want the chroma details sharpened too.

The inputs that matter

  • radius (default 3) - how fine the isolated detail is. Small radius = hair and fabric fibers; large radius starts grabbing tonal structure instead of detail, which gets weird fast. 2–10 is the useful band.
  • amount (default 1, up to 3) - contrast of the detail layer before blending. 1 is a solid starting point.
  • blend_mode (Overlay / SoftLight) - the character of the effect.
  • opacity (default 1) - the "how much of this do I actually want" control.
  • work_on_luma (Yes/No) - luminance-only detail extraction.

It takes an IMAGE and hands back an IMAGE, so it sits in the same end-of-pipeline spot as the pack's other sharpeners: after upscaling, right before Save Image.

Install

Search SharpnessPro in ComfyUI Manager and install, or:

cd ComfyUI/custom_nodes/
git clone https://github.com/orion4d/ComfyUI_SharpnessPro.git

Restart and you're done. Pure PyTorch, no dependencies, no models to fetch.

Common issues

The trap is treating it like a normal sharpen node and cranking amount. High-pass + Overlay overshoots differently than USM - instead of halos you get that embossed, "grunge texture over everything" look. If you see it, drop opacity to ~0.5 before you touch amount, or switch to SoftLight. And remember the radius is doing the thinking here: too small a radius and you're sharpening noise; too large and you're sharpening lighting. The sweet spot is wherever the detail you care about lives.

CategorySharpnessPro/Sharpen

Inputs (6)

NameTypeDefaultDescription
imageIMAGE
radiusFLOAT3.00–100
amountFLOAT1.000–3
blend_modeCOMBO2 options: Overlay, SoftLight
opacityFLOAT1.000–1
work_on_lumaCOMBO2 options: Yes, No

Outputs (1)

NameTypeDescription
IMAGEIMAGE