ComfyUI > Nodes > ComfyUI-Segformer_Ultra_Fast > GrowMask Ultra-Fast

ComfyUI Node: GrowMask Ultra-Fast

Class Name

Grow_Mask_Ultra_Fast

Category
Segformer Ultra-Fast/Mask
Author
lihaoyun6 (Account age: 3650days)
Extension
ComfyUI-Segformer_Ultra_Fast
Latest Updated
2025-10-17
Github Stars
0.04K

How to Install ComfyUI-Segformer_Ultra_Fast

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

GrowMask Ultra-Fast Description

Efficiently adjust mask boundaries with optional tapered corners for image processing tasks.

GrowMask Ultra-Fast:

The Grow_Mask_Ultra_Fast node is designed to efficiently expand or contract a given mask, which is a binary representation often used in image processing to highlight specific areas of interest. This node is particularly beneficial for tasks that require rapid adjustments to mask boundaries, such as refining object segmentation in images. By leveraging advanced techniques, it allows for the expansion or contraction of mask edges with optional tapered corners, providing a smooth transition that can enhance the visual quality of the mask. The node is optimized for performance, making it suitable for batch processing and capable of handling large datasets quickly. Its ability to operate on different devices, including GPUs, further enhances its speed and versatility, making it an essential tool for AI artists looking to manipulate masks with precision and efficiency.

GrowMask Ultra-Fast Input Parameters:

mask

The mask parameter is the primary input for this node, representing the binary mask that you wish to expand or contract. This mask is typically a 3D tensor where each element indicates whether a pixel is part of the region of interest. The node processes this mask to adjust its boundaries based on the other parameters provided.

expand_by

The expand_by parameter determines the number of pixels by which the mask should be expanded or contracted. It accepts integer values ranging from -255 to 255, where positive values expand the mask and negative values contract it. The default value is 0, meaning no change to the mask size. Adjusting this parameter allows you to control the extent of the mask's boundary modification.

tapered_corners

The tapered_corners parameter is a boolean option that, when set to true, applies a smoothing effect to the corners of the expanded or contracted mask. This results in a more natural and visually appealing transition at the edges. The default setting is true, which is generally recommended for most applications to avoid sharp, unnatural edges.

batch_size

The batch_size parameter specifies the number of masks to process simultaneously. It accepts integer values from 1 to 50, with a default of 5. This parameter is crucial for optimizing performance, especially when working with large datasets, as it allows for efficient use of computational resources by processing multiple masks in parallel.

device

The device parameter allows you to select the computational device on which the node will run. Options typically include various GPU and CPU configurations, with the default being the first available device. Choosing the appropriate device can significantly impact the processing speed, especially for large-scale operations.

GrowMask Ultra-Fast Output Parameters:

mask

The output mask is the modified version of the input mask after the expansion or contraction process. It retains the same dimensionality as the input but with adjusted boundaries according to the expand_by and tapered_corners settings. This output is crucial for subsequent image processing tasks, as it defines the new area of interest with refined edges.

GrowMask Ultra-Fast Usage Tips:

  • To achieve smooth transitions at the mask edges, ensure that tapered_corners is set to true, especially when expanding the mask significantly.
  • For large datasets, adjust the batch_size to match your system's capabilities, balancing between memory usage and processing speed for optimal performance.
  • Utilize a GPU by setting the device parameter to a CUDA-enabled option if available, as this can drastically reduce processing time for batch operations.

GrowMask Ultra-Fast Common Errors and Solutions:

"Mask is empty, returning empty bbox list."

  • Explanation: This error occurs when the input mask is entirely empty, meaning there are no regions of interest to process.
  • Solution: Ensure that the input mask is correctly generated and contains non-zero elements representing the areas of interest before passing it to the node.

"CUDA device not available."

  • Explanation: This error indicates that the specified CUDA device is not available or not properly configured on your system.
  • Solution: Verify that your system has a compatible GPU and that the necessary CUDA drivers are installed. Alternatively, set the device parameter to "cpu" if GPU processing is not required.

GrowMask Ultra-Fast Related Nodes

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