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

Add code to compute FID/KID between a model and a folder #26

Closed ChenWu98 closed 2 years ago

ChenWu98 commented 2 years ago

This PR adds code to compute FID/KID between a model and a folder. In the previous version, this scenario requires sampling from the model and saving the images. However, saving images usually involves compression, which may cause inconsistency as observed in the paper.