ComfyUI  >  Nodes  >  ComfyUI_Mira >  Create Watermark Removal Mask

ComfyUI Node: Create Watermark Removal Mask

Class Name

CreateWatermarkRemovalMask

Category
Mira/Mask
Author
mirabarukaso (Account age: 1261 days)
Extension
ComfyUI_Mira
Latest Updated
7/25/2024
Github Stars
0.0K

How to Install ComfyUI_Mira

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

Create Watermark Removal Mask Description

Automate watermark removal by generating customizable masks at image corners for efficient watermark detection and elimination.

Create Watermark Removal Mask:

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.

Create Watermark Removal Mask Input Parameters:

C_Width

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.

C_Height

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

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

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.

Top_L

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.

Top_R

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.

Bottom_L

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.

Bottom_R

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.

EdgeToEdge

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

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.

Blur

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.

Create Watermark Removal Mask Output Parameters:

Mask

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.

Create Watermark Removal Mask Usage Tips:

  • Ensure that C_Width and C_Height match the dimensions of your image for accurate mask placement.
  • Use the EdgeToEdge parameter to avoid noise at the image borders, especially if the watermark is close to the edges.
  • Adjust Intenisity and Blur to find the right balance between mask strength and natural blending with the image.

Create Watermark Removal Mask Common Errors and Solutions:

"Mask dimensions exceed canvas size"

  • Explanation: This error occurs when Mask_W or Mask_H exceeds half of C_Width or C_Height.
  • Solution: Ensure that Mask_W is less than or equal to C_Width / 2 and Mask_H is less than or equal to C_Height / 2.

"Invalid boolean parameter"

  • Explanation: This error happens if the Top_L, Top_R, Bottom_L, or Bottom_R parameters are not set to a boolean value.
  • Solution: Make sure these parameters are set to either True or False.

"Blur value out of range"

  • Explanation: This error is triggered when the Blur parameter is set to a negative value.
  • Solution: Set the Blur parameter to 0 or a positive value to ensure proper mask creation.

Create Watermark Removal Mask Related Nodes

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