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

Uploaded Source

File details

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

File metadata

  • Download URL: medreporteval-0.0.5.tar.gz
  • Upload date:
  • Size: 47.2 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.5.tar.gz
Algorithm Hash digest
SHA256 7c9bfd1ed67bbe840c7c1c9719da8ee6a470be7ada4fdfe9867c191691338d79
MD5 7323cc46a89b3bdf103a3efe64a540cd
BLAKE2b-256 6bc614c71b161b12f3305fedf3fc2fbf12aacac73cf366c1cada1821d23071b0

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