ComfyUI Node: Box Blur Mask

Class Name

blur

Category
antrobots-ComfyUI-nodepack/image-handling
Author
antrobot (Account age: 3193days)
Extension
antrobots ComfyUI Nodepack
Latest Updated
2025-04-02
Github Stars
0.02K

How to Install antrobots ComfyUI Nodepack

Install this extension via the ComfyUI Manager by searching for antrobots ComfyUI Nodepack
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter antrobots ComfyUI Nodepack 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Box Blur Mask Description

Apply Gaussian blur effect to images for smooth appearance, noise reduction, and enhanced visual quality.

Box Blur Mask:

The blur node is designed to apply a Gaussian blur effect to an image, which is a common technique used in image processing to reduce noise and detail. This node is particularly useful for creating a smooth, soft appearance in images, which can be beneficial in various artistic and design contexts. By using a Gaussian kernel, the node ensures that the blurring effect is evenly distributed across the image, resulting in a natural and aesthetically pleasing outcome. The primary goal of this node is to enhance the visual quality of images by softening harsh edges and blending colors seamlessly, making it an essential tool for AI artists looking to refine their digital artwork.

Box Blur Mask Input Parameters:

image

The image parameter is a tensor representing the image to be blurred. It is crucial as it serves as the input data on which the blur effect will be applied. The image should be in a format compatible with PyTorch tensors, typically with dimensions representing batch size, height, width, and channels.

Box Blur Mask_radius

The blur_radius parameter determines the size of the area around each pixel that will be considered when applying the blur effect. A larger radius results in a more pronounced blur, as more surrounding pixels are averaged. The minimum value is 0, which means no blurring is applied, while the maximum value depends on the specific requirements of the image and the desired effect. The default value is typically set to a moderate level to achieve a balanced blur effect.

sigma

The sigma parameter controls the standard deviation of the Gaussian distribution used in the blur process. It affects the spread of the blur effect; a higher sigma value results in a more significant blur. The minimum value is usually a small positive number, ensuring some level of blurring, while the maximum value can be adjusted based on the desired intensity of the blur. The default value is often set to provide a subtle yet noticeable blur effect.

Box Blur Mask Output Parameters:

Box Blur Maskred_image

The blurred_image is the output tensor that contains the image after the blur effect has been applied. This output is crucial as it represents the final result of the blurring process, which can be used for further processing or as a final product in digital artwork. The blurred image maintains the same dimensions as the input image, ensuring compatibility with subsequent processing steps.

Box Blur Mask Usage Tips:

  • Experiment with different blur_radius and sigma values to achieve the desired level of smoothness in your images. A smaller radius and sigma can be used for subtle effects, while larger values can create a more dramatic blur.
  • Use the blur node to soften backgrounds or create depth in your images by selectively applying the blur effect to specific areas, enhancing the focus on the main subject.

Box Blur Mask Common Errors and Solutions:

"RuntimeError: Expected 4-dimensional input for 4-dimensional weight"

  • Explanation: This error occurs when the input image tensor does not have the expected dimensions, typically due to incorrect batch size or channel configuration.
  • Solution: Ensure that your input image tensor is correctly formatted with dimensions (batch size, height, width, channels) before passing it to the blur node.

"ValueError: Kernel size must be a positive odd integer"

  • Explanation: This error arises when the calculated kernel size, based on the blur_radius, is not a positive odd integer, which is required for the Gaussian kernel.
  • Solution: Verify that the blur_radius is set to a positive integer value, ensuring that the resulting kernel size is a valid odd number.

Box Blur Mask Related Nodes

Go back to the extension to check out more related nodes.
antrobots ComfyUI Nodepack
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.