Skip to main content

A package containing methods to compute FXD score and other popular metrics for Chest X-Rays.

Project description

FXD Score: An Improved Metric for Evaluating Chest X-Ray Generation Methods

Generative models are widely used to augment data to improve machine learning models trained on insufficient data. The quality of generated data plays a significant role in the model’s performance. Evaluating a quality of the generative models used a challenging problem. Many sample-based evaluation metrics like Fréchet Inception Distance (FID) compare the distributions of real and generated images in a latent space of models trained on the ImageNet dataset. Such metrics work well in evaluating quality of images of common entities but generally fail in case of images from niche domains not present in the ImageNet dataset like chest x-rays. In this work we propose the FXD score which computes Fréchet distance over the latent space of the pretrained TorchXrayVision model. We perform a series of carefully designed experiments to test for necessary conditions for a meaningful metric. Through these experiments we show that the proposed metric shows more discriminability robustness to transformations and is more sensitive to, mode dropping, mode collapsing and overfitting compared to metrics based on ImageNet weights. Which also proves the importance of choosing domain specific representations in evaluating the quality of generative models. We believe that the proposed FXD score will enable researchers in building generation models efficiently which will in turn aid in building better models to analyze patients more accurately.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytorch-fxdt1-0.1.tar.gz (7.2 kB view details)

Uploaded Source

File details

Details for the file pytorch-fxdt1-0.1.tar.gz.

File metadata

  • Download URL: pytorch-fxdt1-0.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for pytorch-fxdt1-0.1.tar.gz
Algorithm Hash digest
SHA256 d9fc4ac8128c0e3cfd08ce6eb4e2ff0887534c0a42ce5c4bb2512c29d10ced6e
MD5 52717ffa56804f49dcccfa2f4d25ff47
BLAKE2b-256 28e80e918b7de942049212cefaa3e2dc0f25f80b16d227d1751c8ae93ca7359d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page