Paper: arxiv
Software dependencies can be found in the conda-env.yml
.
The Software was created and tested on a Linux system with a GPU.
Set up:
- Create conda environment using the conda_env.yml with
conda env create -f path/to/conda_env.yml conda activate GleasonXAI
- Set environment variables:
DATASET_LOCATION
: location of the images and the dataframe containing the labelsEXPERIMENT_LOCATION
: location for the log files during experiments
- Extract and add TissueMicroarray.com Data at
DATASET_LOCATION / GleasonXAI / TMA / original
- Add label data (
final_filtered_explanations_df.csv
) and hierarchy mapping (label_remapping.json
) atDATASET_LOCATION / GleasonXAI
- Extract and add directory containing model weigths at
DATASET_LOCATION / GleasonXAI
(with directory structure as is) - With download_data.py, download and add the other datasets
- (if failed due to missing step 4) create the MicronCalibrated data using create_downscaled_dataset.py
ca. 15min (depending on download speed)
Use for single image prediction:
- adjust paths in single_prediction.ipynb
- run the notebook
ca. 2min
Use for generating paper visualization:
- run test.py to create predictions on the test set (at least for models in
GleasonFinal2/label_level1/SoftDiceBalanced-{i}/version_0/
). - run evaluate_paper_results.ipynb to create the visualizations and figures of the paper.