cubiq / ComfyUI_FaceAnalysis

Extension for ComfyUI to evaluate the similarity between two faces
Apache License 2.0
313 stars 40 forks source link

Great node, hope to provide int value of EUC. #1

Closed Datou closed 7 months ago

Datou commented 7 months ago

It would be more convenient if the pictures and ECU values ​​could be displayed separately.

cubiq commented 7 months ago

I'll export the Float values with an option to skip the image generation.

oafx commented 7 months ago

cubiq you're the man

ffdown commented 7 months ago

I've tried it this way and that, but I still don't understand what it's for. Can you describe the purpose of this node more clearly?

cubiq commented 7 months ago

I've tried it this way and that, but I still don't understand what it's for. Can you describe the purpose of this node more clearly?

it tells you how close a generated face is to a reference. It's useful to evaluate different face models, different parameters and different checkpoints.

One checkpoint for example might be better with one ethnicity instead of another or with females... and so on.

It's a diagnostic tool, not really meant for the average user.

Datou commented 7 months ago

I've tried it this way and that, but I still don't understand what it's for. Can you describe the purpose of this node more clearly?

Suppose you are providing avatar generation services. With the help of ipadapter or instantid, the diffusion model generates an avatar picture based on the user's photo. The ECU value can help you judge whether the generated face image is like the user's real face. If ECU<3 It means they are very similar.

cubiq commented 7 months ago

you can now export just the float value or even a CSV

image

ffdown commented 7 months ago

I've tried it this way and that, but I still don't understand what it's for. Can you describe the purpose of this node more clearly?

Suppose you are providing avatar generation services. With the help of ipadapter or instantid, the diffusion model generates an avatar picture based on the user's photo. The ECU value can help you judge whether the generated face image is like the user's real face. If ECU<3 It means they are very similar.

If based on this analysis, adjustments could be made, it would be much more useful =) Again, I just put in pure photos of my face and it never went below 4 =)) Turns out I don't look like myself =)

cubiq commented 7 months ago

first, it's a relative analysis tool, not absolute. second, it checks the embeds of a specific picture. you by profile and you from front are completely different embeds for the model. check my latest video to see how to use it and why it's helpful https://www.youtube.com/watch?v=wMLiGhogOPE