Early accepted at MICCAI 2024
[Project Page] [paper] [arXiv]
conda env create -f environment.yml
conda activate ct2mri
For datasets from BraTS2023 that include paired multi-modal MRI images, your dataset directory should be structured as follows:
- training set: /root_dir/BraTS/ASNR-MICCAI-BraTS2023-GLI-Challenge-TrainingData
- validation set: /root_dir/BraTS/ASNR-MICCAI-BraTS2023-GLI-Challenge-ValidationData
To create an HDF5 file for efficient data loading, run the following command:
sh shell/data/make_hdf5_BraTS.sh
To generate a histogram dataset (in .pkl format) for Style Key Conditioning (SKC), execute the command below:
sh shell/data/make_hist_dataset_BraTS.sh
For custom CT-MR datasets, ensure to modify the data_dir
and data_csv
arguments in the make_hdf5.sh
script to match your custom dataset paths:
sh shell/data/make_hdf5.sh
To generate a histogram dataset (in .pkl format) for Style Key Conditioning (SKC) with a custom CT-MR dataset, modify the data_dir
and data_csv
arguments in the make_hist_dataset.sh
script to match your custom dataset paths:
sh shell/data/make_hist_dataset.sh
For training with the BraTS dataset:
sh shell/train/train_BraTS.sh
For training with a custom CT-MR dataset, use the following command:
sh shell/train/train.sh
For testing with the BraTS dataset:
sh shell/train/test_BraTS.sh
For testing with a custom CT-MR dataset, use the following command:
sh shell/train/test.sh
Our code was implemented based on the code from BBDM. We are grateful to Bo Li, Kai-Tao Xue, et al.