ComfyUI  >  Nodes  >  ComfyUI-post-processing-nodes >  KuwaharaBlur

ComfyUI Node: KuwaharaBlur

Class Name

KuwaharaBlur

Category
postprocessing/Filters
Author
EllangoK (Account age: 2833 days)
Extension
ComfyUI-post-processing-nodes
Latest Updated
8/9/2024
Github Stars
0.2K

How to Install ComfyUI-post-processing-nodes

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

KuwaharaBlur Description

Specialized blur filter enhancing image quality by reducing noise, preserving edges, and smoothing textures for AI artists.

KuwaharaBlur:

The KuwaharaBlur node is a post-processing filter designed to apply a specialized blur effect to images, enhancing their visual quality by reducing noise while preserving edges. This node is particularly useful for AI artists looking to smooth out textures in their artwork without losing important details. The Kuwahara filter works by dividing the image into overlapping regions and calculating the mean and variance within these regions to determine the optimal blur. This method ensures that the blur is applied more strongly in areas with less detail and less in areas with more detail, resulting in a more aesthetically pleasing image. The node supports two methods for calculating the blur: mean and Gaussian, providing flexibility in the type of smoothing effect applied.

KuwaharaBlur Input Parameters:

image

This parameter represents the input image to which the Kuwahara blur will be applied. The image should be in a format compatible with the node, typically a multi-dimensional array representing pixel values.

blur_radius

The blur_radius parameter controls the size of the region around each pixel that the filter will consider when applying the blur. A larger radius will result in a stronger blur effect, while a smaller radius will preserve more detail. The value can range from 0 to 31, with a default value of 3. Setting the radius to 0 will effectively disable the blur.

method

The method parameter determines the algorithm used to calculate the blur. It can be set to either "mean" or "gaussian". The "mean" method applies a simple average blur, while the "gaussian" method uses a Gaussian distribution to apply a more natural-looking blur. This parameter allows you to choose the type of smoothing effect that best suits your needs.

KuwaharaBlur Output Parameters:

image

The output is the processed image with the Kuwahara blur applied. This image will have reduced noise and smoothed textures while preserving important edges and details. The output format will be the same as the input image, typically a multi-dimensional array representing pixel values.

KuwaharaBlur Usage Tips:

  • For subtle smoothing effects, use a smaller blur_radius value, such as 3 or 5, to maintain more detail in the image.
  • Experiment with both the "mean" and "gaussian" methods to see which provides the best results for your specific artwork. The "gaussian" method often produces more natural-looking results.
  • If you want to preserve fine details while reducing noise, start with a lower blur_radius and gradually increase it until you achieve the desired effect.

KuwaharaBlur Common Errors and Solutions:

Image shape mismatch

  • Explanation: This error occurs when the input image does not have the expected shape, such as missing channels or incorrect dimensions.
  • Solution: Ensure that the input image is a multi-dimensional array with the correct shape, typically (batch_size, height, width, channels).

Invalid blur_radius value

  • Explanation: This error occurs when the blur_radius value is set outside the allowed range of 0 to 31. - Solution: Set the blur_radius value within the valid range. The default value is 3, and you can adjust it as needed within the range of 0 to 31.

Unsupported method

  • Explanation: This error occurs when the method parameter is set to a value other than "mean" or "gaussian".
  • Solution: Ensure that the method parameter is set to either "mean" or "gaussian". These are the only supported methods for calculating the blur.

KuwaharaBlur Related Nodes

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