mseitzer / pytorch-fid

Compute FID scores with PyTorch.
Apache License 2.0
3.22k stars 497 forks source link

The calculation of fid is too slow. #83

Open liuchanglab opened 2 years ago

liuchanglab commented 2 years ago

Thanks for sharing.

The calculation of fid is too slow. The calculation for linalg.sqrtm(sigma1.dot(sigma2), disp=False) takes several minutes. How to speed it?

mseitzer commented 1 year ago

How many images do you use to compute FID? This line becomes slower with the number of images you use, but unless you use a really large number of images, this should not be an issue.

geknow commented 4 months ago

How many images do you use to compute FID? This line becomes slower with the number of images you use, but unless you use a really large number of images, this should not be an issue.

Should I divide the FID score, I have calculated, by the number of images to get the average value? 1000 images and get scores of 70.