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.4.tar.gz (47.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: medreporteval-0.0.4.tar.gz
  • Upload date:
  • Size: 47.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.4.tar.gz
Algorithm Hash digest
SHA256 a64e072c14315523dd6e1458c1438992622288d955a3a62b7d681a5eb3a879d9
MD5 a2ba737066c5ba048d8198d92753e531
BLAKE2b-256 a82eec708579253958425294fda7639c5646524461e7590acce9cd2bd64fc6ba

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