Skip to content

junmokwon/UNETRppCMBSeg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNETRppCMBSeg

Official implementation of Enhancing Cerebral Microbleed Segmentation with Pretrained UNETR++.

Citation

If you find this code useful in your research, please consider citing:

    @inproceedings{kwon2024unetrpp,
	author={Kwon, Junmo and Seo, Sang Won and Park, Hyunjin},
	title={Enhancing Cerebral Microbleed Segmentation with Pretrained UNETR++},
	booktitle={2024 IEEE International Conference on Bioinformatics and Biomedicine (BIBM)},
	pages={3372--3377},
	year={2024},
	doi={10.1109/BIBM62325.2024.10822393},
	organization={IEEE}
    }

Implementations

UNETR++ implementation: unetr_pp_cmb.py

UNETR++ pre-training: UNETRppPretrain.py

UNETR++ fine-tuning: UNETRppFinetune.py

Vision Transformer (ViT) implementation for SimMIM: vit.py

ViT pre-training: ViTPretrain.py

UNETR fine-tuning: UNETRFinetune.py

Simple Usage

For each pre-training script, there are class variants designed for masked image modeling (MIM) configurations. The naming convention is as follows:

  • PatchN indicates a masked patch size of N×N.
  • RatioR indicates a mask ratio of R/10.

For example, UNETRppPretrainPatch32Ratio6 refers to pre-training UNETR++ with a patch size of 32×32 and a mask ratio of 0.6.

Example Commands

  • Pre-train UNETR++ for task ID 401 and fold index 1 with patch size 32×32 and mask ratio 0.6:
!nnUNet_train 2d UNETRppPretrainPatch32Ratio6 401 1
  • Fine-tune UNETR++ for task ID 401 and fold index 1:
!nnUNet_train 2d UNETRppFinetunePatch32Ratio6 401 1

The naming convention is the same for pre-training ViT and fine-tuning UNETR.

  • Pre-train ViT for task ID 402 and fold index 0 with a patch size 16×16 and mask ratio 0.5:
!nnUNet_train 2d ViTPretrainPatch16Ratio5 402 0
  • Fine-tune UNETR for task ID 402 and fold index 0:
!nnUNet_train 2d UNETRFinetunePatch16Ratio5 402 0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages