ComfyUI Node: VNCCS Chroma Key

Class Name

VNCCSChromaKey

Category
VNCCS
Author
MIUProject (Account age: 1115days)
Extension
VNCCS - Visual Novel Character Creation Suite
Latest Updated
2025-12-14
Github Stars
0.39K

How to Install VNCCS - Visual Novel Character Creation Suite

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

VNCCS Chroma Key Description

Efficiently removes green screen backgrounds with RGB-based chroma key technique for precise foreground isolation and smooth blending.

VNCCS Chroma Key:

The VNCCSChromaKey node is designed to facilitate the removal of green screen backgrounds from images using a simple RGB-based chroma key technique. This node is particularly beneficial for AI artists who need to isolate subjects from their backgrounds efficiently. By automatically detecting the background color from the image borders, it simplifies the process of background removal. The node uses RGB distance with a specified tolerance to mask out the background, allowing for precise control over which parts of the image are considered background versus foreground. Additionally, it offers options to adjust the blending of edge pixels through despill strength and kernel size, ensuring smooth transitions and minimizing color spill. This makes it an essential tool for creating clean, professional-looking composites without requiring extensive technical knowledge.

VNCCS Chroma Key Input Parameters:

image

This parameter represents the input image from which the background will be removed. It is expected to be in an RGB format, and the node will process this image to identify and mask out the background based on the specified parameters.

tolerance

The tolerance parameter controls the sensitivity of the background detection. It is a float value ranging from 0.0 to 1.0, with a default of 0.2. A lower tolerance means that only colors very close to the detected background color will be removed, while a higher tolerance allows for a broader range of colors to be considered as background. Adjusting this parameter helps in fine-tuning the accuracy of the background removal process.

despill_strength

This float parameter, ranging from 0.0 to 1.0 with a default of 0.5, determines the strength of the despill effect applied to the edges of the subject. Despill strength controls how much the edge pixels are blended to reduce color spill from the background. A higher value results in stronger blending, which can help in achieving smoother edges.

despill_kernel_size

The despill kernel size is an integer parameter that defines the area around the edges where the despill effect is applied. It ranges from 1 to 9, with a default value of 3. This parameter affects the size of the area considered for edge detection and blending, allowing for more precise control over the despill effect.

despill_color

This parameter offers two options: "interior_average" and "black," with "interior_average" as the default. It determines the color used for the despill effect. Choosing "interior_average" uses the average color of the interior of the subject, while "black" uses black for the despill color. This choice can impact the visual outcome of the despill effect, especially in terms of how natural the edges appear.

VNCCS Chroma Key Output Parameters:

image

The output is a single IMAGE tensor containing RGBA data, where the alpha channel represents the transparency of each pixel. The alpha channel is computed as (1

  • mask), where a mask value of 1 indicates background and 0 indicates foreground. This output allows for easy compositing of the subject onto new backgrounds, providing a clean separation between the subject and the removed background.

VNCCS Chroma Key Usage Tips:

  • Adjust the tolerance parameter to fine-tune the background removal process. Start with the default value and increase it if the background is not fully removed, or decrease it if parts of the subject are being incorrectly masked.
  • Use the despill_strength and despill_kernel_size parameters to achieve smoother edges and reduce color spill. Experiment with different values to find the best balance for your specific image.
  • Choose the despill_color option that best suits your needs. "Interior_average" is often a good choice for natural-looking edges, while "black" can be useful for more stylized effects.

VNCCS Chroma Key Common Errors and Solutions:

Image format not supported

  • Explanation: The input image is not in the expected RGB format.
  • Solution: Ensure that the input image is in RGB format before processing it with the VNCCSChromaKey node.

Tolerance value out of range

  • Explanation: The tolerance parameter is set outside the allowed range of 0.0 to 1.0.
  • Solution: Adjust the tolerance value to be within the specified range.

Despill kernel size must be an odd integer

  • Explanation: The despill kernel size is not an odd integer, which is required for proper edge detection.
  • Solution: Set the despill kernel size to an odd integer within the allowed range of 1 to 9.

VNCCS Chroma Key Related Nodes

Go back to the extension to check out more related nodes.
VNCCS - Visual Novel Character Creation Suite
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.