Visit ComfyUI Online for ready-to-use ComfyUI environment
Versatile node for modifying masks with various operations for AI artists to fine-tune masks for image processing tasks.
DM_MaskEdit is a versatile node designed to modify and manipulate masks in various ways, providing a range of operations to achieve desired effects. This node is particularly useful for AI artists who need to fine-tune masks for image processing tasks. By offering multiple operations such as random, gaussian, true, and false, DM_MaskEdit allows you to apply different types of modifications to your masks. Additionally, it provides parameters to control the intensity and nature of these modifications, making it a powerful tool for customizing masks to fit specific artistic needs. Whether you are looking to add subtle variations or make significant changes, DM_MaskEdit offers the flexibility and control required to achieve your creative vision.
This parameter represents the mask that you want to edit. It is a required input and serves as the base upon which all operations will be performed. The mask should be in the format specified by the MODEL_MASK type.
This parameter allows you to choose the type of operation to apply to the mask. The available options are "random", "gaussian", "true", and "false". The default value is "random". Each operation type modifies the mask in a different way, providing various effects and transformations.
This is a floating-point parameter that controls the first argument for the chosen operation. It has a default value of 0.0 and can range from 0.0 to 1.0, with a step size of 0.01. This parameter allows you to fine-tune the effect of the operation on the mask.
Similar to arg_one, this is another floating-point parameter that controls the second argument for the chosen operation. It also has a default value of 0.0 and can range from 0.0 to 1.0, with a step size of 0.01. This parameter provides additional control over the mask modification process.
This integer parameter sets the seed for random operations, ensuring reproducibility. It has a default value of 1 and can range from 0 to 99999999999. By setting the seed, you can achieve consistent results across different runs.
This string parameter allows you to specify the layers to which the mask operation should be applied. It supports multiline input, enabling you to list multiple layers if needed. This parameter provides flexibility in targeting specific parts of the mask for modification.
The output of the DM_MaskEdit node is a modified mask in the MODEL_MASK format. This output reflects the changes made based on the selected operation and input parameters. The modified mask can then be used in subsequent image processing tasks or further edited as needed.
© Copyright 2024 RunComfy. All Rights Reserved.