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.
Metadata
Release files for MedReportEval 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| medreporteval-0.0.6.tar.gz | 88.0 kB | Without provenance | Details for medreporteval-0.0.6.tar.gz |
Release files / medreporteval-0.0.6.tar.gz
| Download URL | medreporteval-0.0.6.tar.gz |
|---|---|
| Size | 88.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67145d5ffe97b25e2b27d0eeae45ae7681960ffe43ec823be9024b6c6b14c2fa
|
|
BLAKE2b-256 checksum How to use checksums |
a1d52cdf16aaf703693cf2dea3683bd8b41ccfa6574576220149d094cdb6a487
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.14
|
Security for MedReportEval 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.