Skip to content

devavratTomar/sasan

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Self-Attentive Spatial Adaptive Normalization for Cross-Modality Domain Adaptation

Requirements

  • python >=3.6
  • pytorch >=1.6
  • tensorflow == 1.15
  • medpy
  • kornia

Training

  • To launch the training please run train.py. The hyperparameters can be updated in def 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, run python run_evaluation.py sasan mr.

Pre-trained models, datasets, code:

Data preprocessing

  • To convert the tf_records training data to .npy format please use the script convert_tfrecords.py <modality>, where <modality> is either mr or ct.

Licence

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

About

SASAN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages