Visit ComfyUI Online for ready-to-use ComfyUI environment
Apply Gaussian blur for smooth transitions and softened edges in images, enhancing visual quality and artistic appeal.
The Blur (mtb) node is designed to apply a Gaussian blur to an image, which is a common technique used in image processing to reduce noise and detail. This node is particularly useful for AI artists who want to create smooth transitions and soften edges in their images. By leveraging Gaussian filters, the node ensures that the blurring effect is evenly distributed, resulting in a natural and aesthetically pleasing outcome. The main goal of this node is to provide a flexible and efficient way to blur images, enhancing the visual quality and artistic appeal of your work.
The image
parameter is the input image that you want to apply the Gaussian blur to. It should be provided in the form of a tensor. This parameter is required for the node to function.
The sigmaX
parameter controls the standard deviation of the Gaussian filter in the horizontal direction. A higher value results in a stronger blur effect. The default value is 3.0, with a minimum of 0.0 and a maximum of 200.0. Adjusting this parameter allows you to fine-tune the blurring effect to your preference.
The sigmaY
parameter controls the standard deviation of the Gaussian filter in the vertical direction. Similar to sigmaX
, a higher value results in a stronger blur effect. The default value is 3.0, with a minimum of 0.0 and a maximum of 200.0. This parameter provides additional control over the blurring effect, allowing for anisotropic blurring if desired.
The sigmasX
parameter is an optional list of standard deviations for the Gaussian filter in the horizontal direction, applied to each image in a batch individually. If provided, it overrides the sigmaX
parameter. This allows for more granular control over the blurring effect for each image in a batch.
The sigmasY
parameter is an optional list of standard deviations for the Gaussian filter in the vertical direction, applied to each image in a batch individually. If provided, it overrides the sigmaY
parameter. This allows for more granular control over the blurring effect for each image in a batch.
The output parameter IMAGE
is the blurred version of the input image. This output retains the same dimensions and format as the input image but with the applied Gaussian blur effect. The result is a smoother, less detailed image that can be used for various artistic and processing purposes.
sigmaX
and sigmaY
and gradually increase them until you reach the desired level of smoothness.sigmasX
and sigmasY
parameters to specify individual standard deviations for each image in a batch.sigmaX
and sigmaY
to create unique artistic effects, such as directional blurring.ValueError: SigmasX must have same length as image, sigmasX is <length> but the batch size is <batch_size>
sigmasX
list does not match the number of images in the batch.sigmasX
list has the same number of elements as the batch size of the input image.ValueError: SigmasY must have same length as image, sigmasY is <length> but the batch size is <batch_size>
sigmasY
list does not match the number of images in the batch.sigmasY
list has the same number of elements as the batch size of the input image.TypeError: image must be a torch.Tensor
RuntimeError: Expected 4-dimensional input for 4-dimensional weight [<dimensions>]
© Copyright 2024 RunComfy. All Rights Reserved.