- Clone this repository
- Install poetry
- Install dependencies:
poetry install
- Add the data to the
chestxray-data
folder - Set the required environment variables to specify the paths to the data and cache directory:
export BACHELOR_THESIS_DATA_DIR="/path/to/data/directory" export BACHELOR_THESIS_CACHE_DIR="/path/to/cache/directory"
python src/ptx_classification/chest_tube_classification/train_ct_candid.py
With CANDID-PTX dataset:
python src/ptx_classification/ptx/train_ptx_candid.py
With CheXpert dataset:
python src/ptx_classification/ptx/train_chexpert.py
With ChestX-ray14 dataset:
python src/ptx_classification/ptx/train_chestxray14.py