ComfyUI > Nodes > ImageReward > ImageRewardScore

ComfyUI Node: ImageRewardScore

Class Name

ImageRewardScore

Category
ImageReward
Author
ZaneA (Account age: 5797days)
Extension
ImageReward
Latest Updated
2025-02-24
Github Stars
0.03K

How to Install ImageReward

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

ImageRewardScore Description

Evaluate and score images based on textual prompts using image reward model for AI artists to assess image relevance and quality.

ImageRewardScore:

The ImageRewardScore node is designed to evaluate and score images based on a given textual prompt using a specified image reward model. This node is particularly useful for AI artists who want to assess how well a set of images aligns with a descriptive prompt, providing a quantitative measure of image relevance or quality. By leveraging a model that understands both visual and textual data, this node helps in determining the effectiveness of image generation or selection processes, ensuring that the images produced or chosen are closely aligned with the intended creative vision. The scoring process involves converting images into a format suitable for analysis and then using the model to compute a score that reflects the degree of alignment with the prompt.

ImageRewardScore Input Parameters:

model

The model parameter specifies the image reward model to be used for scoring the images. This model is responsible for interpreting the prompt and evaluating the images against it. The choice of model can significantly impact the scoring results, as different models may have varying capabilities in understanding and correlating visual and textual data. It is crucial to select a model that is well-suited for the specific type of images and prompts you are working with.

prompt

The prompt parameter is a string input that provides the textual description or criteria against which the images will be evaluated. This prompt should be detailed and descriptive enough to guide the model in assessing the images accurately. The prompt can be multiline, allowing for complex and nuanced descriptions that capture the essence of what the images should represent or convey.

images

The images parameter consists of the set of images to be scored. These images are evaluated by the model in the context of the provided prompt. The images should be in a format that the node can process, typically as tensors that can be converted into a format suitable for the model's analysis. The quality and content of these images will directly influence the scoring outcome, so it is important to ensure they are relevant to the prompt.

ImageRewardScore Output Parameters:

SCORE_FLOAT

The SCORE_FLOAT output is a floating-point number representing the average score of the images in relation to the prompt. This score provides a quantitative measure of how well the images align with the given description, with higher scores indicating better alignment. This output is useful for quickly assessing the overall quality or relevance of a batch of images.

SCORE_STRING

The SCORE_STRING output is a string representation of the SCORE_FLOAT value. This output serves as a convenient way to display or log the score in textual form, making it easier to include in reports or user interfaces where numerical data needs to be presented as text.

ImageRewardScore Usage Tips:

  • Ensure that the prompt is clear and descriptive to guide the model effectively in scoring the images.
  • Choose a model that is well-suited for the type of images and prompts you are working with to achieve accurate scoring results.
  • Use the SCORE_FLOAT output for precise numerical analysis and the SCORE_STRING for easy display or logging purposes.

ImageRewardScore Common Errors and Solutions:

Model not found

  • Explanation: This error occurs when the specified model cannot be located or loaded.
  • Solution: Verify that the model name is correct and that the model is properly installed and accessible in your environment.

Invalid image format

  • Explanation: This error arises when the images provided are not in a format that the node can process.
  • Solution: Ensure that the images are in a compatible format, typically as tensors that can be converted to PIL images for analysis.

Prompt is empty

  • Explanation: This error occurs when the prompt parameter is left empty or undefined.
  • Solution: Provide a valid and descriptive prompt to guide the model in scoring the images accurately.

ImageRewardScore Related Nodes

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