Nodes/Eric_Image_Processing_Nodes/AI Enhancement Batch
ComfyUI Node

AI Enhancement Batch

Real-ESRGAN and perceptual color correction, batched

By EricRollei·Created 9 months ago·Updated 8 months ago· 9
AI Enhancement Batch
  • images
  • enhanced_images
  • processing_info
enhancement_methodreal_esrgan
batch_size4
real_esrgan_modelRealESRGAN_x4plus
color_spaceoklab
enhancement_strength0.7

This node combines two of the pack's simpler enhancement ideas - Real-ESRGAN upscaling and perceptual-color-space correction - into one batch-friendly node, with the option to chain them. If you're processing a folder of images and want either or both applied consistently without stitching together separate nodes per image, this is the one built for that.

How it works

enhancement_method picks the actual job: real_esrgan runs the same upscaling model as this pack's standalone RealESRGANNode, perceptual_color adjusts color and contrast working in a perceptually uniform color space instead of raw RGB, and combined runs both in sequence. The color-space choice matters more than it sounds like: RGB and even HSV don't match how humans actually perceive brightness and hue changes, so adjustments made directly in RGB tend to introduce unwanted hue shifts as saturation changes. Working in a space like Oklab (the default here) keeps perceived hue and lightness more stable while you push contrast or saturation, which is exactly why newer color tools have been moving toward these spaces instead of plain RGB math.

The inputs and outputs that matter

  • images - required, plural - this is a batch node.
  • enhancement_method - real_esrgan, perceptual_color, or combined.
  • batch_size (1–16, default 4) - how many images process at once; higher needs more VRAM.
  • real_esrgan_model (optional, default RealESRGAN_x4plus) - same three variants as the standalone node: general photos, anime/illustration, or a lightweight general option.
  • color_space (optional, default oklab) - oklab, jzazbz, or the older lab. Oklab is the newer, generally recommended default; the others are there if you have a specific reason to want them.
  • enhancement_strength (optional, 0–2, default 0.7) - only relevant when perceptual_color or combined is doing color work.
  • Outputs: enhanced_images and processing_info.

How to install it

Search Eric_Image_Processing_Nodes in ComfyUI Manager, or manually:

cd ComfyUI/custom_nodes
git clone https://github.com/EricRollei/Eric_Image_Processing_Nodes
cd Eric_Image_Processing_Nodes
pip install -r requirements.txt

Restart ComfyUI. The Real-ESRGAN weights auto-download on first use exactly as they do for the standalone node - if you've already run RealESRGANNode once, this one reuses the same cached weights rather than downloading again. The perceptual-color path is pure math and needs nothing extra beyond the pack's core requirements.

Common issues & troubleshooting

Running out of memory on a batch. Drop batch_size first - it's the biggest memory lever here, especially in combined mode where both the upscaler and the color correction are running per image.

Color shifts look unnatural after perceptual_color or combined. Try enhancement_strength lower before switching color_space - 0.7 is already a moderate default, and pushing toward 2.0 will exaggerate any hue drift that's present. If you have a specific reason to distrust Oklab for your content, jzazbz and lab are the fallbacks.

Anime source looks worse after real_esrgan. Same mismatch as the standalone node - set real_esrgan_model to the anime variant, not the general-photo default, when your content is illustration rather than photography.

Combined mode is slow. You're running two separate techniques per image in sequence, on top of batching - this is inherently the heaviest option this node offers. If you only need one of the two effects, use real_esrgan or perceptual_color alone rather than paying for combined by default.

CategoryEric's Nodes/AI Enhancement

Inputs (6)

NameTypeDefaultDescription
imagesIMAGE
enhancement_methodCOMBOreal_esrganEnhancement method: • real_esrgan: AI super-resolution • perceptual_color: Color space enhancement • combined: Both methods in sequence
batch_sizeINT41–16Batch processing size: • 1: Single image processing • 4: Small batch (recommended) • 8-16: Large batch (requires more VRAM)
real_esrgan_modeloptCOMBORealESRGAN_x4plus3 options: RealESRGAN_x4plus, RealESRGAN_x4plus_anime_6B, realesr-general-x4v3
color_spaceoptCOMBOoklab3 options: oklab, jzazbz, lab
enhancement_strengthoptFLOAT0.70–2

Outputs (2)

NameTypeDescription
enhanced_imagesIMAGE
processing_infoSTRING