ComfyUI > Nodes > ComfyUI > Normalize Images

ComfyUI Node: Normalize Images

Class Name

NormalizeImages

Category
dataset/image
Author
ComfyAnonymous (Account age: 763days)
Extension
ComfyUI
Latest Updated
2026-05-13
Github Stars
112.77K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Normalize Images Description

Standardize pixel values of images by adjusting based on mean and standard deviation for improved algorithm performance.

Normalize Images:

The NormalizeImages node is designed to standardize the pixel values of images by adjusting them based on a specified mean and standard deviation. This process, known as normalization, is crucial in image processing and machine learning as it ensures that the image data is on a consistent scale, which can improve the performance of algorithms that process these images. By normalizing images, you can enhance the stability and convergence speed of models during training, as well as improve the overall quality of image analysis tasks. This node is particularly beneficial when working with datasets where images have varying lighting conditions or color distributions, as it helps to bring uniformity across the dataset.

Normalize Images Input Parameters:

mean

The mean parameter represents the average value that will be used to normalize the image. It adjusts the brightness level of the image by centering the pixel values around this mean. The parameter accepts a float value ranging from 0.0 to 1.0, with a default value of 0.5. Setting a lower mean value will darken the image, while a higher mean value will brighten it. This parameter is crucial for ensuring that the image's brightness is consistent with the desired level for further processing or analysis.

std

The std parameter stands for standard deviation, which is used to scale the pixel values of the image. It controls the contrast of the image by spreading the pixel values around the mean. The parameter accepts a float value ranging from 0.001 to 1.0, with a default value of 0.5. A smaller standard deviation will result in a lower contrast image, while a larger standard deviation will increase the contrast. This parameter is essential for adjusting the image's contrast to match the requirements of specific image processing tasks or models.

Normalize Images Output Parameters:

normalized_image

The output of the NormalizeImages node is the normalized_image, which is the processed image with pixel values adjusted according to the specified mean and standard deviation. This output is crucial for ensuring that the image data is on a consistent scale, which can enhance the performance of subsequent image processing or machine learning tasks. The normalized image will have its brightness and contrast adjusted to the levels specified by the input parameters, making it suitable for further analysis or model training.

Normalize Images Usage Tips:

  • To achieve optimal results, choose a mean value that reflects the average brightness level you desire for your images. This can help in maintaining consistency across a dataset with varying lighting conditions.
  • Adjust the std parameter to control the contrast of your images. A higher standard deviation can be useful for highlighting details in images with low contrast, while a lower standard deviation can help in reducing noise in high-contrast images.
  • Experiment with different combinations of mean and std values to find the best settings for your specific dataset and application needs.

Normalize Images Common Errors and Solutions:

"Division by zero error"

  • Explanation: This error occurs when the std parameter is set to zero, leading to a division by zero during normalization.
  • Solution: Ensure that the std parameter is set to a value greater than zero. The minimum allowed value is 0.001, which should be used to avoid this error.

"Image data out of range"

  • Explanation: This error might occur if the normalized image data falls outside the expected range of 0.0 to 1.0.
  • Solution: Verify that the mean and std values are set appropriately to ensure that the resulting pixel values remain within the valid range. Adjust these parameters if necessary to prevent pixel values from exceeding the bounds.

Normalize Images Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Normalize Images