Visit ComfyUI Online for ready-to-use ComfyUI environment
Create border masks for image edges with direction and pixel control for seamless blending in inpainting and edge refinement tasks.
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.
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.
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.
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.
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.
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.
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.
mask_padding
parameter.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.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.© Copyright 2024 RunComfy. All Rights Reserved.