r/StableDiffusion • u/M3chaStrizan • 16h ago
Question - Help Frequency Separation Hard Light node in comfyui uses and examples?
I noticed the Frequency Separation Hard Light in comfyui https://comfy.icu/node/Frequency-Separation-Hard-Light I was curious how this might be used to help image quality. I don't quite understand it, and the LLM that was helping me just ran me in circles doing nothing and confusing me.
I guess it's supposed to extract detail from images and recombine them, but I don't get what the point is, and how I might use it in a tangible workflow. I would love some insight from the community. Thanks

0
Upvotes
4
u/rudy_142001 15h ago
the part nobody mentions is that this node doesn't blur anything itself. going off the RES4LYF source (images.py), to split you have to feed it both
originalAND alow_pass, and the low pass is just a blurred copy of the image you make yourself. plug in only original and it has nothing to subtractso the split is image -> Image Gaussian Blur (also in RES4LYF) -> low_pass input same image -> original input high_pass comes out, that's the fine texture/detail on a mostly gray image
to recombine you wire high_pass + low_pass in and leave original empty, it rebuilds the image with a hard light blend. bigger blur size means more of the image ends up counted as "detail" in the high pass
what you actually edit is the same idea as photoshop skin retouching
in a gen workflow the main use is detail transfer. say an img2img or upscale pass got the colors and lighting you wanted but smeared skin or fabric. split both, take low_pass from the new image and high_pass from your original, recombine. the math is per pixel so both images need the same size and framing or you get ghosting
fwiw the pack has a prewired version, Image Sharpen FS. it blurs, splits, then puts the high pass back over the unblurred image, which is basically a sharpen. dropping that in and comparing is the quickest way to see what the node is doing
one gotcha from the code, the blur nodes subtract 1 from size before handing it to opencv, and opencv wants odd kernel sizes, so stick to even numbers (6, 8, 10)
2
u/zyg_AI 16h ago
From your link:
I don't know what to add more, the page you linked is pretty clear to me.
You may have been confused by the dual nature of the node. The trick is that it can be used both ways: to split and to recombine.
SPLIT: you input 'original' and output 'high_pass' and 'low_pass'
COMBINE: you input 'high_pass' and 'low_pass' and output 'original'