Visit ComfyUI Online for ready-to-use ComfyUI environment
Automated image selection based on prompt matching using reward model for efficient filtering.
The LayerUtility: ImageRewardFilter node is designed to help you select the best images from a set based on a given prompt. This node leverages a reward model to score each image according to how well it matches the prompt, allowing you to filter out the most relevant images. This is particularly useful in scenarios where you generate multiple images and need to quickly identify the ones that best align with your creative vision or specific criteria. By automating the image selection process, this node saves you time and ensures that you focus on the highest-quality outputs.
This parameter expects a list of images that you want to filter. The images should be in a format compatible with the node, typically tensors representing the image data. The quality and relevance of the images you provide will directly impact the effectiveness of the filtering process.
The prompt is a string that describes what you are looking for in the images. It serves as the criteria against which each image will be scored. The prompt should be clear and specific to ensure that the reward model can accurately assess the relevance of each image. This parameter does not support multiline input.
This integer parameter specifies the number of top-scoring images you want to retain. The default value is 3, with a minimum value of 1 and a maximum value of 999999. Setting this value too high relative to the number of input images will result in an error, so it is important to choose a number that makes sense for your specific use case.
This output contains the list of images that scored the highest according to the reward model. These images are the ones that best match the given prompt and are retained for further use or analysis.
This output contains the list of images that did not make the cut. These images scored lower according to the reward model and are considered less relevant to the given prompt. You can review these images if needed, but they are generally not recommended for further use.
output_num
value that is appropriate for the number of input images to avoid errors.obsolete_images
output to understand why certain images were not selected, which can help you refine your prompt or image generation process.output_num
parameter is set to a value greater than the number of input images.output_num
parameter to be less than or equal to the number of input images.© Copyright 2024 RunComfy. All Rights Reserved.