ComfyUI > Nodes > ComfyUI-LexTools > ImageFilterByFloatScoreNode

ComfyUI Node: ImageFilterByFloatScoreNode

Class Name

ImageFilterByFloatScoreNode

Category
LexTools/ImageProcessing/Filtering
Author
SOELexicon (Account age: 4757days)
Extension
ComfyUI-LexTools
Latest Updated
2025-03-28
Github Stars
0.03K

How to Install ComfyUI-LexTools

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

ImageFilterByFloatScoreNode Description

Filters images by floating-point score, retaining those meeting a specified threshold for quality.

ImageFilterByFloatScoreNode:

The ImageFilterByFloatScoreNode is designed to process images based on a floating-point score, allowing you to filter images by comparing their scores against a specified threshold. This node is particularly useful in scenarios where you need to evaluate images based on certain criteria, such as aesthetic quality or other quantitative measures, and decide whether to keep or discard them. By setting a threshold, you can automate the decision-making process, ensuring that only images meeting or exceeding the desired score are retained. This node enhances workflow efficiency by providing a straightforward mechanism to filter images, making it an essential tool for AI artists who need to manage large collections of images and maintain high-quality standards.

ImageFilterByFloatScoreNode Input Parameters:

image

The image parameter represents the image that you want to evaluate and potentially filter. This input is crucial as it is the subject of the filtering process. The node will assess this image based on the provided score and threshold to determine whether it should be passed or filtered out.

score

The score parameter is a floating-point value that represents the evaluation score of the image. This score is compared against the threshold to decide the image's fate. The score can range from -100.0 to 100.0, with a default value of 0.0. A higher score typically indicates a better evaluation of the image according to the criteria you have set.

threshold

The threshold parameter is a floating-point value that sets the minimum score an image must achieve to pass the filter. It acts as a benchmark for the image's score. The threshold can also range from -100.0 to 100.0, with a default value of 5.0. By adjusting this value, you can control the strictness of the filtering process, allowing only images that meet or exceed this score to pass through.

show_on_node

The show_on_node parameter is a boolean that determines whether the result of the filtering process should be displayed on the node interface. When set to True, the node will provide a textual output indicating whether the image passed or was filtered based on the score and threshold comparison. The default value is False, meaning the result will not be shown unless explicitly requested.

ImageFilterByFloatScoreNode Output Parameters:

IMAGE

The IMAGE output parameter provides the resulting image after the filtering process. If the image's score meets or exceeds the threshold, the original image is returned. Otherwise, a blank image (filled with zeros) is returned, indicating that the image did not pass the filter. This output allows you to easily identify which images have been filtered out.

FLOAT

The FLOAT output parameter returns the score of the image after the filtering process. This output is useful for logging or further processing, as it provides a quantitative measure of the image's evaluation. It allows you to track the scores of images that have been processed, regardless of whether they passed the filter.

ImageFilterByFloatScoreNode Usage Tips:

  • Adjust the threshold parameter to fine-tune the filtering process according to your specific needs. A higher threshold will result in stricter filtering, allowing only higher-scoring images to pass.
  • Use the show_on_node parameter to display the filtering results directly on the node interface, which can be helpful for debugging or when you need immediate feedback on the filtering process.

ImageFilterByFloatScoreNode Common Errors and Solutions:

Error filtering image: <error_message>

  • Explanation: This error occurs when there is an issue during the filtering process, possibly due to invalid input types or unexpected values.
  • Solution: Ensure that all input parameters are correctly set and within their valid ranges. Double-check that the image input is a valid image and that score and threshold are floating-point numbers within the specified limits.

ImageFilterByFloatScoreNode Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-LexTools
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 Models, enabling artists to harness the latest AI tools to create incredible art.

ImageFilterByFloatScoreNode