ComfyUI  >  Nodes  >  ComfyUI-sonar >  SonarPreviewFilter

ComfyUI Node: SonarPreviewFilter

Class Name

SonarPreviewFilter

Category
advanced/noise
Author
blepping (Account age: 176 days)
Extension
ComfyUI-sonar
Latest Updated
5/22/2024
Github Stars
0.0K

How to Install ComfyUI-sonar

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

SonarPreviewFilter Description

Generate visual previews of sonar power filter effects for AI art projects, aiding in parameter adjustments and artistic outcomes.

SonarPreviewFilter:

The SonarPreviewFilter node is designed to generate a preview of the sonar power filter's effect on an image. This node allows you to visualize the impact of various filter settings before applying them to your final output, making it easier to fine-tune parameters and achieve the desired artistic effect. By providing a customizable preview, it helps you save time and resources by enabling quick iterations and adjustments. The main goal of this node is to offer a user-friendly interface for previewing and tweaking sonar power filter settings, ensuring that you can achieve the best possible results in your AI art projects.

SonarPreviewFilter Input Parameters:

sonar_power_filter

This parameter represents the sonar power filter that you want to preview. It is a complex object that contains the filter's settings and behavior. By providing this filter, the node can generate a preview based on its current configuration. There are no specific minimum or maximum values for this parameter, as it is an object rather than a scalar value.

filter_gain

This parameter controls the gain applied to the filter. It adjusts the intensity of the filter effect, allowing you to increase or decrease its impact on the image. The default value is 1/3. Adjusting this parameter can help you achieve the desired balance between the original image and the filtered effect. The minimum value is 0, and the maximum value is 1.

kernel_gain

This parameter controls the gain applied to the filter's kernel. Similar to filter_gain, it adjusts the intensity of the kernel effect, which can influence the overall appearance of the filtered image. The default value is 1/3. By fine-tuning this parameter, you can enhance or soften the filter's impact. The minimum value is 0, and the maximum value is 1.

norm_factor

This parameter represents the normalization factor applied to the filter. It ensures that the filtered image maintains a consistent intensity level, preventing it from becoming too bright or too dark. The default value is 1.0. Adjusting this parameter can help you achieve a balanced and visually appealing result. The minimum value is 0, and there is no specific maximum value.

preview_size

This parameter defines the size of the preview image. It is specified as a string in the format "widthxheight" (e.g., "256x256"). The default value is "256x256". By adjusting this parameter, you can control the resolution of the preview, allowing you to see more or less detail depending on your needs. There are no specific minimum or maximum values, but common sizes range from 128x128 to 512x512.

SonarPreviewFilter Output Parameters:

preview_image

This parameter represents the generated preview image. It is a visual representation of the sonar power filter's effect based on the provided input parameters. The preview image allows you to see how the filter settings will impact your final output, making it easier to make adjustments and achieve the desired result. The output is typically an image file or an image object that can be displayed or saved.

SonarPreviewFilter Usage Tips:

  • Experiment with different filter_gain and kernel_gain values to find the perfect balance for your image. Start with the default values and make small adjustments to see how they affect the preview.
  • Use the preview_size parameter to generate a larger or smaller preview image, depending on your needs. A larger preview can help you see more detail, while a smaller preview can be generated more quickly.
  • Adjust the norm_factor to ensure that your preview image maintains a consistent intensity level. This can help prevent the image from becoming too bright or too dark.

SonarPreviewFilter Common Errors and Solutions:

"Invalid preview size format"

  • Explanation: The preview_size parameter is not in the correct format (e.g., "256x256").
  • Solution: Ensure that the preview_size parameter is specified as a string in the format "widthxheight" (e.g., "256x256").

"Filter object is not provided"

  • Explanation: The sonar_power_filter parameter is missing or not correctly specified.
  • Solution: Provide a valid sonar power filter object as the sonar_power_filter parameter.

"Normalization factor out of range"

  • Explanation: The norm_factor parameter is set to a value that is too low or too high.
  • Solution: Adjust the norm_factor parameter to a reasonable value, typically between 0 and 2, to ensure a balanced preview image.

SonarPreviewFilter Related Nodes

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