ComfyUI > Nodes > ComfyUI-LexTools > ImageFilterByIntScoreNode

ComfyUI Node: ImageFilterByIntScoreNode

Class Name

ImageFilterByIntScoreNode

Category
LexTools/ImageProcessing/Scores
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

ImageFilterByIntScoreNode Description

Filters images by integer score, retaining those meeting a threshold for efficient dataset management.

ImageFilterByIntScoreNode:

The ImageFilterByIntScoreNode is designed to streamline the process of filtering images based on an integer score. This node is particularly useful in scenarios where images are evaluated or ranked according to specific criteria, and only those meeting or exceeding a certain threshold are retained. By automating the filtering process, this node helps you efficiently manage large collections of images, ensuring that only the most relevant or high-quality images are selected for further processing or analysis. The node operates by comparing a given score against a predefined threshold, and it returns the image if the score meets or surpasses this threshold. This functionality is essential for tasks that require sorting or prioritizing images based on quantitative assessments, making it a valuable tool for AI artists and developers working with image datasets.

ImageFilterByIntScoreNode Input Parameters:

score

The score parameter is an integer value that represents the evaluation or ranking of an image. This score is compared against the threshold to determine whether the image should be retained or filtered out. The default value for this parameter is 0, and it does not have specified minimum or maximum limits. The score's impact on the node's execution is crucial, as it directly influences whether the image passes the filtering criteria.

threshold

The threshold parameter is an integer value that sets the minimum score required for an image to be retained. If the score is equal to or greater than this threshold, the image is returned; otherwise, it is filtered out. The default value for the threshold is 0, and like the score, it does not have specified minimum or maximum limits. Adjusting the threshold allows you to control the strictness of the filtering process, enabling you to fine-tune which images are considered acceptable based on their scores.

image

The image parameter is the actual image data that is subject to filtering. This parameter is required and does not have a default value, as it represents the core content being evaluated. The image's inclusion in the output depends on the comparison between the score and the threshold. If the score meets or exceeds the threshold, the image is returned; otherwise, it is not included in the output.

ImageFilterByIntScoreNode Output Parameters:

IMAGE

The IMAGE output parameter represents the image that has passed the filtering criteria. If the score is greater than or equal to the threshold, the original image is returned as the output. This output is crucial for workflows that require only images meeting specific quality or relevance standards, allowing you to focus on the most pertinent images for your project.

ImageFilterByIntScoreNode Usage Tips:

  • To effectively use this node, ensure that the score accurately reflects the criteria you are evaluating. This will help in setting an appropriate threshold for filtering images.
  • Experiment with different threshold values to find the optimal balance between retaining high-quality images and filtering out less relevant ones. This can be particularly useful when dealing with large datasets.

ImageFilterByIntScoreNode Common Errors and Solutions:

Image not returned

  • Explanation: This error occurs when the score is less than the threshold, resulting in the image not being included in the output.
  • Solution: Verify that the score is correctly calculated and adjust the threshold if necessary to ensure that images meeting your criteria are returned.

Invalid score or threshold

  • Explanation: If the score or threshold is not set correctly, it may lead to unexpected filtering results.
  • Solution: Double-check the values assigned to the score and threshold parameters to ensure they align with your filtering objectives.

ImageFilterByIntScoreNode 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.

ImageFilterByIntScoreNode