Visit ComfyUI Online for ready-to-use ComfyUI environment
Create masks dividing images into four quadrants for independent manipulation, ideal for targeted artistic effects and transformations.
The DM_QuadMasker node is designed to create masks that divide an image or tensor into four quadrants, each of which can be manipulated independently. This node is particularly useful for AI artists who want to apply different effects or transformations to specific sections of an image. By leveraging the QuadMasker, you can achieve more complex and nuanced artistic effects, enhancing the overall quality and creativity of your work. The primary goal of this node is to provide a straightforward yet powerful way to segment and mask images, allowing for targeted modifications and greater control over the artistic process.
This parameter specifies the model to which the mask will be applied. It is essential for defining the scope and context of the masking operation. The model parameter ensures that the mask is correctly aligned and applied to the intended image or tensor. There are no specific minimum or maximum values for this parameter, as it depends on the model being used.
The operation parameter determines the type of masking operation to be performed. Options include "random," "gaussian," "true," and "false." Each option applies a different masking technique: "random" uses Bernoulli noise, "gaussian" applies Gaussian noise, "true" creates a mask of ones, and "false" creates a mask of zeros. This parameter significantly impacts the resulting mask and, consequently, the final image. The default value is "true."
This parameter is used in conjunction with the operation parameter to fine-tune the masking process. For example, in the "random" operation, arg_one represents the probability of a pixel being masked. In the "gaussian" operation, it represents the mean of the Gaussian distribution. The value of arg_one can range from 0.0 to 1.0, with a default value of 0.0.
Similar to arg_one, this parameter is used to further refine the masking operation. In the "gaussian" operation, arg_two represents the standard deviation of the Gaussian distribution. This parameter allows for more precise control over the masking effect. The value of arg_two can range from 0.0 to 1.0, with a default value of 0.0.
The seed parameter is used to initialize the random number generator, ensuring reproducibility of the masking operation. By setting a specific seed value, you can achieve consistent results across different runs. The default value is 1, and it can be any integer.
The mask output parameter represents the final mask generated by the QuadMasker node. This mask is a tensor that divides the image into four quadrants, each of which can be independently manipulated. The mask is essential for applying targeted effects and transformations to specific sections of the image, allowing for greater artistic control and creativity.
<operation>
© Copyright 2024 RunComfy. All Rights Reserved.