Ad

clean-fid: FID calculation with image resizing

clean-fid provides an easy-to-use library for calculating the Fréchet Inception Distance (FID) score, addressing issues with image resizing and JPEG compression that affect the reliability of GAN evaluations.
Screenshot of GaParmar/clean-fid homepage

clean-fid facilitates calculating the Fréchet Inception Distance (FID) for generative models. The project aims to provide a robust and consistent metric for evaluating generative models by addressing inconsistencies in image resizing and JPEG compression, which significantly impact FID scores. By providing a standardized implementation, clean-fid ensures comparable results across different methods and research groups. It leverages established techniques and offers user-friendly interfaces for FID and KID calculations.

clean-fid tackles the challenges of inconsistent image resizing implementations, a known source of error in FID calculations. It addresses the impact of JPEG compression on FID scores, providing insights into the effects of different compression levels. The library offers support for CLIP-based FID calculations and precomputed statistics for various datasets, simplifying the evaluation process. Contribution is also made to KID calculation.

  • Image Resizing: Correctly implements resizing operations to ensure consistent FID scores.
  • JPEG Compression: Accounts for the impact of JPEG compression on FID, offering guidance on optimal compression levels.
  • CLIP-FID: Supports FID calculations using CLIP features for more semantically meaningful evaluations.
  • Precomputed Statistics: Provides precomputed FID/KID statistics for common datasets like CIFAR-10 and FFHQ.
  • Easy-to-Use Interface: Offers simple and intuitive functions for FID and KID computation.
  • Flexible Configuration: Allows for specifying dataset parameters, generator models, and evaluation parameters.
  • Quick Start: Enables rapid implementation with straightforward installation and usage instructions.

The project is actively maintained with frequent updates and contributions. The repository includes comprehensive documentation and examples, and demonstrates a clear understanding of FID calculation intricacies. The inclusion of a paper and reliable example notebooks indicates a commitment to both research and user support. Community engagement shows interest in the project. Some KID datasets are not fully supported.

clean-fid benefits researchers and practitioners working with generative models by providing a reliable and consistent method for evaluating model performance. It allows for fair comparisons between different approaches, helps identify and mitigate biases introduced by image processing techniques, and simplifies the evaluation process with precomputed statistics and user-friendly interfaces. It provides a stable way to assess the quality of generated images.

Languages:
Summarize:
Share:
Stars
1,165
Forks
82
Issues
34
Created
5 years ago
Commit
11 months ago
License
MIT
Archived
No
Updated 6 days ago

Similar Repositories