ComfyUI Node: Load Mask (Base64)

Class Name

ETN_LoadMaskBase64

Category
external_tooling
Author
Acly (Account age: 3813days)
Extension
ComfyUI Nodes for External Tooling
Latest Updated
2024-06-24
Github Stars
0.21K

How to Install ComfyUI Nodes for External Tooling

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

Load Mask (Base64) Description

Decode base64 image string to mask tensor for AI art workflows, simplifying image data conversion and mask application.

Load Mask (Base64):

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.

Load Mask (Base64) Input Parameters:

mask

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.

Load Mask (Base64) Output Parameters:

MASK

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.

Load Mask (Base64) Usage Tips:

  • Ensure that the base64-encoded string provided as input is correctly formatted and represents a valid image file to avoid decoding errors.
  • Use this node in conjunction with other image processing nodes to apply the generated mask to images or to create new artwork based on masked regions.

Load Mask (Base64) Common Errors and Solutions:

Invalid base64-encoded string

  • Explanation: The input string is not a valid base64-encoded image.
  • Solution: Verify that the input string is correctly base64-encoded and represents a valid image file.

Unsupported image format

  • Explanation: The input image format is not supported by the node.
  • Solution: Ensure that the input image is in a supported format such as PNG or JPEG.

Image decoding error

  • Explanation: There was an error while decoding the base64-encoded image.
  • Solution: Check the integrity of the base64 string and ensure it is not corrupted or incomplete.

Load Mask (Base64) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Nodes for External Tooling
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.