ComfyUI > Nodes > wlsh_nodes > Generate Border Mask (WLSH)

ComfyUI Node: Generate Border Mask (WLSH)

Class Name

Generate Border Mask (WLSH)

Category
WLSH Nodes/inpainting
Author
wallish77 (Account age: 2229days)
Extension
wlsh_nodes
Latest Updated
2024-06-19
Github Stars
0.08K

How to Install wlsh_nodes

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

Generate Border Mask (WLSH) Description

Create border masks for image edges with direction and pixel control for seamless blending in inpainting and edge refinement tasks.

Generate Border Mask (WLSH):

The Generate Border Mask (WLSH) node is designed to create a mask for the borders of an image, which is particularly useful for inpainting tasks. This node allows you to specify a direction and a number of pixels to generate a mask that can be used to extend or modify the edges of an image. By generating a border mask, you can seamlessly blend new content into the existing image, making it an essential tool for tasks such as outpainting or edge refinement. The node provides flexibility in terms of direction and mask padding, ensuring that you can tailor the mask to fit your specific needs.

Generate Border Mask (WLSH) Input Parameters:

image

This parameter accepts the input image that you want to process. The image should be in a format compatible with the node, typically an RGB or RGBA image. The image serves as the base upon which the border mask will be generated.

direction

This parameter specifies the direction in which the border mask will be generated. The available options are "left", "right", "up", and "down". The direction determines which edge of the image will be extended or modified by the mask.

pixels

This parameter defines the number of pixels to be added to the specified direction. It controls the thickness of the border mask. The value can range from 32 to 512, with a default value of 128. Adjusting this parameter allows you to control the extent of the border modification.

mask_padding

This parameter sets the padding for the mask, which helps in blending the new content with the existing image. The value can range from 0 to 64, with a default value of 12. Proper padding ensures a smooth transition between the original image and the newly added border.

Generate Border Mask (WLSH) Output Parameters:

IMAGE

The output image is the modified version of the input image with the specified border added. This image can be used for further processing or as a final output, depending on your workflow.

MASK

The output mask is a binary or grayscale mask that indicates the areas of the image that have been modified. This mask can be used in conjunction with other nodes or tools to refine the inpainting process or to apply additional effects to the border areas.

Generate Border Mask (WLSH) Usage Tips:

  • To achieve a seamless blend between the original image and the new border, experiment with different values for the mask_padding parameter.
  • Use the direction parameter to control which edge of the image you want to extend. This can be particularly useful for outpainting tasks where you need to add content to a specific side of the image.
  • Adjust the pixels parameter to control the thickness of the border. A higher value will add a thicker border, which can be useful for more significant modifications.

Generate Border Mask (WLSH) Common Errors and Solutions:

"Invalid direction specified"

  • Explanation: The direction parameter must be one of the following: "left", "right", "up", or "down".
  • Solution: Ensure that you select a valid direction from the available options.

"Pixels value out of range"

  • Explanation: The pixels parameter must be within the range of 32 to 512. - Solution: Adjust the pixels value to be within the specified range.

"Mask padding value out of range"

  • Explanation: The mask_padding parameter must be within the range of 0 to 64.
  • Solution: Adjust the mask_padding value to be within the specified range.

Generate Border Mask (WLSH) Related Nodes

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