ComfyUI > Nodes > ComfyUI_KimNodes > 🍒Split_Mask🔪蒙版元素分割

ComfyUI Node: 🍒Split_Mask🔪蒙版元素分割

Class Name

Split_Mask

Category
🍒 Kim-Nodes/🔲Mask_Tools | 蒙板工具
Author
Kim (Account age: 2536days)
Extension
ComfyUI_KimNodes
Latest Updated
2025-09-22
Github Stars
0.05K

How to Install ComfyUI_KimNodes

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

🍒Split_Mask🔪蒙版元素分割 Description

The Split_Mask node segments images using a mask for targeted modifications and enhancements.

🍒Split_Mask🔪蒙版元素分割:

The Split_Mask node is a powerful tool designed to process and manipulate images by segmenting them based on a provided mask. This node is particularly useful for AI artists who need to isolate specific parts of an image for further processing or analysis. By utilizing a mask, which acts as a guide, the node can effectively separate different elements within an image, allowing for targeted modifications or enhancements. The primary goal of the Split_Mask node is to provide a flexible and efficient way to handle complex image compositions, making it easier to focus on individual components without affecting the entire image. This capability is especially beneficial in creative workflows where precision and control over image elements are crucial.

🍒Split_Mask🔪蒙版元素分割 Input Parameters:

image

The image parameter is the primary input for the node, representing the image that you want to process. This parameter is crucial as it serves as the base upon which the mask will be applied to segment different parts. The image should be in a compatible format that the node can process effectively.

mask

The mask parameter is a critical input that defines the areas of the image to be segmented. It acts as a guide for the node to determine which parts of the image should be isolated. The mask should be a single-channel image, typically in a binary format, where the areas to be segmented are marked.

padding

The padding parameter allows you to specify an additional space around the segmented areas. This integer value can range from 0 to 100, with a default of 10. Padding is useful for ensuring that the segmented parts have a buffer zone, which can be helpful in avoiding edge artifacts or ensuring smoother transitions between segments.

filtration_area

The filtration_area parameter is a float value that determines the minimum area of segments to be considered during the splitting process. It ranges from 0 to 1, with a default value of 0.0025. This parameter helps in filtering out smaller, insignificant segments, ensuring that only meaningful parts of the image are processed.

🍒Split_Mask🔪蒙版元素分割 Output Parameters:

IMAGE

The output of the Split_Mask node is a list of processed images, each representing a segmented part of the original image based on the mask. These images are returned as tensors, making them ready for further processing or analysis. The output is crucial for workflows that require isolated image components for targeted modifications or enhancements.

🍒Split_Mask🔪蒙版元素分割 Usage Tips:

  • Ensure that the mask is correctly aligned with the image to achieve accurate segmentation results.
  • Adjust the padding parameter to avoid unwanted artifacts at the edges of the segmented areas.
  • Use the filtration_area parameter to filter out noise and focus on significant segments of the image.

🍒Split_Mask🔪蒙版元素分割 Common Errors and Solutions:

Mask is not a single-channel image

  • Explanation: The mask provided is not in the expected single-channel format, which is necessary for proper segmentation.
  • Solution: Convert the mask to a single-channel binary image before using it with the node.

Image and mask dimensions do not match

  • Explanation: The dimensions of the image and mask do not align, leading to incorrect segmentation.
  • Solution: Ensure that the image and mask have the same dimensions before processing.

Invalid padding value

  • Explanation: The padding value is outside the allowed range of 0 to 100.
  • Solution: Adjust the padding value to be within the specified range to avoid errors.

🍒Split_Mask🔪蒙版元素分割 Related Nodes

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

🍒Split_Mask🔪蒙版元素分割