spacepxl /ComfyUI-Image-Filters

Image/latent/matte manipulation in ComfyUI

★ 300⑂ 34👁 5⑃ 3● 14▤ 0
PythonMITCreated 2023-12-06
+0
Daily
+0
Weekly
300
stars
34
forks
5
watchers
3
prs
14
issues
0
releases

README

ComfyUI-Image-Filters

Started as just some image processing nodes, but now more of a kitchen sink nodepack

Two install batch files are provided, install.bat which only installs requirements, and import_error_install.bat, which uninstalls all versions of opencv then reinstalls all 4 variants with matching version (use this if you get import errors relating to opencv or cv2, which are caused by manager or other node packs installing different variants and/or versions.)

Or if you want to manage requirements manually, the only opencv variant you actually need is opencv-contrib-python, it covers all opencv requirements.

 Nodes

Latent

 AdaIN Latent

Normalizes latents to the mean and std dev of a reference input. Useful for getting rid of color shift from high denoise strength, or matching color to a reference in general.

 AdaIN Filter Latent

Same as AdaIN Latent, but with a spatial filter instead of the full frame, works like a latent color match.

 Batch Normalize Latent

Normalizes each frame in a batch to the overall mean and std dev, good for removing overall brightness flickering.

 Clamp Outliers

Clamps latents that are more than n standard deviations away from the mean. Could help with fireflies or stray noise that disrupt the VAE decode.

 Upscale Hunyuan3Dv2 Latent By

Nearest Neighbor upscaling for Hy3D latents, might be useful for hires fix.

 Latent Normalize/Shuffle

Can help break up residual image information in inversion noise.

 RandnLikeLatent

Create random noise in the same shape as the input latent, works with any latent. Useful for noise injection or other times when you just want to control noise manually.

 Offset Latent Image

Create an empty latent image with custom values, for offset noise with per-channel control. Can be combined with Latent Stats to get channel values.

 Sharpen Filter (Latent)

Increases local contrast between latent "pixels" with an image sharpening filter.



Image

 AdaIN Image

Normalizes images to the mean and std dev of a reference input. Useful for getting rid of color shift from high denoise strength, or matching color to a reference in general.

 Batch Align (RAFT)

Use RAFT motion vectors to warp align images

 Batch Average Image

Returns the single average image of a batch.

 Batch Normalize Image

Normalizes each frame in a batch to the overall mean and std dev, good for removing overall brightness flickering.

 BetterFilmGrain

Yet another film grain node, but this one looks better (realistic grain structure, no pixel-perfect RGB glitter, natural luminance/intensity response) and is 10x faster than the next best option (ProPostFilmGrain).

 Bilateral Filter Image

Applies a bilateral filter, can be used to remove noise or high frequency details while preserving edges

 Blur Image (Fast)

Blurs images using opencv gaussian blur, which is 100x faster than comfy image blur. Supports larger blur radius, and separate x/y controls.

 Clamp Image

Clamps image values outside of blackpoint/

Top issues

Snapshot: 2026-11-27T22:26:53Z · Data license Apache-2.0 · JSON