ysy31415 / unipaint

Code Implementation of "Uni-paint: A Unified Framework for Multimodal Image Inpainting with Pretrained Diffusion Model"
Apache License 2.0
107 stars 4 forks source link

About evaluation metric #8

Closed Cameltr closed 4 months ago

Cameltr commented 5 months ago
(3) Image-to-image alignment (I2I): evaluates the image-image CLIP similarity in exemplar-driven inpainting.

Hello, how do I compute the I2I metric?

ysy31415 commented 5 months ago

hi, you can use CLIP image model to extract two image embeddings from two images (output and exemplar), then compute their cosine similarity.