Sasan
SASAN
Install / Use
/learn @devavratTomar/SasanREADME
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 indef mainfunction 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 ctfor evaluating the performance of <b>MRI to CT</b> domain adaptation. For the other direction <b>CT to MRI</b>, runpython run_evaluation.py sasan mr.
Pre-trained models, datasets, code:
- 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
Data preprocessing
- To convert the tf_records training data to
.npyformat please use the scriptconvert_tfrecords.py <modality>, where<modality>is eithermrorct.
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
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
