✨ Color Correction Advanced:
The ArchAi3D_Color_Correction_Advanced node is a sophisticated tool designed for professional-grade color correction, specifically tailored for AI artists seeking to achieve precise chroma matching in their digital artworks. This node leverages advanced techniques, including YCbCr chroma statistics matching and adaptive highlight/lowlight attenuation, to ensure that colors are accurately aligned and consistent across images. By utilizing brightness-dependent processing and ultra-conservative corrections, it minimizes artifacts and maintains the integrity of the original image. Additionally, the node offers the option to match colors to a reference image, making it an invaluable asset for workflows that require consistent color grading and matching generated images to specific color palettes. Its design is based on the techniques from qi_refedit by wallen0322, ensuring a high level of reliability and effectiveness in color correction tasks.
✨ Color Correction Advanced Input Parameters:
image
The image parameter is a tensor representing the input image in the ComfyUI format, which is a 4-dimensional tensor with dimensions (B, H, W, C) where B is the batch size, H is the height, W is the width, and C is the number of color channels. This parameter is crucial as it provides the raw data that the node will process to perform color correction. The image should be in the sRGB color space with values ranging from 0 to 1.
strength
The strength parameter controls the intensity of the color correction applied to the image. It is a floating-point value ranging from 0.0 to 1.0, where 0.0 means no correction is applied, and 1.0 means full correction strength is utilized. Adjusting this parameter allows you to fine-tune the degree of color adjustment, making it possible to achieve subtle or pronounced changes in the image's color balance.
saturation
The saturation parameter adjusts the saturation level of the corrected image. It accepts values from 0.0 to 2.0, where 1.0 represents the original saturation level, values below 1.0 reduce saturation towards grayscale, and values above 1.0 enhance saturation for more vivid colors. This parameter is essential for achieving the desired color intensity and vibrancy in the final output.
✨ Color Correction Advanced Output Parameters:
img_corrected
The img_corrected parameter is the output of the node, providing the color-corrected image tensor. This tensor retains the same dimensions as the input image (B, H, W, C) and represents the processed image with adjusted colors based on the specified strength and saturation parameters. The corrected image is clamped to ensure pixel values remain within the valid range, preserving the visual quality and preventing artifacts.
✨ Color Correction Advanced Usage Tips:
- Use the
strengthparameter to control the extent of color correction, starting with a moderate value and adjusting as needed to achieve the desired effect without over-processing the image. - Experiment with the
saturationparameter to enhance or reduce color intensity, especially when working with images that require specific mood or artistic expression. - Consider using a reference image for color matching when consistency across multiple images is crucial, ensuring that the color palette remains uniform.
✨ Color Correction Advanced Common Errors and Solutions:
Incorrect image format
- Explanation: The input image tensor is not in the expected (B, H, W, C) format or not in the sRGB color space.
- Solution: Ensure that the input image is correctly formatted as a 4-dimensional tensor with values in the range [0, 1] and in the sRGB color space.
Out of range parameter values
- Explanation: The
strengthorsaturationparameters are set outside their valid ranges, leading to unexpected behavior. - Solution: Verify that the
strengthis between 0.0 and 1.0, andsaturationis between 0.0 and 2.0, adjusting them to fall within these limits.
Artifacts in corrected image
- Explanation: Excessive correction strength or saturation adjustments may introduce artifacts.
- Solution: Reduce the
strengthor adjust thesaturationto more conservative values to minimize artifacts and maintain image quality.
