- python >=3.6
- pytorch >=1.6
- tensorflow == 1.15
- medpy
- kornia
-
To launch the training please run
train.py
. The hyperparameters can be updated indef main
function as a dictionary. -
For faster convergence, please pretrain the attention module for the domain whose segmenation labels are available, by running
python train_segmentation.py attention_mr
-
For training the upper bount U-Net on MRI modality, use the following command -
python train_segmentation.py mr
-
To evaluate the trained model, please run
python run_evaluation.py sasan ct
for evaluating the performance of MRI to CT domain adaptation. For the other direction CT to MRI, runpython run_evaluation.py sasan mr
.
- Link to our pre-trained models on Whole Heart Multimodal dataset and code.
- Link to Whole Heart Multimodal dataset pre-processed training tf_record files can be found here. The test mr data is available here and test ct data is available here
- To convert the tf_records training data to
.npy
format please use the scriptconvert_tfrecords.py <modality>
, where<modality>
is eithermr
orct
.
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.