ComfyUI  >  Nodes  >  ComfyUI Essentials >  🔧 Mask From List

ComfyUI Node: 🔧 Mask From List

Class Name

MaskFromList+

Category
essentials/mask
Author
cubiq (Account age: 5020 days)
Extension
ComfyUI Essentials
Latest Updated
7/1/2024
Github Stars
0.3K

How to Install ComfyUI Essentials

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

🔧 Mask From List Description

Generate masks from list of values for precise control over appearance and behavior, ideal for AI artists.

🔧 Mask From List+:

The MaskFromList+ node is designed to generate a mask from a list of values, providing a flexible way to create masks based on specific numerical inputs. This node is particularly useful for AI artists who need to create custom masks for their projects. By allowing both integer and floating-point values, as well as string inputs that can be converted to numerical values, MaskFromList+ offers a versatile approach to mask creation. The node ensures that all values are clamped between 0.0 and 1.0, making it easy to work with normalized data. The primary goal of this node is to simplify the process of generating masks from a list of values, enabling more precise control over the mask's appearance and behavior.

🔧 Mask From List+ Input Parameters:

width

The width parameter specifies the width of the mask to be generated. It determines the horizontal dimension of the mask and accepts integer values. The default value is 32, with a minimum of 0 and a maximum defined by MAX_RESOLUTION. The step size for this parameter is 8. Adjusting the width allows you to control the mask's size to fit your specific needs.

height

The height parameter defines the height of the mask to be generated. It sets the vertical dimension of the mask and accepts integer values. The default value is 32, with a minimum of 0 and a maximum defined by MAX_RESOLUTION. The step size for this parameter is 8. Modifying the height enables you to tailor the mask's size to match your requirements.

values

The values parameter allows you to input a list of numerical values (either integers or floats) that will be used to create the mask. The default value is 0.0, with a minimum of 0.0 and a maximum of 1.0. This parameter is optional and provides a direct way to specify the mask's values.

str_values

The str_values parameter accepts a string of comma-separated numerical values that will be converted to floats and used to generate the mask. The default value is an empty string, and it supports multiline input. This parameter is optional and offers an alternative method to input the mask's values, especially useful for quickly entering multiple values.

🔧 Mask From List+ Output Parameters:

MASK

The MASK output parameter represents the generated mask based on the input values. This mask is a tensor with values clamped between 0.0 and 1.0, ensuring it is normalized and ready for further processing or application. The mask's dimensions are determined by the specified width and height, and it can be used in various AI art projects to control different aspects of the artwork.

🔧 Mask From List+ Usage Tips:

  • To create a mask with specific patterns, use the values parameter to input a list of numerical values directly.
  • If you have a large number of values, consider using the str_values parameter to quickly input them as a comma-separated string.
  • Ensure that the width and height parameters match the dimensions required for your project to avoid resizing issues.

🔧 Mask From List+ Common Errors and Solutions:

No values provided

  • Explanation: This error occurs when neither values nor str_values are provided or both are empty.
  • Solution: Ensure that you provide at least one value in either the values or str_values parameter to generate the mask.

Invalid value type

  • Explanation: This error occurs if the values parameter is not a list or a single numerical value.
  • Solution: Make sure that the values parameter is either a list of numerical values or a single numerical value.

Value out of range

  • Explanation: This error occurs if any value in the values or str_values parameter is outside the range of 0.0 to 1.0.
  • Solution: Ensure that all values provided are within the range of 0.0 to 1.0 to avoid clamping issues.

🔧 Mask From List Related Nodes

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