Skip to main content

A brief description of your package

Project description

Model Preparation

Our codebase integrates CheXbert [3] for report labeling and RadGraph [4] for evaluation. Download the required model checkpoints from the repository here and place them in the ./models/ directory.

Environment Preparation

To set up the project environment, use the following command:

conda env create --name=<env_name> -f cxr-green.yml

If you're already on DSI cluster, use the following command to activate environment:

conda activate /net/projects/chai-lab/miniconda3/envs/cxr-green

Test Example

Here is an example how to run evaluation:

python test.py \
--gt_csv /net/projects/chacha/cxr_eval/test/gt_imp_sample.csv \
--gen_csv /net/projects/chacha/cxr_eval/test/gen_imp_sample_3_1.csv \
--output_metrics /net/projects/chacha/cxr_eval/results/metrics.csv \
--output_combined /net/projects/chacha/cxr_eval/results/metrics_w_green.csv \
--output_dir /net/projects/chacha/cxr_eval/results

Running Notes

  1. Based on our testing, we can successfully run metrics without (GREEN, BertScore, RadGraph F1) on A40 GPU. We'll continue updating requirement for environment and gpu to run (GREEN, BertScore, RadGraph F1).
  2. Each input csv should contain columns ['study_id', 'report']. Each column needs to be str and 'study_id' should not include any other characters except numbers.
  3. Ensure each input csv has no empty values.

Project details


Download files

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

Source Distribution

medreporteval-0.0.2.tar.gz (46.9 kB view details)

Uploaded Source

File details

Details for the file medreporteval-0.0.2.tar.gz.

File metadata

  • Download URL: medreporteval-0.0.2.tar.gz
  • Upload date:
  • Size: 46.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for medreporteval-0.0.2.tar.gz
Algorithm Hash digest
SHA256 68956fea629c01ccfe4c91782731a09c7c0c6db0c8b7788c38aa8d65288c5e1a
MD5 334e4b4654435bdf3e0cec145800cd1b
BLAKE2b-256 86328e9e1176a9a02bfebed75c5dbe48468a68ecda783f5a484a2c6d017290be

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