DDaTR: Dynamic Difference-aware Temporal Residual Network for Longitudinal Radiology Report Generation
Shanshan Song, Tang Hui, Honglong Yang, Xiaomeng Li
Hong Kong University of Science and Technology
Clone this repository and install the required packages:
git clone https://github.com/xmed-lab/DDaTR.git
cd DDaTR
conda create -n ddatr python=3.10
conda activate ddatr
pip install -r requirements.txt
-
Images: the images can be downloaded from MIMIC CXR and IU-XRay
-
Annotation:
- MIMIC CXR. Put at ./data/mimic_cxr
- Longitudinal-MIMIC. Put at ./data/mimic_cxr
- ReXrank test
- IU-XRay: please download from PromptMRG
- Checkpoint:
After all the above preparation steps, you can train DDaTR with the following command:
# For MIMIC-CXR and Longitudinal-MIMIC
bash train_mimic_cxr.sh
You can directly download our trained model from DDaTR
For testing, you can use following command:
# For MIMIC-CXR and Longitudinal-MIMIC
bash test_mimic_cxr.sh
# For ReXrank
bash test_rexrank.sh
# For IU-XRay
bash test_iu_xray.sh