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

Uploaded Source

File details

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

File metadata

  • Download URL: medreporteval-0.0.3.tar.gz
  • Upload date:
  • Size: 45.6 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.3.tar.gz
Algorithm Hash digest
SHA256 80c70e143318d019423adcc1d5a267e412c39fd6abde8c92137d13e2fa5b891a
MD5 e573e6d492fd031032b6da7e038552ad
BLAKE2b-256 373b2812d5f82a2fdb5b67f21eb309bf05aa55001f06f98f7b233587f6911736

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