GaParmar / clean-fid

PyTorch - FID calculation with proper image resizing and quantization steps [CVPR 2022]
https://www.cs.cmu.edu/~clean-fid/
MIT License
894 stars 68 forks source link

FID scores of many generated images from a single input image #61

Open Ashh-Z opened 1 month ago

Ashh-Z commented 1 month ago

Hi, thanks for your work, I wanted to calculate the FID score between multiple generations of the same input image. I setup my directories such that directory 1 contains n generated image and directory 2 contains n copies of the input image. Is this ok way to go about this ? I ran into the following error while doing this : RuntimeWarning: invalid value encountered in scalar divide arg2 = norm(X.dot(X) - A, 'fro')**2 / norm(A, 'fro')

Thank you

GaParmar commented 1 week ago

can you verify that there are indeed more than 1 image in each of the generated folders? Based on the error message, it looks like there might be just 1 image in one of the folders