Visit ComfyUI Online for ready-to-use ComfyUI environment
Decode base64 image string to mask tensor for AI art workflows, simplifying image data conversion and mask application.
The ETN_LoadMaskBase64 node is designed to decode a base64-encoded image string into a mask tensor, which is a crucial step in many AI art workflows. This node simplifies the process of converting encoded image data into a usable format for further processing, such as applying masks to images or generating new artwork based on masked regions. By handling the decoding and conversion internally, it allows you to focus on the creative aspects of your projects without worrying about the technical details of image processing. The node ensures that the mask is correctly formatted and ready for use in subsequent operations, making it an essential tool for artists working with AI-generated content.
The mask
parameter expects a base64-encoded string representing the image data. This string should be a valid base64 encoding of an image file, typically in formats like PNG or JPEG. The node will decode this string and convert the image into a mask tensor. This parameter is required and does not have a default value. The input should be a single-line string without any multiline formatting.
The MASK
output is a tensor representing the decoded mask from the input image. This tensor is in a format that can be directly used in further image processing tasks. If the input image is in RGB or RGBA format, the node will use the red channel to generate the mask. The output tensor is normalized to have values between 0 and 1, making it suitable for various AI art applications.
© Copyright 2024 RunComfy. All Rights Reserved.