ComfyUI  >  Nodes  >  ComfyUI-DareMerge >  Quad Masker

ComfyUI Node: Quad Masker

Class Name

DM_QuadMasker

Category
DareMerge/mask
Author
54rt1n (Account age: 4079 days)
Extension
ComfyUI-DareMerge
Latest Updated
7/9/2024
Github Stars
0.1K

How to Install ComfyUI-DareMerge

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

Quad Masker Description

Create masks dividing images into four quadrants for independent manipulation, ideal for targeted artistic effects and transformations.

Quad Masker:

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.

Quad Masker Input Parameters:

model

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.

operation

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."

arg_one

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.

arg_two

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.

seed

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.

Quad Masker Output Parameters:

mask

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.

Quad Masker Usage Tips:

  • Experiment with different operation types to achieve various artistic effects. For example, use "random" for a more chaotic look and "gaussian" for a smoother transition.
  • Adjust the arg_one and arg_two parameters to fine-tune the masking effect. Small changes can significantly impact the final result.
  • Use the seed parameter to ensure reproducibility, especially when working on collaborative projects or when you need to recreate specific effects.

Quad Masker Common Errors and Solutions:

Unknown operation: <operation>

  • Explanation: This error occurs when an invalid operation type is specified.
  • Solution: Ensure that the operation parameter is set to one of the valid options: "random," "gaussian," "true," or "false."

Invalid model parameter

  • Explanation: This error occurs when the model parameter is not correctly specified or is incompatible with the QuadMasker node.
  • Solution: Verify that the model parameter is correctly set and compatible with the node. Ensure that the model is properly loaded and accessible.

Seed value out of range

  • Explanation: This error occurs when the seed parameter is set to a non-integer value or an out-of-range integer.
  • Solution: Ensure that the seed parameter is an integer within the acceptable range. Typically, any integer value is acceptable.

Arg_one or Arg_two out of range

  • Explanation: This error occurs when the arg_one or arg_two parameters are set to values outside the acceptable range (0.0 to 1.0).
  • Solution: Ensure that both arg_one and arg_two parameters are set to values within the range of 0.0 to 1.0. Adjust the values as needed to achieve the desired effect.

Quad Masker Related Nodes

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