Code to download and preprocess the datasets using in medical reports generation.
This is based on [bio_image_caption] and roco-dataset repository. The modifications is:
- continue to download the dataset if an interruption occurs
To use this code you will need to install python 3.6 and the packages from the requirements.txt file. To install them run
pip install -r requirements.txt.
you can use the following code to download IU X-ray, Peir_Gross and roco datasets.
# IU X-ray:
python get_iu_xray.py
# Peir Gross:
python get_peir_gross.py
# ROCO:
python get_roco.py
or directly download the data I have processed from this link: Peir_Gross IU_xray