Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance image clarity and detail with a sharpening filter for AI artists to emphasize edges and fine details.
The Sharpen (mtb) node is designed to enhance the clarity and detail of an image by applying a sharpening filter using a Gaussian kernel. This node is particularly useful for AI artists who want to emphasize edges and fine details in their images, making them appear crisper and more defined. The sharpening process involves adjusting the intensity of the pixels based on their surrounding pixels, which helps to highlight transitions and contours within the image. By controlling various parameters, you can fine-tune the sharpening effect to achieve the desired level of detail and contrast, making your images stand out with improved visual sharpness.
This parameter represents the input image that you want to sharpen. The image should be provided as a tensor, which is a multi-dimensional array commonly used in deep learning frameworks.
This parameter controls the radius of the sharpening kernel. A larger radius will affect a broader area around each pixel, resulting in a more pronounced sharpening effect. The value must be an integer between 1 and 31, with a default value of 1.
This parameter defines the standard deviation of the Gaussian function in the x-direction. It influences the spread of the kernel in the horizontal direction, affecting how the sharpening is applied. The value must be a float between 0.1 and 10.0, with a default value of 1.0.
This parameter defines the standard deviation of the Gaussian function in the y-direction. It influences the spread of the kernel in the vertical direction, affecting how the sharpening is applied. The value must be a float between 0.1 and 10.0, with a default value of 1.0.
This parameter controls the intensity of the sharpening effect. A higher alpha value will result in a stronger sharpening effect, making edges and details more pronounced. The value must be a float between 0.0 and 5.0, with a default value of 1.0.
The output is the sharpened image, provided as a tensor. This image will have enhanced edges and details, making it appear crisper and more defined compared to the original input image. The sharpening effect is applied based on the specified input parameters, allowing for customizable levels of detail enhancement.
alpha
value and a smaller sharpen_radius
.sharpen_radius
and alpha
values.sigma_x
and sigma_y
to control the spread of the sharpening effect in different directions, which can help in achieving a more balanced sharpening.{len(sigmasX)}
but the batch size is {image.size(0)}
sigmasX
array does not match the batch size of the input image.sigmasX
array has the same number of elements as the batch size of the input image.sharpen_radius
is set to a value that is too large for the given image dimensions.sharpen_radius
value to ensure it is within the acceptable range for the image dimensions.© Copyright 2024 RunComfy. All Rights Reserved.