ComfyUI > Nodes > comfy_Pond_Nodes > 🐳图像去色

ComfyUI Node: 🐳图像去色

Class Name

DesaturateImage

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

🐳图像去色 Description

Transforms colored images to grayscale in RGB, offering desaturation methods and blending control.

🐳图像去色:

The DesaturateImage node is designed to transform a colored image into a grayscale image while maintaining the RGB format. This node simulates the desaturation effect similar to what you might find in image editing software like Photoshop. By converting images to grayscale, you can emphasize the tonal range and contrast without the distraction of color. This node is particularly useful for artists and designers who want to focus on the composition and lighting of an image. It offers several methods for desaturation, allowing you to choose the one that best suits your artistic needs. The node also provides a blending feature, enabling you to control the intensity of the desaturation effect, thus offering flexibility in achieving the desired visual outcome.

🐳图像去色 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 essential as it provides the source material for the desaturation process.

去色方法

The 去色方法 (desaturation method) parameter allows you to select the method used to convert the image to grayscale. The available options are "亮度" (luminance), "平均" (average), "最大值" (maximum value), and "最小值" (minimum value). The default method is "亮度", which uses the ITU-R BT.709 standard weights to account for human eye sensitivity to different colors. This parameter impacts how the grayscale values are calculated, affecting the final appearance of the desaturated image.

去色强度

The 去色强度 (desaturation intensity) parameter controls the blending of the original image with the desaturated result. It is a float value ranging from 0.0 to 1.0, with a default of 1.0. A value of 1.0 means full desaturation, while a value of 0.0 means no desaturation. This parameter allows you to fine-tune the strength of the desaturation effect, providing flexibility in achieving the desired artistic effect.

🐳图像去色 Output Parameters:

图像

The 图像 (image) output parameter is the resulting image after the desaturation process. It retains the original image dimensions and format but with the colors converted to grayscale based on the selected desaturation method and intensity. This output is crucial for further processing or for use in artistic compositions where a grayscale image is desired.

🐳图像去色 Usage Tips:

  • Experiment with different 去色方法 options to see which one best suits your artistic vision. The "亮度" method is often preferred for its realistic representation of grayscale tones.
  • Use the 去色强度 slider to blend the original and desaturated images. This can help you achieve a subtle desaturation effect that retains some color information for a more nuanced look.

🐳图像去色 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 (RGB) or 4 (RGBA).

Unsupported desaturation method

  • Explanation: The specified desaturation method is not recognized by the node.
  • Solution: Use one of the supported methods: "亮度", "平均", "最大值", or "最小值".

Desaturation intensity out of range

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

🐳图像去色 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.

🐳图像去色