The official codebase for the TAIX-Ray paper.
Please see our paper for a detailed description: TAIX-Ray Paper
git clone https://github.com/TruhnLab/TAIX-Ray.git
cd TAIX-RayCreate a conda environment and install the required dependencies:
conda env create -f environment.yaml
conda activate taix-rayThe dataset can be downloaded from Hugging Face: TAIX-Ray Dataset
Update the dataset path in the following file:
cxr/data/datasets/cxr_dataset.pyRun the dataset verification script:
python tests/data/test_dataset.pyTrain models using the following commands:
python scripts/main_train.py --task binary --model MSTpython scripts/main_train.py --task ordinal --model MST --regressionPretrained model checkpoints can be downloaded from: TAIX-Ray Models
python scripts/main_predict_binary.py --path_run path/to/checkpoint.ckptpython scripts/main_predict_ordinal.py --path_run path/to/checkpoint.ckptIf you use this work in your research, please cite:
@article{yourcitation2025,
title={TAIX-Ray: A Dataset for X-ray Classification},
author={Your Name and Others},
journal={Journal Name},
year={2025}
}