ComfyUI > Nodes > comfy_Pond_Nodes > 🐳图像去色(V2)

ComfyUI Node: 🐳图像去色(V2)

Class Name

DesaturateImageAdvanced

Category
🐳Pond/颜色
Author
Pondowner857 (Account age: 730days)
Extension
comfy_Pond_Nodes
Latest Updated
2026-01-28
Github Stars
0.04K

How to Install comfy_Pond_Nodes

Install this extension via the ComfyUI Manager by searching for comfy_Pond_Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter comfy_Pond_Nodes 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

🐳图像去色(V2) Description

DesaturateImageAdvanced: Converts images to grayscale with customizable RGB channel weights.

🐳图像去色(V2):

The DesaturateImageAdvanced node is a sophisticated tool designed to convert colored images into grayscale while offering advanced control over the desaturation process. This node allows you to customize the desaturation by adjusting the weights of the red, green, and blue channels, providing a more tailored grayscale conversion that can mimic various artistic styles or technical requirements. Additionally, it includes options for normalizing these weights and controlling the intensity of the desaturation effect, enabling you to blend the original image with the desaturated version to achieve the desired level of grayscale. This flexibility makes it an invaluable tool for AI artists looking to experiment with different grayscale effects and achieve precise control over the final image output.

🐳图像去色(V2) Input Parameters:

image

The image parameter is the input image tensor that you want to desaturate. It should be in the format of a batch of images 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 channels. This parameter is crucial as it serves as the base image that will undergo the desaturation process.

R

The R parameter represents the weight of the red channel in the desaturation process. It is a floating-point value with a default of 0.2126, a minimum of 0.0, and a maximum of 1.0. Adjusting this value changes the influence of the red channel on the grayscale conversion, allowing you to emphasize or de-emphasize red tones in the final image.

G

The G parameter is the weight assigned to the green channel during desaturation. It defaults to 0.7152 and ranges from 0.0 to 1.0. This parameter is significant because the human eye is more sensitive to green, and adjusting this weight can significantly impact the perceived brightness and contrast of the grayscale image.

B

The B parameter controls the weight of the blue channel in the desaturation process. With a default value of 0.0722, it can be adjusted between 0.0 and 1.0. Modifying this parameter allows you to control the contribution of blue tones to the grayscale image, which can be useful for achieving specific artistic effects.

归一化

The 归一化 (Normalization) parameter is a boolean option that determines whether the weights of the R, G, and B channels should be normalized. By default, it is set to True. Normalization ensures that the sum of the weights equals 1, maintaining the overall brightness of the image and preventing any channel from disproportionately affecting the grayscale conversion.

去色强度

The 去色强度 (Desaturation Intensity) parameter is a floating-point value that controls the blending of the original image with the desaturated version. It ranges from 0.0 to 1.0, with a default of 1.0. A value of 1.0 results in a fully desaturated image, while lower values blend the original colors with the grayscale, allowing for subtle desaturation effects.

🐳图像去色(V2) Output Parameters:

图像

The 图像 (Image) output parameter is the resulting image after the desaturation process. It retains the original dimensions and format (B, H, W, C) of the input image but with the colors converted to grayscale based on the specified weights and intensity. This output is essential for further processing or final rendering, providing a grayscale version of the input image that can be used in various artistic or technical applications.

🐳图像去色(V2) Usage Tips:

  • Experiment with different R, G, and B weights to achieve unique grayscale effects that emphasize specific color tones in your images.
  • Use the 去色强度 parameter to blend the original image with the desaturated version, allowing for creative effects such as partial desaturation or color popping.
  • Enable 归一化 to ensure that the overall brightness of the image is preserved, especially when using non-standard weights for the color channels.

🐳图像去色(V2) Common Errors and Solutions:

Invalid image format

  • Explanation: The input image does not have the correct dimensions or channel format.
  • Solution: Ensure that the input image is a tensor with dimensions (B, H, W, C), where C is either 3 or 4 for RGB or RGBA images.

Weight sum exceeds 1

  • Explanation: The sum of the R, G, and B weights exceeds 1, leading to potential brightness issues.
  • Solution: Enable 归一化 to automatically adjust the weights so that their sum equals 1, or manually adjust the weights to ensure they do not exceed 1.

Desaturation intensity out of range

  • Explanation: The 去色强度 value is set outside the allowed range of 0.0 to 1.0.
  • Solution: Adjust the 去色强度 parameter to be within the specified range to ensure proper blending of the original and desaturated images.

🐳图像去色(V2) Related Nodes

Go back to the extension to check out more related nodes.
comfy_Pond_Nodes
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.

🐳图像去色(V2)