ComfyUI > Nodes > UniVidX_ComfyUI > UniVidX • Decode (Alpha)

ComfyUI Node: UniVidX • Decode (Alpha)

Class Name

UniVidXDecodeAlpha

Category
UniVidX
Author
dreamrec (Account age: 4074days)
Extension
UniVidX_ComfyUI
Latest Updated
2026-05-12
Github Stars
0.03K

How to Install UniVidX_ComfyUI

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

UniVidX • Decode (Alpha) Description

Decomposes UNIVIDX_RESULT into RGB, alpha, foreground, and background images for precise compositing and manipulation workflows.

UniVidX • Decode (Alpha):

The UniVidXDecodeAlpha node is designed to process and decompose a UNIVIDX_RESULT into four distinct image outputs: composite RGB, alpha, foreground, and background. This node is particularly useful in scenarios where you need to handle alpha-family data, which involves separating an image into its constituent parts for further processing or analysis. The node ensures that any modality that was used as a condition rather than a target is represented as a black placeholder image, maintaining the integrity of the workflow and preventing downstream errors. This functionality is crucial for tasks that require precise image compositing and manipulation, such as creating alpha mattes for compositing in visual effects or graphics design. By providing a structured way to handle these outputs, UniVidXDecodeAlpha facilitates seamless integration into larger workflows, ensuring that each component of the image is accurately represented and available for further use.

UniVidX • Decode (Alpha) Input Parameters:

result

The result parameter is a tuple consisting of a dictionary and a mode, both of which are essential for the node's operation. The dictionary contains the data that needs to be decoded, while the mode specifies the type of data being processed. This parameter is crucial as it determines how the node will interpret and decompose the input data into the respective image outputs. There are no specific minimum, maximum, or default values for this parameter, as it is dependent on the data being processed. However, it is important to ensure that the mode is of the alpha family; otherwise, the node will raise an error.

UniVidX • Decode (Alpha) Output Parameters:

composite_rgb

The composite_rgb output provides the RGB composite image, which is a combination of the foreground and background images, modulated by the alpha channel. This output is essential for visualizing the final composited image as it would appear in a typical rendering or compositing scenario.

alpha

The alpha output represents the alpha channel of the image, which is a binary-quality mask indicating the transparency levels of the composite image. This output is crucial for tasks that involve image compositing, as it allows for precise control over which parts of the image are visible or transparent.

foreground

The foreground output contains the image data for the foreground elements, isolated from the background. This output is particularly useful for scenarios where you need to manipulate or analyze the foreground independently of the background.

background

The background output provides the image data for the background elements, separated from the foreground. This output is important for tasks that require background manipulation or analysis without interference from the foreground elements.

UniVidX • Decode (Alpha) Usage Tips:

  • Ensure that the mode provided in the result parameter is of the alpha family to avoid errors and ensure correct processing of the input data.
  • Use the alpha output to create precise masks for compositing tasks, allowing for seamless integration of different image elements.
  • Leverage the foreground and background outputs to independently manipulate these elements, providing greater flexibility in image editing and compositing workflows.

UniVidX • Decode (Alpha) Common Errors and Solutions:

ValueError: Mode <mode> is not alpha. Use UniVidXDecodeIntrinsic instead.

  • Explanation: This error occurs when the mode provided in the result parameter is not of the alpha family, which is required for the UniVidXDecodeAlpha node to function correctly.
  • Solution: Ensure that the mode specified in the result parameter is of the alpha family. If you are working with intrinsic-family data, consider using the UniVidXDecodeIntrinsic node instead.

UniVidX • Decode (Alpha) Related Nodes

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

UniVidX • Decode (Alpha)