Open magichero23 opened 11 months ago
Sure. How to do it? Isn’t there no prompt for the image-to-image task?hope to reply,thanks
You can compare full images. For example, there are 5 images (different left hands) and scores are listed below:
HPSv2: 26.32
HPSv2: 26.25
HPSv2: 26.44
HPSv2: 26.32
HPSv2: 26.42
The score somehow reflects the difference in visual quality.
The prompt is "A young adult Japanese delinquent with a pompadour hairstyle named Jotaro Kujo stands in an action pose ready for a fight on the cover of a manga issue.", in case you want to reproduce it.
>>> import hpsv2
>>> result = hpsv2.score(["1.png", "2.png", "3.png", "4.png", "5.png"], "A young adult Japanese delinquent with a pompadour hairstyle named Jotaro Kujo stands in an action pose ready for a fight on the cover of a manga issue.")
>>> result
[0.2632, 0.2625, 0.2644, 0.2632, 0.2642]
Sure.