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
- 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).
- 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.
- 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.6.tar.gz
(88.0 kB
view details)
File details
Details for the file medreporteval-0.0.6.tar.gz.
File metadata
- Download URL: medreporteval-0.0.6.tar.gz
- Upload date:
- Size: 88.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67145d5ffe97b25e2b27d0eeae45ae7681960ffe43ec823be9024b6c6b14c2fa
|
|
| MD5 |
7ea3aa540d3587dabb716e121cab81d0
|
|
| BLAKE2b-256 |
a1d52cdf16aaf703693cf2dea3683bd8b41ccfa6574576220149d094cdb6a487
|