✨ RaDialog has been accepted to MIDL 2025: The new paper includes additional experiments and details about RaDialog_v2 and can be found on OpenReview ✨
RaDialog-v2 is the improved version of the original RaDialog model which can be found on Github and Arxiv. It follows the same concepts, including the same image encoder, chexbert classifier, prompt construction and language model. However, we introduce a simpler end-to-end image-text alignment, leading to improved conversational assistance and making the model easier use. The main differences are the following:
✨ News ✨
Conversational AI tools that can generate and discuss clinically correct radiology reports for a given medical image have the potential to transform radiology. Such a human-in-the-loop radiology assistant could facilitate a collaborative diagnostic process, thus saving time and improving the quality of reports. Towards this goal, we introduce RaDialog, the first thoroughly evaluated and publicly available large vision-language model for radiology report generation and interactive dialog. RaDialog effectively integrates visual image features and structured pathology findings with a large language model (LLM) while simultaneously adapting it to a specialized domain using parameter-efficient fine-tuning. To keep the conversational abilities of the underlying LLM, we propose a comprehensive, semi-automatically labeled, image-grounded instruct dataset for chest X-ray radiology tasks. By training with this dataset, our method achieves state-of-the-art clinical correctness in report generation and shows impressive abilities in interactive tasks such as correcting reports and answering questions, serving as a foundational step toward clinical dialog systems.
To test RaDialog and use it for inference, follow the instructions in our huggingface repository here.
For more detailed instructions on how to train and evaluate RaDialog, please refer to the instructions below.
cd RaDialog_v2conda create --name radialog python=3.10conda activate radialogconda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.7 -c pytorch -c nvidiapip install -r requirements.txtconda create --name chexbert python=3.7conda activate chexbertcd chexbertpip install -r requirements.txtRaDialog_v2/local_config.pycd mimic-cxrpython create_section_files.py to prepare the report datacd ..python -m test --prompt img_matching_examples_ig2_noexamples_IMG_findings --split "test" --vision_tower biovil--do_corr, --do_cp_bin_qa, --do_cp_all_qa, --do_view_class or --do_impression respectively to the command abovepython -m findings_classifier.chexpert_train --train --run_name "train_chexbert"python -m findings_classifier.chexpert_train --run_name "save_preds" to save the predictions of the trained modelcd LLaVAconda create --name radialog_demo python=3.10conda activate radialog_democonda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.7 -c pytorch -c nvidiapython demo.py to start the demohttp://127.0.0.1:7861 and start chatting with RaDialogWhen using our model (original and this version) or dataset, please cite:
@article{pellegrini2023radialog,
title={RaDialog: A Large Vision-Language Model for Radiology Report Generation and Conversational Assistance},
author={Pellegrini, Chantal and {\"O}zsoy, Ege and Busam, Benjamin and Navab, Nassir and Keicher, Matthias},
journal={arXiv preprint arXiv:2311.18681},
year={2023}
}
3 commits
Python
99.6%
✨ RaDialog has been accepted to MIDL 2025: The new paper includes additional experiments and details about RaDialog_v2 and can be found on OpenReview ✨
RaDialog-v2 is the improved version of the original RaDialog model which can be found on Github and Arxiv. It follows the same concepts, including the same image encoder, chexbert classifier, prompt construction and language model. However, we introduce a simpler end-to-end image-text alignment, leading to improved conversational assistance and making the model easier use. The main differences are the following:
✨ News ✨
Conversational AI tools that can generate and discuss clinically correct radiology reports for a given medical image have the potential to transform radiology. Such a human-in-the-loop radiology assistant could facilitate a collaborative diagnostic process, thus saving time and improving the quality of reports. Towards this goal, we introduce RaDialog, the first thoroughly evaluated and publicly available large vision-language model for radiology report generation and interactive dialog. RaDialog effectively integrates visual image features and structured pathology findings with a large language model (LLM) while simultaneously adapting it to a specialized domain using parameter-efficient fine-tuning. To keep the conversational abilities of the underlying LLM, we propose a comprehensive, semi-automatically labeled, image-grounded instruct dataset for chest X-ray radiology tasks. By training with this dataset, our method achieves state-of-the-art clinical correctness in report generation and shows impressive abilities in interactive tasks such as correcting reports and answering questions, serving as a foundational step toward clinical dialog systems.
To test RaDialog and use it for inference, follow the instructions in our huggingface repository here.
For more detailed instructions on how to train and evaluate RaDialog, please refer to the instructions below.
cd RaDialog_v2conda create --name radialog python=3.10conda activate radialogconda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.7 -c pytorch -c nvidiapip install -r requirements.txtconda create --name chexbert python=3.7conda activate chexbertcd chexbertpip install -r requirements.txtRaDialog_v2/local_config.pycd mimic-cxrpython create_section_files.py to prepare the report datacd ..python -m test --prompt img_matching_examples_ig2_noexamples_IMG_findings --split "test" --vision_tower biovil--do_corr, --do_cp_bin_qa, --do_cp_all_qa, --do_view_class or --do_impression respectively to the command abovepython -m findings_classifier.chexpert_train --train --run_name "train_chexbert"python -m findings_classifier.chexpert_train --run_name "save_preds" to save the predictions of the trained modelcd LLaVAconda create --name radialog_demo python=3.10conda activate radialog_democonda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.7 -c pytorch -c nvidiapython demo.py to start the demohttp://127.0.0.1:7861 and start chatting with RaDialogWhen using our model (original and this version) or dataset, please cite:
@article{pellegrini2023radialog,
title={RaDialog: A Large Vision-Language Model for Radiology Report Generation and Conversational Assistance},
author={Pellegrini, Chantal and {\"O}zsoy, Ege and Busam, Benjamin and Navab, Nassir and Keicher, Matthias},
journal={arXiv preprint arXiv:2311.18681},
year={2023}
}
3 commits
Python
99.6%