ComfyUI  >  Nodes  >  ComfyUI-Image-Filters >  Keyer

ComfyUI Node: Keyer

Class Name

Keyer

Category
image/filters
Author
spacepxl (Account age: 295 days)
Extension
ComfyUI-Image-Filters
Latest Updated
6/22/2024
Github Stars
0.1K

How to Install ComfyUI-Image-Filters

Install this extension via the ComfyUI Manager by searching for  ComfyUI-Image-Filters
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Image-Filters 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Keyer Description

Facilitates isolating image parts based on color values for precise manipulation in compositing and AI workflows.

Keyer:

The Keyer node is designed to facilitate the process of isolating specific parts of an image based on color values. This is particularly useful in tasks such as compositing, where you might want to extract a subject from a background or apply effects to certain areas of an image. By defining a range of color values, the Keyer node can create a mask that highlights the areas of interest, allowing for more precise and targeted image manipulation. This node is essential for AI artists looking to enhance their creative workflows by providing greater control over image elements.

Keyer Input Parameters:

images

This parameter accepts the input images that you want to process. The images should be in a format that the node can interpret and manipulate. The quality and resolution of the input images can affect the accuracy of the keying process.

operation

This parameter defines the type of keying operation to be performed. It determines how the node will interpret the color values and create the mask. The specific options for this parameter can vary, but they generally include different keying techniques such as chroma keying or luma keying.

low

This parameter sets the lower bound of the color range to be keyed. It defines the minimum color value that will be included in the mask. Adjusting this value can help in fine-tuning the areas that are selected by the keyer. The value is typically a numerical representation of color intensity.

high

This parameter sets the upper bound of the color range to be keyed. It defines the maximum color value that will be included in the mask. Similar to the low parameter, adjusting this value helps in refining the selection of the keyer. The value is usually a numerical representation of color intensity.

gamma

This parameter adjusts the gamma correction for the keying process. Gamma correction can influence the brightness and contrast of the keyed areas, making it easier to isolate specific parts of the image. The value is typically a floating-point number, with higher values increasing the brightness.

premult

This parameter determines whether the input images are pre-multiplied by their alpha channel. Pre-multiplication can affect how the keyer interprets the transparency and color values of the image. This is a boolean parameter, where True indicates that the images are pre-multiplied and False indicates they are not.

Keyer Output Parameters:

mask

The output of the Keyer node is a mask that highlights the areas of the image that fall within the specified color range. This mask can be used for further image processing tasks, such as compositing or applying effects. The mask is typically a binary image where the selected areas are white, and the non-selected areas are black.

Keyer Usage Tips:

  • Experiment with the low and high parameters to fine-tune the color range and achieve a more accurate mask.
  • Use the gamma parameter to adjust the brightness and contrast of the keyed areas, which can help in better isolating the subject.
  • Ensure that the premult parameter is set correctly based on whether your input images are pre-multiplied by their alpha channel.

Keyer Common Errors and Solutions:

"Invalid color range"

  • Explanation: The low and high parameters are set to values that do not form a valid range.
  • Solution: Adjust the low and high parameters to ensure they define a valid range of color values.

"Unsupported image format"

  • Explanation: The input images are in a format that the Keyer node cannot process.
  • Solution: Convert the input images to a supported format before using the Keyer node.

"Gamma value out of range"

  • Explanation: The gamma parameter is set to a value that is outside the acceptable range.
  • Solution: Adjust the gamma parameter to a value within the acceptable range, typically between 0.1 and 10.0.

Keyer Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Image-Filters
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.