SkillAgentSearch skills...

Sasan

SASAN

Install / Use

/learn @devavratTomar/Sasan
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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 <b>MRI to CT</b> domain adaptation. For the other direction <b>CT to MRI</b>, 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

<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/">Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License</a>.

Related Skills

View on GitHub
GitHub Stars27
CategoryDevelopment
Updated9mo ago
Forks6

Languages

Python

Security Score

62/100

Audited on Jun 18, 2025

No findings