Visit ComfyUI Online for ready-to-use ComfyUI environment
Compare image similarity using specified model for face recognition and image matching, simplifying comparison process for various applications.
The PM_Similarity node is designed to compare two images and determine their similarity based on a specified model. This node is particularly useful for tasks such as face recognition, where you need to measure how closely two images resemble each other. By leveraging advanced embedding techniques, the node computes a similarity score that quantifies the likeness between the main image and the comparison image. This score can be used in various applications, including identity verification, image matching, and more. The node simplifies the process of image comparison, making it accessible even to those without a deep technical background.
This parameter represents the primary image that you want to compare. It should be provided in the form of an image tensor. The main image serves as the reference point against which the comparison image will be evaluated.
This parameter is the image that you want to compare against the main image. Like the main_image, it should be provided as an image tensor. The comparison image is evaluated to determine its similarity to the main image.
This parameter specifies the model to be used for the similarity comparison. Currently, the only available option is "sim"
. This model uses advanced face recognition techniques to compute the similarity score between the two images.
This optional parameter allows you to add a prefix to the result string. If left empty, the result will simply be the similarity score rounded to two decimal places. If a prefix is provided, it will be appended to the score, separated by an underscore. This can be useful for organizing and categorizing results.
The output is a string that represents the similarity score between the main image and the comparison image. The score is a floating-point number rounded to two decimal places, indicating the degree of similarity. If a result_prefix is provided, the output will include this prefix followed by the score.
"Invalid image tensor format"
"Model not recognized"
"sim"
model is supported. Ensure that the model parameter is set to "sim"
."Error in computing similarity score"
© Copyright 2024 RunComfy. All Rights Reserved.