Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficiently removes green screen backgrounds with RGB-based chroma key technique for precise foreground isolation and smooth blending.
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.
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.
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.
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.
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.
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.
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
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.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.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.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.