Visit ComfyUI Online for ready-to-use ComfyUI environment
Automate watermark removal by generating customizable masks at image corners for efficient watermark detection and elimination.
The CreateWatermarkRemovalMask
node is designed to facilitate the creation of masks specifically for the purpose of watermark detection and removal in images. This node generates multiple masks at the corners of an image, which can then be used to identify and eliminate watermarks. By allowing you to define the dimensions and positions of these masks, as well as their intensity and blur levels, this node provides a flexible and powerful tool for enhancing the quality of your images by removing unwanted watermarks. The main goal of this node is to automate the process of watermark removal, making it easier and more efficient for you to clean up your images without manual intervention.
This parameter defines the width of the canvas on which the masks will be created. It determines the horizontal extent of the area where watermark removal masks will be applied. The value should be set according to the width of the image you are working with.
This parameter specifies the height of the canvas. Similar to C_Width
, it sets the vertical extent of the area for mask application. Ensure this value matches the height of your image for optimal results.
Mask_W
sets the width of each individual mask. The maximum value for this parameter is half of the canvas width (C_Width / 2
). This ensures that the masks are appropriately sized for effective watermark removal without overlapping excessively.
Mask_H
determines the height of each mask. The maximum value is half of the canvas height (C_Height / 2
). This parameter helps in creating masks that are proportionate to the image dimensions.
A boolean parameter that, when set to True
, creates a mask at the top-left corner of the canvas. This allows for targeted watermark removal in this specific area.
A boolean parameter that, when set to True
, creates a mask at the top-right corner of the canvas. Use this to focus on watermark removal in the top-right section of your image.
A boolean parameter that, when set to True
, creates a mask at the bottom-left corner of the canvas. This is useful for addressing watermarks located in the bottom-left area.
A boolean parameter that, when set to True
, creates a mask at the bottom-right corner of the canvas. This helps in removing watermarks from the bottom-right part of the image.
This parameter preserves a specified number of pixels at the outermost edges of the image to prevent image noise. Setting this to 0
will create borderless masks, while higher values will leave a margin around the edges.
Intenisity
controls the intensity of the mask, with a value of 1
creating a solid mask. Adjust this parameter to set the strength of the mask applied for watermark removal.
This parameter defines the amount of blur applied to the mask. A value of 0
results in a solid mask, while higher values will create a more blurred effect, which can help in blending the mask more naturally with the image.
The output is a new mask created with the defined canvas and parameters. This mask can be used for subsequent watermark detection and removal processes, providing a tailored solution based on the input settings.
C_Width
and C_Height
match the dimensions of your image for accurate mask placement.EdgeToEdge
parameter to avoid noise at the image borders, especially if the watermark is close to the edges.Intenisity
and Blur
to find the right balance between mask strength and natural blending with the image.Mask_W
or Mask_H
exceeds half of C_Width
or C_Height
.Mask_W
is less than or equal to C_Width / 2
and Mask_H
is less than or equal to C_Height / 2
.Top_L
, Top_R
, Bottom_L
, or Bottom_R
parameters are not set to a boolean value.True
or False
.Blur
parameter is set to a negative value.Blur
parameter to 0
or a positive value to ensure proper mask creation.© Copyright 2024 RunComfy. All Rights Reserved.